ss-review
Skill2 starsChanged 5 months agoMITView on GitHub
Wrap up a finished change — self-review the diff, run the full test/lint gate, verify against acceptance criteria, update docs, then prepare commit/PR. Use after coding is done, when asked to "review my changes", "wrap up", "finalize", or "is this ready to merge". Final stage of the specship pipeline.
In this repository14 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- ss-archive-taskSkill
- ss-codingSkill
- ss-debugSkill
- ss-explore-sourceSkill
- ss-pause-taskSkill
- ss-planSkill
- ss-researchSkill
- ss-resume-taskSkill
- ss-shipSkill
- ss-specSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 2 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Checkpoint: write review.md and tick verified AC# in spec.md.
- Very specific: line 21
Lessons: read tasks/LESSONS.md at hydrate and apply its rules.
- Distinctive: line 26
Read the files the earlier stages produced so the review is grounded, not generic:
- Very specific: line 37
Treat its output as input: fold every finding into your Findings below.
- Very specific: line 44
Check the change followed the plan — every deviation must already be traced in plan.md (inline note / Change History per the ss-coding …
- Distinctive: line 48
Run the entire test suite, not just the tests for the last step — catch regressions elsewhere.
- Very specific: line 49
Run lint, format check, and type-check as the project defines them (the exact commands from docs/onboarding/how-to-code.md).
- Very specific: line 50
Don't proceed until these are green: If something fails, report it plainly with the output and fix before continuing.
- Very specific: line 57
Update anything the change affects: README, API docs, docs/onboarding/*, changelog, env-var docs.
- Very specific: line 60
Write the result to tasks/TASK-<ID>/review.md (same TASK-<ID> as spec.md/plan.md) using the template below, then show the user a short …
- Very specific: line 103
Put the drafted commit message + PR title/body in review.md for the user.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Review
Goal: take a change from "code written" to "ready to ship" — verified correct, clean, and consistent with the spec, before it's committed.
When to use
- Implementation is finished (ideally via the
ss-codingskill). - You're asked to review, wrap up, finalize, or check if a change is merge-ready.
- Final stage of the workflow: spec → plan → coding → review (+
debug).
Shared task state
Part of the task pipeline — see ../WORKFLOW.md for the full contract.
- Hydrate: resolve the active
TASK-<ID>, readtasks/TASK-<ID>/task.md,spec.md,plan.md,docs/onboarding/how-to-code.md, and the diff. - Checkpoint: write
review.mdand tick verifiedAC#inspec.md; updatetask.md— setreviewartifactchanges-requested/approved, setstage: done+status: doneonly when approved, bumpupdated:, append a Pipeline Log line carrying your agent label (format:../WORKFLOW.md→ Agent handoff). - Blocked? If the review can't complete because of an external dependency (a staging env, access, or sign-off it's waiting on), set
status: blocked, note it inBlocked by:, and log it; flip back toactivewhen it clears. A blocker defect found in review goes throughss-debug(which setsblockeditself).blockedis involuntary — to set the task aside by choice, usess-pause-task. See../WORKFLOW.md→ Status values. - Lessons: read
tasks/LESSONS.mdat hydrate and apply its rules; if you detect a process mistake (in this stage or an earlier one), fix it and append anL#entry there (see../WORKFLOW.md→ Lessons).
Method
0. Load the artifacts
Read the files the earlier stages produced so the review is grounded, not generic:
tasks/TASK-<ID>/spec.md— requirements, acceptance criteria, edge cases.tasks/TASK-<ID>/plan.md— the intended approach and steps.docs/onboarding/how-to-code.md+source-structure.md— the code-style and placement rules.
1. Review the diff — independent eyes for bugs, task-grounded eyes for fit
Split the review by what kind of signal each check needs. You wrote (or drove) this code, so you are the weakest judge of its correctness — don't rely on re-reading your own diff to catch your own bugs. Get a fresh, context-free pass for that, and keep for yourself only the checks that need the task's context.
a. Delegate correctness bug-hunting to /code-review (an independent reviewer with fresh context):
- Invoke the
code-reviewskill (via the Skill tool) at an appropriate effort — it reads the working diff and reports correctness bugs, missed edge cases, and reuse/simplification/efficiency findings without the bias of having just written the code. - Treat its output as input: fold every finding into your Findings below. For a genuine defect, hand it to
ss-debug(it gets aBUG#+ regression test); don't just hand-wave it. - Review panel (in-stage subagents). The default is one independent pass — the single
/code-reviewabove. A panel of >1 independent reviewers is opt-in: run it when the user asks, or when a high-risk or large diff warrants more eyes (your judgement — there is no fixed size threshold). Spawn each extra member as thess-revieweragent if your platform can spawn it (ships with specship for Claude Code) — one invocation per lens, naming the lens in its brief — else any independent-reviewer agent your platform offers. Panel members are blind to each other (each a fresh, context-free pass, optionally with different lenses — correctness, security, performance, contract-consistency); the main thread dedups and merges their findings into Findings and owns the final verdict. If your platform can't spawn subagents, do the default correctness pass and any additional pass(es) inline yourself — never drop the coverage. See../WORKFLOW.md→ In-stage subagents for the invariants.
b. Keep the task-grounded checks here (these need spec.md/plan.md/onboarding context that an independent pass doesn't have):
- Coverage sweep — nothing missed, both ways. Walk
spec.mdtop-down: everyR#andAC#maps to a tickedS#inplan.md, and the diff actually contains that step's change. Then the reverse: every changed line traces to a planned step / spec requirement — flag anything unrelated or speculative. AnR#no ticked step covers means the work isn't done, however green the gate is. - Audit the test diff for weakened checks. Look specifically at changes to tests and checks: loosened assertions, deleted or skipped cases (
.skip,xit), blindly-updated snapshots, widened types. Each one is legitimate only if traced to a spec/plan change (Change History line) — untraced, it's ablockerfinding, because it silently redefines "done". - Cross-check the diff against each
spec.mdedge case — confirm it's actually handled, not just assumed. Confirm the spec's Assumptions still hold in the implementation. - Check the change followed the plan — every deviation must already be traced in
plan.md(inline note / Change History per thess-codingcontract); flag any untraced drift. - Check code style against
docs/onboarding/how-to-code.md— verify the documented rules: correct placement (right folder/file), naming, module size/responsibility, layer separation, error handling, logging, imports. Flag every deviation. If that file doesn't exist, fall back to matching neighbouring code.
2. Run the full gate
- Run the entire test suite, not just the tests for the last step — catch regressions elsewhere.
- Run lint, format check, and type-check as the project defines them (the exact commands from
docs/onboarding/how-to-code.md). - Don't proceed until these are green. If something fails, report it plainly with the output and fix before continuing. For a non-obvious failure, use the
ss-debugskill (it records the fix intasks/TASK-<ID>/debug.md) and resume the review.
3. Verify against acceptance criteria
- Walk through each
AC#inspec.mdand confirm it's met by running itsverify:check (the test/command/observation the spec attached to it) — tick- [x]only on a green result, not on judgement, and quote the outcome. If anAC#has noverify:, that's a spec gap: flag it as a Finding and don't tick it on a guess. Any uncheckedAC#orS#means the work isn't done. - For user-facing behavior, run the app and observe the actual result rather than trusting tests alone.
4. Update docs
- Update anything the change affects:
README, API docs,docs/onboarding/*, changelog, env-var docs.
Output: write the review to the task folder
Write the result to tasks/TASK-<ID>/review.md (same TASK-<ID> as spec.md/plan.md) using the template below, then show the user a short summary.
---
task: TASK-<ID>
title: <short title>
type: review
status: changes-requested # changes-requested | approved
created: <YYYY-MM-DD HH:MM +TZ>
updated: <YYYY-MM-DD HH:MM +TZ>
---
# Review: <title>
## Gate Results
- Tests: <pass/fail + summary>
- Lint / format / type-check: <pass/fail>
## Acceptance Criteria
- [x] AC1 — verified
- [ ] AC2 — <why not met>
## Findings
<!-- source: code-review | panel:<lens> (an independent panel member) | self (task-grounded) -->
<!-- severity: blocker (must fix before approve) | minor (may ship as follow-up) | unverified (a reviewer could not substantiate it — say what's missing; never promote it to a defect or drop it) -->
<!-- ref: `path` (`symbol`) — never a line number; they drift, and a fabricated one is worse than none -->
<!-- checkbox = addressed; tick it on re-review once the fix is verified -->
- [ ] [code-review][blocker] <correctness bug / missed edge case>, ref `path` (`symbol`)
- [ ] [panel:security][minor] <finding from an independent panel member>, ref `path` (`symbol`)
- [ ] [self][minor] <style deviation from how-to-code / simplification>, ref `path` (`symbol`)
## Commit / PR Draft
<commit message; PR title + body if relevant>
## Follow-ups
- <known limitations or deferred work>
## Change History
- <YYYY-MM-DD HH:MM +TZ>: Reviewed.When done — prepare commit / PR
- Summarize what changed (files + behavior) and confirm all checks passed, stating results plainly (if a test fails or a step was skipped, say so).
- Put the drafted commit message + PR title/body in
review.mdfor the user. - Do not run
git add/commit/push— the user runs these themselves. Hand them the drafted message to use. - Approval gate: set
status: approvedonly when allAC#/S#are ticked, the gate is green, and no unaddressedblockerfinding remains. Openminorfindings don't block approval — move them to Follow-ups explicitly (never drop them silently). Anything else ischanges-requested, with what's missing listed in Findings.
External phase execution
If an orchestrator launched you for the review phase only (../WORKFLOW.md → External phase execution), the rules there override the handoff below. In short: confirm the envelope with specship check TASK-<ID> --phase review --actor <codex|claude-code> --expect-revision <n> --json (exit 0 or stop), work from the named task's artifacts and diff alone, write review.md, then checkpoint task.md last with revision +1 and stop. Don't invoke ss-coding or ss-debug, don't call ss-ship — skip "Next step" entirely.
Changes-requested must classify the loop-back. Artifact state alone can't say whether the fix is ordinary work or a defect hunt, so when you set review: changes-requested you must also set next_phase: to coding (findings are planned work) or debug (findings are a defect needing a repro). Leaving it unset fails the gate — specship check refuses to guess.
Re-review closes the loop. A changes-requested verdict outranks the later gates until it is satisfied, so the stage that addresses the findings hands back by setting next_phase: review (../WORKFLOW.md → the gate table). When you are relaunched for that re-review, you are re-running against a changes-requested review.md: don't start a second review file — update this one in place per "Re-review after a loop-back", tick the findings whose fixes you verified, and set review: approved only once no unaddressed blocker remains.
Next step
approved— the task is done: hand the user the drafted commit/PR message; they run git themselves.changes-requested— ask the user whether to loop back: invoke thess-codingskill to address the Findings (orss-debugif a finding is a defect), then re-run this review. Keep the sameTASK-<ID>; the Findings are the input for the fix. (Underss-ship, loop back automatically — its loop cap applies.)- Re-review after a loop-back is targeted, not from scratch: re-run the full gate (step 2 — always), then for each finding verify its fix and tick its checkbox in
review.md, re-verify only theAC#s the fixes touch, and diff-review only the new changes. Don't re-litigate code that didn't change — but a fix that touches new files gets the full task-grounded checks on those files. Updatereview.mdin place (bumpupdated:, Change History line), never fork a second review file.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

