sw-increment

sw-increment is a skill for Claude Code, Codex from anton-abyzov/specweave. It costs 46 tokens per session (1,378 once invoked), scanned A, original, MIT.

A planning skill for opening a SpecWeave increment: a numbered project folder containing the problem, scope, acceptance criteria, approach, and tasks. It creates the written work contract before implementation begins.

In plain words
What is it for?
Use it to plan a feature, bug fix, hotfix, refactor, or experiment, create its increment files, and define the acceptance criteria and task breakdown.
Why use it?
It turns an unclear feature request into agreed, testable work and records what is outside the scope. This gives later implementation and review a shared reference.

Skill for Claude CodeCodex

Written for Claude Code and Codex: argument-hint in frontmatter, but also agents/openai.yaml present.

Good fit Use it to plan a feature, bug fix, hotfix, refactor, or experiment, create its increment files, and define the acceptance criteria and task breakdown.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anton-abyzov/specweave/sw-increment
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add anton-abyzov/specweave --skill sw-increment
Clone the repo
git clone --depth 1 https://github.com/anton-abyzov/specweave

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sw-increment

README.md
[![agentmods](https://agentmods.dev/badge/skills/anton-abyzov/specweave/sw-increment/github.svg)](https://agentmods.dev/skills/anton-abyzov/specweave/sw-increment)
Your own site
<a href="https://agentmods.dev/skills/anton-abyzov/specweave/sw-increment"><img src="https://agentmods.dev/badge/skills/anton-abyzov/specweave/sw-increment/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sw-increment

Your own site · 80×15
<a href="https://agentmods.dev/skills/anton-abyzov/specweave/sw-increment"><img src="https://agentmods.dev/badge/skills/anton-abyzov/specweave/sw-increment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,378 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.01378
Opus 5.5 $0.00018 $0.00551
Sonnet 5.5 $0.00009 $0.00276
Haiku 4.5 $0.00005 $0.00138

Measured today against content hash 58b0db8f4160, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sw-increment scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/sw-increment/SKILL.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

  • A small self-contained fix needs no increment. Just do it.
  • 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.md exists, 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.

  1. Think first. Read the code and config; settle every fact yourself.
  2. 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).
  3. 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.
  4. 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.

Read the full file on GitHub · 114 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed 58b0db8f4160
  2. 8d ago Changed · +4 lines 297a30aaa98b
  3. 10d ago Changed · +9 lines a472358d93ab
  4. 11d ago Changed · +17 lines 27779f2142fa
  5. 16d ago Changed · +5 lines 2cc75b4ca61c
  6. 1mo ago Changed · -26 lines · -3 tokens per session aa3608080469
  7. 1mo ago First seen · 105 lines · 49 tokens per session scan A 4581fb9f0a72

Subscribe to this mod's changes

sw-increment is a skill published in the GitHub repository anton-abyzov/specweave (169 stars, last pushed today), licensed MIT. It adds 46 tokens to every session and 1,378 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.