auto
Run an increment unattended - the Stop hook feeds you back into the loop until every task is done. Use when saying "auto mode", "run until done", or "ship this…
Adversarial fresh-context review of an increment before it ships; every finding cites path:line and is re-verified. Use for "review this", "critique the implementation", "review before closing".
$ npx -y skills add anton-abyzov/specweave --skill sw-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/sw-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
Adversarial fresh-context review of an increment before it ships; every finding cites path:line and is re-verified. Use for "review this", "critique the implementation", "review before closing".
description: Adversarial fresh-context review of an increment before it ships; every finding cites path:line and is re-verified. Use for "review this", "critique the implementation", "review before closing". argument-hint: "<increment-id> [--full]" version: "2.0.0"
The only review gate that changes code: a **fresh** reader, hunting for real failures, citing `path:line`, and re-checking every claim before writing it down. Writes `.specweave/increments/<id>/reports/review.md`.
No CLI? Nothing changes: `git diff` and the project's test runner are the whole toolchain, and you write `reports/review.md` by hand. The manual path and the CLI path produce the same report.
1. **Scope** — read `spec.md` (ACs + Approach) and the `Files:` fields in `tasks.md`. Review that diff, not the repository:
git diff $(git merge-base HEAD origin/HEAD)...HEAD -- <the tasks' Files>
Falling back when there is no merge base: `git diff HEAD~1...HEAD`. 2. **Pass** — in this order: correctness (wrong logic, unhandled errors, races, off-by-one, injection, secret leakage, data loss) → ACs claimed but not implemented → tests that assert nothing (no expectation, mocked subject, snapshot of the bug) → cross-platform breakage (bash-only code, `\` paths, BOM, `>>` in PowerShell). `--full`: run three passes — correctness, security, spec-compliance — and merge, dropping duplicates. 3. **Verify** — for each candidate, re-read the lines and state the failure scenario in concrete terms. If you cannot, delete it. 4. **Report** — write `reports/review.md` in the shape below. A machine-readable sibling `reports/review.json` is optional: `{"ok":false,"findings":[{"severity":"critical","file":"src/a.ts","line":142,"summary":"…"}]}`. 5. **Hand back** — critical/high go back to `sw-do` as tasks (or get fixed and re-tested), then `specweave verify <id>` again before `specweave complete <id>`.
`complete` prints a notice when `review.md` is absent but never blocks on it — the discipline is yours, not the CLI's.
# Review — 0042 Ledger fold Verdict: fix first · reviewed 6 files · 3 findings (1 critical, 1 high, 1 medium) ## [critical] src/core/tasks/ledger.ts:142 — lost claim under equal timestamps Two agents claim T-01 in the same second; the fold sorts only by `at`, so the order flips between machines and both read themselves as the owner → duplicate work, one `done` silently ignored. Fix: break ties by `by` (lexicographic), then by file order. ## [high] src/cli/commands/task.ts:88 — `done` accepts empty evidence ... Nits (5 max): naming in ledger.ts:31; dead export in task-board.ts:12.
Verdict is `fix first` when any critical/high survives, else `ship`.
Spec-first AI development: describe a feature → AI creates spec + plan + tasks, builds autonomously, syncs to GitHub/JIRA. Domain-expert skills for PM, Architect, Frontend, QA learn your patterns permanently. Claude Code, Codex, Cursor, Copilot & more.
Repo: anton-abyzov/specweave
Run an increment unattended - the Stop hook feeds you back into the loop until every task is done. Use when saying "auto mode", "run until done", or "ship this…
Expand the solution space before committing - framed options compared on stated criteria, ending in a pick. Use when saying "brainstorm", "ideate", or "what…
Work an increment task by task through the ledger: task next, claim, implement, commit, task done with evidence. Use when saying "implement", "start working",…
Close an increment: ledger check, specweave verify, optional review, then specweave complete. Use when all tasks are done and saying "close increment", "we are…
Write a portable, secret-scrubbed handoff doc so this work can continue in any AI tool or on any machine. Use when saying "handoff", "running out of tokens",…
Plan a unit of work as a SpecWeave increment - spec.md with Problem, Scope, numbered ACs and an Approach, plus tasks.md. Use when starting a feature, bug,…