anton-abyzov/specweave/sw-increment
Claude Code and agent skill by anton-abyzov/specweave
- vendor
Checking that the SKILL.md file is still in the repository.
Plan work as a SpecWeave increment - one spec.md with Problem, Scope, numbered ACs, Approach and Tasks - before writing code. Use for "plan a feature", "new increment", "let's build X".
Install
npx vskill@latest install anton-abyzov/specweave/sw-incrementSKILL.md
The same SKILL.md was published earlier as anton-abyzov/specweave/sw-increment.
sw-increment: plan the unit of work
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.
Before writing
- Skip the increment for one PR under about 300 changed lines, a follow-up fix to a
merged PR, a UI tweak or an investigation: run 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).
- An open increment already owns the files this touches (
specweave task list)? Add
ACs and tasks to its spec.md instead of opening another.
- Read the code the change touches before writing Approach. If
GLOSSARY.mdexists,
write the spec in its terms.
- Unsure what to build at all, or the user says "grill me": run sw-grill-me first.
Decide
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.
- Think first. Read the code and config; settle every fact yourself.
- Triage each open decision: fact (look it up, never ask), my call
(reversible or low impact: pick a default), theirs (hard to reverse, costly, taste).
- Ask only "theirs", at most 5, highest impact first. Each gets one clause on why
it matters and 2 to 4 options, your recommendation first; "yes" accepts it. Use your tool's structured question tool when it has one. A clear request asks nothing.
- Record in
## 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.
Create it
specweave create-increment "Add rate limiting" prints the new folder with a scaffolded spec.md; replace every [bracket]. 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/ with spec.md, an empty ledger.jsonl and this metadata.json:
Write UTF-8 without a BOM; in PowerShell use [IO.File]::WriteAllText($p, $body, [Text.UTF8Encoding]::new($false)), never >.
spec.md
- ACs are observable: "p95 of /search under 300 ms with 10k rows", not "faster".
- Every AC is covered by at least one task; every task names its
Filesand aTest
command a machine can run.
- A
Testchecks 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.
Filesis 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.
- An AC is met when every task covering it is done. Nobody ticks the boxes; never
write state into spec.md.
plan.mdis optional overflow for a genuinely large design.## Reviewis 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.
Then
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.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 15 Nov 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sw-increment/SKILL.md
Popularity
- Repository stars
- 170
- Repository forks
- 20
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/anton-abyzov/specweave/sw-increment)