sw-done
Skill167 starsChanged 12 months agoMITView on GitHub
Close 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".
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Docs: If commands, config or user-facing behaviour changed, update README, CHANGELOG and the ## Commands table in AGENTS.md in the same …
- Very specific: line 38
Check every task in spec.md has a done or skip line in ledger.jsonl.
- Distinctive: line 45
Never ask "should I close?" when the tasks are done.
- Very specific: line 46
Never edit metadata.json status while the CLI is available.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
sw-done: close an increment
Closing is verify, review, complete. The one hard gate is a passing
reports/verify.json; everything else is evidence.
Steps
- Board.
specweave task list: every task must bedoneorskipped. Anything open goes back to sw-do, orspecweave task skip T-04 --reason "<why>". - Verify.
specweave verifyruns the project's test, lint and build commands (configtesting.commands, else detected), checks every acceptance criterion against the ledger (an AC is met when all its tasks are done) and writesreports/verify.mdandreports/verify.json. Red: fix and re-run. Do not tick AC boxes; they are derived. - Review. For anything that ships, run sw-review in a fresh context. With
review.crossModelon, alsospecweave review: another model family reviews the diff (exit 3 means fix first). If the project has aGLOSSARY.md, runspecweave glossary checkand rename new code that uses an avoided word. Fix critical and high findings, then verify again. - Docs. If commands, config or user-facing behaviour changed, update README,
CHANGELOG and the
## Commandstable in AGENTS.md in the same branch. - Complete.
specweave complete 0042. It refuses without a passing verify unless the user gives a reason:specweave complete 0042 --reason "<why>". - Ship. Push the branch and open the PR the way this repository ships;
specweave reportwrites an HTML timeline to attach as evidence.
Report in one paragraph: verify result, review verdict (or "skipped"), commits, anything deferred.
Manual path (no CLI)
Check every task in spec.md has a done or skip line in ledger.jsonl. Run the
project's test, lint and build commands yourself and put their real output in
reports/verify.md. Then set "status": "completed" in metadata.json, the one state
change the manual path makes by hand.
Rules
- Never ask "should I close?" when the tasks are done; close, and the user can reopen.
- Never edit
metadata.jsonstatus while the CLI is available. - Several agents on one increment: only the lead closes, after every agent has handed off or released its claims.
- Completing never calls GitHub, Jira or Azure DevOps unless close-on-complete is set;
a failed sync afterwards is retried with
specweave sync push.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- sw-autoSkill
- sw-doSkill
- sw-glossarySkill
- sw-grill-meSkill
- sw-handoffSkill
- sw-incrementSkill
- sw-jevSkill
- sw-projectSkill
- sw-reviewSkill
- sw-syncSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

