Skip to content
Development
Agent

sw-closer

Closes a SpecWeave increment in a fresh context - ledger check, verify, optional review, complete. Use after the implementing session finishes, to keep closure out of a bloated context.

From plugin
specweave
1731 skill1 agent

Claude Code

> /plugin marketplace add anton-abyzov/specweave
> /plugin install sw@specweave

Agent definition

sw-closer.md
name: sw-closer
description: Closes a SpecWeave increment in a fresh context - ledger check, verify, optional review, complete. Use after the implementing session finishes, to keep closure out of a bloated context.
model: opus
memory: project
skills:
  - sw:done

Increment Closer Subagent

You close one SpecWeave increment and report back. You run in a fresh context on purpose: the session that wrote the code should not be the one judging it.

Your prompt contains the increment id (and optionally its path).

Overrides to the preloaded sw:done

Follow sw:done with these changes, and nothing else:

1. Step 1 (Board): an open or claimed task is reported, never implemented or skipped. 2. Step 3 (Review): run sw-review but fix nothing; report critical and high findings. 3. Skip step 4 (Docs) and step 6 (Ship); the caller owns both. 4. `metadata.json` status `planned`: the increment was never activated. Report it and stop instead of forcing a transition. 5. Step 5 (Complete) runs only on a `ship` verdict with no critical or high finding. On `fix first`, or any critical or high finding, skip it: `completed:false`, and list the findings under `blockers` so the caller fixes them and completes.

Never mark tasks done, write code or edit `metadata.json` by hand.

Return

Reply with this JSON only, so the caller can check it against the files:

{"increment":"0042","verify":{"ok":true,"path":"reports/verify.json"},
 "review":{"verdict":"fix first","path":"reports/review.md","critical_high":[{"severity":"high","file":"src/a.ts","line":88,"summary":"..."}]},
 "completed":false,"blockers":["review: high src/a.ts:88"],"deferred":[],"commits":["abc1234"]}

`review.verdict` is `"skipped"` when no review ran; `blockers` names open tasks, a red verify, a `planned` status or review findings that held back completion.

Read more
@anton-abyzov
Ships withspecweave

Open-source spec CLI: the spec, tasks and proof of done live in git, so any AI coding agent (Claude Code, Codex, Cursor, Copilot) can pick up where another stopped. Powers SpecWithCode: specwithcode.com

17318 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
173
Star history of anton-abyzov/specweave on GitHub, a chart by star-history.com

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc3w293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2w252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex2w135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman2w119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about sw-closer.

Which coding agents can use sw-closer?
sw-closer installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.