agentleFS
bonnguyenitcbonnguyenitc/specship/skills/ss-review/SKILL.md

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.

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
  1. Very specific:

    Checkpoint: write review.md and tick verified AC# in spec.md.

    line 19
  2. Very specific:

    Lessons: read tasks/LESSONS.md at hydrate and apply its rules.

    line 21
  3. Distinctive:

    Read the files the earlier stages produced so the review is grounded, not generic:

    line 26
  4. Very specific:

    Treat its output as input: fold every finding into your Findings below.

    line 37
  5. Very specific:

    Check the change followed the plan — every deviation must already be traced in plan.md (inline note / Change History per the ss-coding …

    line 44
  6. Distinctive:

    Run the entire test suite, not just the tests for the last step — catch regressions elsewhere.

    line 48
  7. Very specific:

    Run lint, format check, and type-check as the project defines them (the exact commands from docs/onboarding/how-to-code.md).

    line 49
  8. Very specific:

    Don't proceed until these are green: If something fails, report it plainly with the output and fix before continuing.

    line 50
  9. Very specific:

    Update anything the change affects: README, API docs, docs/onboarding/*, changelog, env-var docs.

    line 57
  10. Very specific:

    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 …

    line 60
  11. Very specific:

    Put the drafted commit message + PR title/body in review.md for the user.

    line 103

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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-coding skill).
  • 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>, read tasks/TASK-<ID>/task.md, spec.md, plan.md, docs/onboarding/how-to-code.md, and the diff.
  • Checkpoint: write review.md and tick verified AC# in spec.md; update task.md — set review artifact changes-requested/approved, set stage: done + status: done only when approved, bump updated:, 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 in Blocked by:, and log it; flip back to active when it clears. A blocker defect found in review goes through ss-debug (which sets blocked itself). blocked is involuntary — to set the task aside by choice, use ss-pause-task. See ../WORKFLOW.md → Status values.
  • Lessons: read tasks/LESSONS.md at hydrate and apply its rules; if you detect a process mistake (in this stage or an earlier one), fix it and append an L# 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-review skill (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 a BUG# + regression test); don't just hand-wave it.
  • Review panel (in-stage subagents). The default is one independent pass — the single /code-review above. 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 the ss-reviewer agent 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.md top-down: every R# and AC# maps to a ticked S# in plan.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. An R# 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 a blocker finding, because it silently redefines "done".
  • Cross-check the diff against each spec.md edge 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 the ss-coding contract); 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-debug skill (it records the fix in tasks/TASK-<ID>/debug.md) and resume the review.

3. Verify against acceptance criteria

  • Walk through each AC# in spec.md and confirm it's met by running its verify: 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 an AC# has no verify:, that's a spec gap: flag it as a Finding and don't tick it on a guess. Any unchecked AC# or S# 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.md for 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: approved only when all AC#/S# are ticked, the gate is green, and no unaddressed blocker finding remains. Open minor findings don't block approval — move them to Follow-ups explicitly (never drop them silently). Anything else is changes-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 the ss-coding skill to address the Findings (or ss-debug if a finding is a defect), then re-run this review. Keep the same TASK-<ID>; the Findings are the input for the fix. (Under ss-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 the AC#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. Update review.md in place (bump updated:, Change History line), never fork a second review file.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.