Instal·la
npx skillscat add thevoskamps/claude-plugins-marketplace/git-review-pr Instal·la des del registre de SkillsCat.
Review GitHub Pull Request
This skill is a thin wrapper around thesdlc:theorem-based-pr-reviewer agent
(agents/theorem-based-pr-reviewer.md), which is the single
source of truth for what a review checks and how it is reported —
every section of it, deliberately not enumerated here. A list of the
review's parts written at this distance goes stale as the review
gains a stage, and reads as its complete set while it does. Do not
restate or fork that guidance here.
You do not run the review in this session. You spawn thesdlc:theorem-based-pr-reviewer agent, which carries the whole
procedure. That agent spawns a theorem-generator, then atheorem-assessor over its list, then
one theorem-disprover per live theorem in parallel, then onecounterexample-verifier per disproved theorem in parallel — nested
spawning the harness supports, so the fan-outs happen inside the
agent.
This path computes no --generator-effort; the reviewer picks the
tier itself (see the sdlc:theorem-based-pr-reviewer agent → "Pick
the generator tier"). A user who wants a specific tier for a one-off
review passes --generator-effort <tier> to this skill and it goes
through unchanged, and --full goes through the same way. Both are
human overrides, and neither is something this skill computes.
Process
Take the PR. The first positional token in
$ARGUMENTSis the
PR to review, asNor#N. This skill acts only on the repository
Claude Code runs in, so it refuses every longer form —repo#N,owner/repo#N,host/owner/repo#N, a URL: say that it takes a PR
only asNor#N, and stop. Any--generator-effort <tier>and--fulltokens alongside it are the human
overrides above, and a--mode <mode>token names the classes the
round reviews, per the reviewer's own Inputs; none of them is part
of the PR, and each passes through to the reviewer spawn in step 2
unchanged. If$ARGUMENTScarries no
positional token, ask the user which PR to review before
proceeding.Resolve the PR before step 2, per the
sdlc:reference-resolution
skill, invoking it first, with:github-ref item --type pr '<PR>'<PR_REF>below is its canonical reference, which
every script call names the PR by, and<number>its number field,
which the brief names it by as#<number>.Take round
Rbefore you spawn. TakeRfromsdlc-pr-round <PR_REF>, per thesdlc:pr-read-cli-interface
skill, immediately before each reviewer spawn, the re-spawn step 3
offers included.Ris the round that
spawn runs; a read after the reviewer hands back already names the
round above once its review is posted, so it cannot stand in.Spawn the reviewer agent with the
Agenttool, using thesubagent_typesdlc:theorem-based-pr-reviewer, and give it#<number>as the reviewer's own--prparameter:--pr #<number> Review this PR per your agent definition. Report back its verdicts, findings, closing-line corrections, and round kind.Unless the user asked for an override, this path passes
--pr
alone — no--issues, no--branch, no--generator-effort, no--fulland no--mode— which is what makes it the
reviewer's standalone path: with no orchestrator brief naming
the issues, the reviewer takes its claim from/github-prs:pr-closing-issues <PR_REF>and reconciles it against the
branch itself. Add--generator-effort <tier>,--fullor--mode <mode>
to the brief only when the user passed one.The reviewer reads
issue-link-prefixfrom the repo's.issues/repo-config.md(for recognizingReferences:
trailers), resolves the issue set, carries the previous round's
theorem records forward out of the PR's XDG state directory,
computes the round's delta, picks a generator tier, spawns the
generator, the disprovers, and then the verifiers in their own
throwaway worktrees, derives the verdicts, stores the round's
records and its argued review under that same state directory, and
posts a summary of them to the PR as a single call via/github-prs:pr-review-submit, carrying both verdict and body,
exactly as it does in the/sdlc:orchestrateflow. The body
travels as a file — the reviewer stages it under.claude/tmp/<task-slug>/and passes--body-file, because it
carries a backticked state-relative path on every theorem and
finding line, under the${…}state root it names once, which the
inline form would hand to the shell. It commits nothing and pushes
nothing.Record the spawn in the PR's state as soon as the
Agenttool
result names the reviewer's agent id. The contract is
thesdlc:agent-result-persist-interfaceskill's--mode agent:sdlc-agent-result-persist --mode agent --pr <PR_REF> \ --agent theorem-based-pr-reviewer --agent-id <its agent id>The reviewer writes no record naming itself, so this one is how
/sdlc:orchestrate-cleanup <PR>finds and removes its worktree,
which this path leaves in place. A call that exits non-zero stops
nothing: relay its stderr with the review.This path leaves the round's detail on disk and nothing else. In
the/sdlc:orchestrateflow,pr-finalizerposts the assembled
argued reviews and theorem records to the PR once the fix loop
concludes; a review run from here concludes no loop, so nothing posts
them. The records, the argued review and every child's report stay under${XDG_STATE_HOME:-$HOME/.local/state}/sdlc/<host>/<owner>/<repo>/pr<N>/,
wheresdlc-agent-result-persist --mode print-reviewand--mode printreach them, and the PR carries the summary alone. That
is accepted rather than a gap to close here: the detail is on disk in
full for anyone who wants it, and a standalone review has no loop
whose end would be the honest moment to post it.Read the report's closing
Return:line before relaying
anything. The harness surfaces every return asstatus: completed
with the closing message as the result, so a round that did not
finish reads like a finished review unless you look; the line is
what tells them apart, and on any kind but a posted review, do not
present the partial text as a review outcome.Return: posted review <VERDICT> — act on the verdict: the round
finished and its review is on the PR; relay it per step 4, with<VERDICT>as the overall verdict.
Wait on the round log before acting on an in-progress line, of
either ending below. The reviewer hands back whenever it ends a
turn, and it can end a turn and keep working, so an in-progress line
is not yet a stalled round. WithRthe round step 2 read before
this spawn, run, in this order:sdlc-agent-result-persist --mode next \ --pr <PR_REF> --round <R> --deadline-minutes 15 sdlc-pr-round <PR_REF>sdlc-pr-roundnames a round aboveR: roundRposted its
review, before the hand-back reached you or during a wait. Relay it
per step 4, reading the overall verdict off the PR's newest review
with/github-prs:pr-view <PR_REF> --json reviews, and the findings,
the closing-line corrections and the kind of round, which the
hand-back does not carry, off the round's review file withsdlc-agent-result-persist --mode print-review --pr <PR_REF> --round <R>.--mode nextshows no child in flight in any stage — noin-flightorspawnedline — andsdlc-pr-roundstill namesR: the wait is over with no review posted, and the line's own
bullet after this list applies.Otherwise run the stage-level wait the reviewer runs, with the
Bash tool'srun_in_background, since it can outlast a foreground
call, on the stage the line names or on a stage--mode nextshows
a child in flight in; anoverdueline is past its deadline and
holds no wait. When it exits, run the two reads above again, in the
same order:sdlc-agent-result-persist --mode wait \ --pr <PR_REF> --round <R> --stage <stage> --deadline-minutes 15
sdlc-pr-roundis read after--mode nextso that a review posted
once--mode nextfound no child in flight is still seen.Return: in progress: … — re-spawn to resume: tell the user the
round did not finish, say no review was posted, and offer to
re-spawn the reviewer on the same PR — that re-spawn resumes the
stalled round from its round log rather than starting it over, so
the theorems already settled stay settled.Return: in progress: generate — raise itorReturn: in progress: assess — raise it: tell the user the same, and relay
the reviewer's line verbatim with no offer, since this exit means
the reviewer's resume passes ended — on no progress or at its pass
limit — before the round had a settled theorem list to review
against.Return: broken call: … — raise it: quote the script's message
verbatim to the user with no offer, for a different reason: no
fan-out ran, and a re-spawn composes the same call again.Return: no resolved issue set: … — raise it: relay the
reviewer's line and the closing-line corrections it reported
verbatim, say no review was posted, and make no offer: a re-spawn
resolves the same set until the PR body or the branch changes.
Relay the reviewer's verdicts and findings back to the user, and
say where the round's detail is — the state path above — since the
posted review carries the summary alone: the overall
APPROVED / NEEDS_CHANGES / BLOCKED, plus every per-issue verdict
(a PR may deliver a batch of several), plus the findings, plus the
closing-line corrections, which no verdict reflects and which are the
user's to make in the PR body. Relay the
kind of round it was as well — a user reading "no findings" off an
empty-delta round is reading a carried-forward verdict, not a fresh
check. The per-theorem lines and the tier that ran are in the posted
review's summary, not in the report; point the user there for them.