Handle pr

From gittower/git-flow-next · View interactive version

Handle pr is an AI agent skill from the GitHub repository gittower/git-flow-next. Review an incoming PR end-to-end — strict local review, drafted GitHub review, post after confirmation

How to use this skill

Skill file

Handle PR

Review an incoming pull request end-to-end: a strict local review against

REVIEW_CRITERIA.md (including scope and spec satisfaction), distilled into a

GitHub review draft, posted only after user confirmation. Internal and

external PRs are treated the same.

For later rounds — after the author responds to a posted review — use

/follow-up-review <number> instead (it is round-aware: it verifies the prior

requested changes against the delta and reads the author's replies).

/address-review is the author-side counterpart, for feedback on a PR you

authored — not for re-reviewing an incoming PR.

Arguments

/handle-pr <pr-number>

Workflow

Step 1: Pre-Checks

Fetch the PR (mcp__github__get_pull_request). Check before any deep

review:

PR, one concern)? If it clearly bundles unrelated changes, the review can

short-circuit: the primary finding is "split this PR", detailed findings

are secondary

branch name. If it links a spec issue, that spec is the verification

target

Step 2: Local Review

Spawn a subagent (Task tool, subagent_type: "general-purpose"):

Verify: the review file review-pr<number>-*.md exists in .ai/.

Step 3: Draft the GitHub Review

Spawn a subagent:

Verify: the pr-review-*.md draft exists.

Step 4: Confirmation Gate

Present to the user:

Wait for confirmation. The user may edit findings, downgrade/upgrade the

event, or decide not to post.

Step 5: Post

On confirmation, post via the /post-review skill pattern (read

.claude/skills/post-review/SKILL.md): parse the draft, map inline comments

to diff lines, post with mcp__github__create_pull_request_review.

Step 6: Report

CONTRIBUTING.md starts now — /check-prs tracks it, /takeover-pr

applies after it lapses

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.