review-pr
Review a PR using charter format
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-21
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- args
- PR number
- name
- review-pr
- description
- Review a PR using charter format
03 SKILL.md 正文
Review a pull request for this repository following the team charter's
Comment-Based Reviews convention. Your verdict comment is machine-parsed
(trust_signals.py, #98) and gated at write time (validate_review_comment_format
block_gh_pr_review), so it MUST follow the grammar below exactly or it will be blocked.
Before you start
- You cannot review your own PR.
block_gh_pr_reviewblocks a verdict whoseRequestor:(you, the reviewer) equals itsRequestee:(the PR author). If you authored the PR, hand the review to another team member. - Never use
gh pr review. All agents share one GitHub user, so an API--approvealways fails ("cannot approve your own pull request"); the hook blocks it. Post a verdict COMMENT (gh pr comment) instead. - How many approvals the merge needs is config-driven:
policy.reviewers_requiredin.claude/framework.config.jsonis the N-reviewer gate. Read it — a PR needs that many DISTINCT approving reviewers before it can merge, so your approval may be only one of several required. - When
policy.pr_review_gate_enabledis true, that bar is mechanically enforced: thevalidate_pr_reviewhook BLOCKSgh pr ready/gh pr mergeuntil the oracle reports the PRapproved(reviewers_requireddistinct clean approvals AND no unresolvedMust-fix:). Your clean verdict is then load-bearing — the merge cannot land without it. (Escape hatch if the team ever wedges: an owner reverts the flag with a direct config-only commit to the default branch; the gate is also fail-open on an oracle error.) When the flag is false the same bar is advisory, not blocked.
Instructions
- Fetch PR diff:
gh pr diff {number} - Check CI status:
gh pr checks {number}— report if failing - Review for: correctness, error handling, test coverage, lint compliance
- Post ONE verdict comment with
gh pr comment {number} --body "..."using the charter format below. - For each Tech-debt item, create a GitHub Issue (label: tech-debt + next phase + author).
- Report: findings, CI status, and merge readiness against
policy.reviewers_required(how many more approvals the PR still needs).
Verdict grammar (gate-compatible)
Header — all three lines required (bare or **bold** form both accepted):
Requestor: Firstname.Lastname # YOU, the reviewer (comment author)
Requestee: Firstname.Lastname # the PR author being addressed
RequestOrReplied: Request | Replied
Severity lives in the body, never in the verdict token (do NOT write
RequestOrReplied: Approved / ChangesRequested):
Must-fix: <enumerated items, or None> # >=1 item => changes requested (blocks merge)
Tech-debt: <items, or None> # non-blocking — never holds the merge
- Use
RequestOrReplied: Requestwhen you enumerate >=1Must-fix:item (you are asking for changes). - Use
RequestOrReplied: Repliedwhen you approve withMust-fix: None. (An approval filed asRequestwith no Must-fix is flagged by the semantic-warn tier.) - Tech-debt items do NOT block approval. Anything you would not hold the merge
for — nits, follow-ups, "accept as-is" notes — goes under
Tech-debt:, and you still approve. OnlyMust-fix:items block the merge. - Use roster-canonical
Firstname.Lastnamein both header fields — trust scoring keys reviewer identity off theRequestor:field, so a nickname or role suffix (Tariq (QA)) misattributes the signal.
Template — changes requested
Requestor: {Your.Name}
Requestee: {PR.Author}
RequestOrReplied: Request
**Review: changes requested**
Must-fix:
1. {blocking finding that must be resolved before merge}
Tech-debt: {list, or None}
Template — approval
Requestor: {Your.Name}
Requestee: {PR.Author}
RequestOrReplied: Replied
**Review: LGTM**
Must-fix: None
Tech-debt: {list, or None}
04 同仓库更多 Skills
wave-wrapup
Finalize a wave — PR review, merge sequencing, issue cleanup, worktree cleanup, and handoff to retro
wave-start
Initialize a new wave — worktree cleanup, branch creation, label setup, status file update
wave-scope
Reconcile declared-vs-labeled wave scope between /wave-retro and /wave-kickoff — collect dispositions, fold in retro carry-forwards and memory must-includes, and refresh the meta-issue
wave-retro
Automated wave retrospective — PR analysis, assessments, trust matrix updates, feedback log, charter change proposals
wave-kickoff
Automated wave planning — branch creation, label management, issue labeling, kickoff comments, and execution plan
wave-audit
Audit open issues against merged PRs — find and close orphaned issues with proper comments