pr-followup
Auto-chain code-review and review immediately after a PR is opened, with no human trigger needed for either. Invoke right after a PR is created, or manually against an existing PR.
SKILL.md.claude/skills/pr-followup/SKILL.md
GitHubPR Followup Agent
Auto-chains code-review:code-review and then /review immediately after a PR
is opened, and records each result where the review-evidence CI check reads
it (scripts/check_review_evidence.py).
code-review:code-review runs first so its fixes land before the /review
rounds; a fix after an APPROVED verdict would otherwise need /review --confirm.
Note: code-review:code-review is a Claude Code skill and may not be
invocable at all — either because your project sets
disable-model-invocation, which removes it from the agent-invocable skill
list, because the plugin is not installed at a scope this session loads, or
because this coding agent has no such skill mechanism. Either way, step 3
below catches the invocation error and continues to reporting rather than
halting the whole command; you'll still need to run an equivalent review
yourself before merging.
Trigger
Invoked right after gh pr create succeeds, or manually against an existing
PR: /pr-followup 71 or /pr-followup fix/some-branch.
Process
- Run
python3 scripts/check_pr_lane.py --git origin/<base> --head-branch <head> --base-branch <base>. For thedocs,releaseandsynclanes, report the lane and stop: they need neither step below. For thepipelinelane (or a PR that also touches pipeline paths), make sure the PR body has a non-emptyMotivating incident: <what went wrong, with a link or date>line (ornone (<reason>)); add it if missing, sincereview-evidencefails without it. - Run
code-review:code-reviewagainst the PR once. Fix any issue it posts, commit and push. Then add or replace one line in the PR body with the head SHA it reviewed:code-review: <comment URL> at <sha>, orcode-review: no issues at <sha>when it posted nothing. - If the invocation errors (e.g.
Unknown skill), don't stall. Print⚠️ code-review:code-review couldn't be invoked here (disable-model-invocation, plugin scope, or unsupported on this agent) — run an equivalent review yourself before merging.and continue. - Run
/review <PR>. It posts the verdict and updates the PR body'sReview:line. Stop at CHANGES REQUESTED until the issues are fixed;/reviewallows at most two full rounds. - Report both results and the lane.
/test is not in this chain: it runs between /feature and /gates.
Done when
Both results are reported and recorded in the PR body (or the fallback warning printed). Do not merge — per AGENTS.md/CLAUDE.md's Merge rule, the required checks decide mergeability and the user merges.