/sstack:review-prfrom sstack
Reviews pull requests through three parallel lenses (problem, robustness, use), applies fixes, and merges or closes. Use when asked to review, fix, or merge a PR.
Ships in sstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Every review answers the same four questions, so nobody has to ask them:
The run is one Workflow script, so this skill is your opt-in to call the Workflow tool. You (the orchestrator) scout, write the script, read its result and merge. Agents inside the script never merge, and never spawn agents of their own. Without a Workflow tool, run the same stages as parallel agents yourself, in the same order.
Pin a model on every agent() call: the tier your CLAUDE.md sets for the lenses and the fixer, the strongest tier it allows for the verifier. An unpinned agent inherits the session's model.
For each PR, fetch the title, body, author, base, head SHA, CI checks by name, linked issues, the full diff, earlier review comments, and whether "allow edits by maintainers" is on. Find our own consumers of the repo: other repos, deployments, scripts or docs that install, import, pin or call it (search the code host, lockfiles, compose files). Read the repo's CLAUDE.md, AGENTS.md and CONTRIBUTING.md, and how its last merged reviews were commented, so yours match.
Done when you can name, per PR, the head SHA, every required check, the PR type (ours or a contributor's, below), and the consumer list. An empty consumer list is fine if you searched for it.
Write and run one script. Pass the step 1 facts in args. Several PRs go through one pipeline(), one item per PR; give each PR its own scratch clone.
Lenses, three agent() calls in parallel(), each blind to the others, read-only, each in its own fresh clone or worktree:
problem: is this the right problem, and is there a simpler or more general fix? Compare with how the repo already solves similar things and with the issue that asked for it. Judge each feature of the PR on its own: keep, change or cut. A feature nobody would use is cut, not polished.robustness: reproduce. Run the failing case on the base, then on the head. Hunt error paths, edge inputs, concurrency, performance at real sizes, the other platforms or substrates the code runs on, and the reverse path (a new state needs a way out; a rule that lives in two places changed in both).use: run the head the way each consumer from step 1 would, on real data where it exists, read-only. Report what it would surface, how much is noise, what breaks, and what the consumer must change to adopt it (version pin, command, config).Lens schema, required fields: verdict (fix | merge-as-is | close | redesign), better_way, our_use, findings[], each with severity (critical | high | medium | low), file, line, claim, evidence (the command and its output, or the code read), fix.
Fixer, one agent() after the lenses (a barrier is right here: it needs all three reports). It drops findings it cannot reproduce or that fall outside the PR's intent, merges duplicates by root cause, takes a better way from a lens when it fits inside the PR, and decides. Then, in this order:
readable skill when it is installed, with file:line links pinned to the head SHA.On a public repo, it scans the comment text, each commit message and the diff for private data before posting or pushing, the same scan the verifier runs. Nothing private may reach a public write, even once.
Fixer schema, required: decision (fix | merge-as-is | close), comment_url, commits[] (SHA and one line each), dropped[] (finding and reason), new_head_sha, merge_pr (the PR number to merge, which differs from the original when we opened our own), adoption (how each consumer takes the change).
Verifier, one agent() on the new head, prompted to refute and to default to "not mergeable". It:
new_head_sha and reads every required check by name (a waiter that sees "no pending runs" right after a push reads green before the jobs register; an empty or skipped job list is not green);It may push a small, clearly correct fix itself and re-verify. Verifier schema, required: verdict (merge | fix-again | close), head_sha, mutations[] (guard, mutation, went_red), checks[] (name, conclusion), privacy_hits[], subject, body, notes.
On fix-again, run the fixer and verifier once more with the verifier's notes. Stop after three rounds and report what is left.
Done when the script returns a verifier verdict for every PR.
Read the verifier result yourself. Merge only when the user asked for merging in this session; otherwise stop at a merge-ready report. Then, per PR, as its own step:
success and privacy_hits is empty. Re-read the checks with gh pr checks just before merging, then merge in a separate command, pinned to the head: gh pr merge <n> --squash --match-head-commit <sha> --subject "<title> (#<n>)" --body-file <file>. Without an explicit body, gh builds the message from the commits and adds a Co-authored-by line for every author it squashes. Admin bypass can merge a red PR, so the check comes first. Read the merge commit message back.Closes #N acts on issues, not on pull requests.Done when each PR is merged or closed, each merge message reads as written, and each consumer is updated or has its follow-up noted.
Close when the problem lens and the fixer agree on one of these:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub geiserx/sstack --plugin sstack22 skills in this plugin
/docs-loopUse when the user asks to audit docs, check documentation for stale claims, or verify docs against the code./eli5Explain work, a system or a situation to the user in plain words with real names, so they understand it on one read. Use when the user asks to explain like a 5yo, says eli5, or says they do not understand what was done or where things stand./file-prOpen a pull request whose title says why the change matters and whose body opens with the problem in the requester's words. Use when asked to file, open, raise or create a PR, or to rewrite a PR's title or description.Other plugins' skills for the same job