/sw:increment "<title>" [--supersedes NNNN]from sw
Plans work as a SpecWeave increment with a spec.md containing Problem, Scope, ACs, Approach, and Tasks before writing code. Use for multi-day features, cross-platform changes, auth, payments, or migrations.
Ships in sw. 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.
Read when SKILL.md points to them.
An increment is one folder, .specweave/increments/NNNN-slug/, with one file you write:
spec.md. ledger.jsonl beside it holds task state and is only appended to;
metadata.json is machine state you never need to read. One increment is one branch
and one PR.
specweave small-fix "<why>" and ship.
Plan one for multi-day work, cross-platform changes, auth, payments, migrations, and
anything another tool or machine will pick up; these win over size. Work bigger than
one PR gets one increment per PR. In our own 1,476 PRs, small changes looked about
the same either way, while threads that shipped one PR over 1,000 lines took about twice
the messages and output tokens with an increment (17 against 11 threads) (https://spec-weave.com/docs/guides/when-to-plan-an-increment).specweave task list)? Add
ACs and tasks to its spec.md instead of opening another.GLOSSARY.md exists,
write the spec in its terms.Intent first: settle what the user wants and how a machine will check it before
writing ACs. planning.deepInterview sets the depth: critical (default) as below,
deep runs sw-grill-me, off states defaults and asks nothing.
## Decisions: Asked, Defaulted (list every default: one the user
never saw is one they could not reject) and Open. Keep a line only when a later
change could contradict it: hard to reverse, surprising without context, or a real
trade-off. Apply each answer to Scope, ACs and Approach.specweave create-increment "Add rate limiting" prints the new folder with a scaffolded
spec.md; replace every [bracket]. Folder names are short: 3 to 5 words that name the
subject, at most 40 characters. When the title is a sentence, pass the name yourself:
specweave create-increment "Card answers record where they came from" --name card-answer-provenance.
Without --name the CLI drops filler words from the title and stops at 5 words; a longer
--name is cut to the same cap. Add --supersedes 0031 when this replaces an older
increment (that one is abandoned for you), --planned for backlog work.
Manual path (no CLI): next id = highest folder number + 1, zero-padded to 4. Create
NNNN-kebab-slug/ (3 to 5 words, at most 40 characters) with spec.md, an empty ledger.jsonl and this metadata.json:
{"id":"0042-ledger-fold","status":"active","type":"feature","created":"2026-09-02T10:00:00Z","lastActivity":"2026-09-02T10:00:00Z"}
Write UTF-8 without a BOM; in PowerShell use
[IO.File]::WriteAllText($p, $body, [Text.UTF8Encoding]::new($false)), never >.
# 0042 Ledger fold
## Problem
Two agents can both believe they own T-01. Who hits it, and the evidence.
## Scope
In: claim ordering, malformed lines. Out: a ledger server.
## Acceptance Criteria
- [ ] AC-01: Two agents claiming the same task never both get it
- [ ] AC-02: A malformed ledger line is skipped and counted, never fatal
## Approach
Files that change and in what order, decisions, rejected alternatives, risks.
## Decisions
### Asked
- D-01 Claim tie-break? → earliest ledger line wins (user).
### Defaulted (change any before sw-do)
- D-02 Malformed-line report → a count in `task list` (reversible).
### Open
- none
## Tasks
### T-01 Fold the ledger
- AC: AC-01 | Files: src/core/tasks/ledger.ts, tests/e2e/double-claim.e2e.ts | Test: npm run test:e2e -- double-claim
### T-02 Skip malformed lines
- AC: AC-02 | Files: src/core/tasks/ledger-parse.ts, tests/e2e/malformed-ledger.e2e.ts | Test: npm run test:e2e -- malformed-ledger
Files and a Test
command a machine can run.Test checks the AC from the outside: the CLI, HTTP route, UI or public API a user
or caller touches, run with the repo's own test command. A new test file goes in the
task's Files. Reuse existing tests; plan new unit or integration tests only when the
user, the project's testing config or its conventions ask for them. The
human-approved AC is the oracle, not a test the agent wrote.Files is the ownership unit: two tasks that edit one file cannot run in parallel,
so merge them. Shared contracts (types, schema) go in an early task.plan.md is optional overflow for a genuinely large design.## Review is optional, after ## Decisions. For complex work (auth, payments, data
migrations, several repositories, over ~1k changed lines) add a deep review by another
family than the one building it, required to close:
## Review / - Reviewer: openai (gpt-6.1-sol) / - Depth: deep / - Required: yes.
Without it the project default applies (review.policy, else cross-family, not
required). sw-review has the format.Show the ACs and tasks. Unless the user asked to review the plan first, carry on with sw-do (one agent, or parallel lanes for three or more disjoint groups of tasks). Opening an increment makes closing it part of the same job: any plan or checklist you show ends with "Verify and close 0042", and sw-do closes it through sw-done once the last task is done. When the plan waits for the user's review, say the increment stays open until they answer.
What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/autosw-auto: run until doneRun a SpecWeave increment unattended until every task is done, then verify and close - the Unattended section of sw-do. Use for "auto mode", "run until done"./dosw-do: work an increment to doneWork a SpecWeave increment task by task - claim, implement inside its Files, test, commit, done with evidence - alone, unattended or in lanes, then close. Use for "implement", "next task"./donesw-done: close an incrementClose a SpecWeave increment - every task done or skipped, specweave verify green, a fresh-context review, then specweave complete. Use for "close it", "we are done", "finish up"./grill-mesw-grill-me: settle every decision before buildingInterview the user relentlessly, in rounds, until every decision in a plan is settled; facts are your job, decisions are theirs. Use for "grill me", "interview me", "stress-test this plan"./handoffsw-handoff: "hand off" here, "pick up" thereHand work to another tool, account or machine and pick it up there, in two words. Use when the user says "hand off", "hand off all", "out of tokens", "switching accounts" or "pick up"./reviewsw-review: adversarial review with citationsAdversarial review of an increment before it ships, by a fresh context or another model family; every finding cites path:line and is re-verified. Use for "review", "qa", "critique this".npx claudepluginhub anton-abyzov/specweave --plugin swOther plugins' skills for the same job