/spwf:pr-reviewfrom spwf
Phase 5 — PR Review. Fetch and review a specific pull request (GitHub) or merge request (GitLab) using the active forge's CLI. Produces a structured review report. Requires a PR/MR number or URL as the argument. Does not create requests. Use when a request is open and you want a structured review before merge.
Ships in spwf. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fetch and review a pull request (GitHub) or merge request (GitLab). Produce a structured review report. Does not create requests.
Forge selection follows _shared/forge-dispatch.md — auto-detected from
git remote get-url origin unless overridden in .spwf/forge.yaml. GitLab
default; GitHub supported.
$ARGUMENTS must contain a request number or URL.
If $ARGUMENTS is empty, halt:
Usage: /spwf:pr-review <PR/MR number or URL>
Examples:
/spwf:pr-review 42
/spwf:pr-review https://gitlab.com/org/repo/-/merge_requests/42
/spwf:pr-review https://github.com/org/repo/pull/42
Detect the active forge per _shared/forge-dispatch.md (auto-detect from
git remote, or read .spwf/forge.yaml).
Fail fast on missing CLI. Run {cli} auth status. If the required CLI
(glab for GitLab, gh for GitHub) is missing or unauthenticated, halt with:
"Forge CLI
{cli}not installed or not authenticated. Install (brew install {cli}) and run{cli} auth login. Seeplugins/spwf/skills/_shared/forge-dispatch.md."
Dispatch the fetch:
# GitLab (default)
glab mr view $ARGUMENTS --output json
glab mr diff $ARGUMENTS
# GitHub
gh pr view $ARGUMENTS --json number,title,body,baseRefName,headRefName,state,author,additions,deletions,changedFiles
gh pr diff $ARGUMENTS
Normalise the response into a uniform internal shape per the JSON-field-mapping
table in _shared/forge-dispatch.md. For GitLab, if additions/deletions stats
are needed for the report and not present in the initial response, run an
additional glab mr changes {ref} call.
If any CLI command fails, report the error verbatim and stop.
Before reviewing code:
Architecture and design:
File organisation:
Testing:
For each changed file in the diff:
Correctness:
Security:
Performance:
Maintainability:
Use the active forge's reference syntax in the heading: #{id} for GitHub,
!{id} for GitLab.
## {Request type} Review: {ref} — {title} <!-- "PR Review: #42" or "MR Review: !42" -->
**Author**: {author}
**Base → Head**: {base} ← {head}
**Size**: +{additions} -{deletions} across {files_changed} files
---
### Strengths
- {what was done well}
### Required Changes
🔴 [blocking] {file}:{line} — {issue and recommended fix}
### Suggestions
💡 {suggestion with rationale}
### Questions
❓ {clarifying question}
---
### Verdict
{✅ Approve | 🔄 Request changes | 💬 Comment}
{One-sentence summary of the verdict rationale}
Use severity labels:
[blocking] — must fix before merge[important] — should fix[nit] — nice to have, not blocking[suggestion] — alternative approachAlways end with a Next step block matched to the verdict, so the golden path does not dead-end at the report:
── Next step ───────────────────────────────────────────────────
🔄 Request changes / 💬 Comment →
Run /spwf:address-review {ref} to work each finding
(verify → implement or push back), then re-run /spwf:pr-review {ref}.
✅ Approve →
Merge the {PR | MR}, then run /spwf:close to finish the change
(retrospective, archive, tracker transition, branch cleanup).
Print only the branch that matches the verdict. Do not invoke either skill automatically — both are user-only, and pr-review does not merge.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub simon-potter/spwf --plugin spwf38 skills in this plugin
/address-reviewPhase 6.5 — Address Review. Turn review feedback into action. Sources feedback from either a local report file (e.g. {branch}-review.md from /spwf:pr-review or {branch}-self-review.md from /spwf:simplify) or fetched human comments on an open PR/MR. For each item runs READ → VERIFY → EVALUATE → implement-or-push-back, in priority order (blocking → important → nit). Forbids performative agreement ("you're absolutely right"). Use after pr-review, or whenever a reviewer leaves comments./agent-optimiseCross-cutting — Audit both the project .claude/ and personal ~/.claude/ for quality issues. Covers CLAUDE.md scope and length, agent descriptions, skill frontmatter, and settings.json conflicts. Always audits both scopes. Produces a prioritised P1/P2/P3 fix list./