sw-auto
Skill164 starsChanged 13 months agoMITView on GitHub
Run a SpecWeave increment unattended until every task is done, then verify and close. Use for "auto mode", "run until done", "ship this while I sleep".
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- sw-brainstormSkill
- sw-doneSkill
- sw-doSkill
- sw-handoffSkill
- sw-incrementSkill
- sw-jevSkill
- sw-projectSkill
- sw-reviewSkill
- sw-syncSkill
- sw-teamSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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 35
Before the session ends for tokens or time: specweave handoff --reason "auto: out of tokens".
- Very specific: line 45
Never edit .specweave/state/auto-mode.json by hand.
- Very specific: line 47
Never widen a task's Files or weaken a test to keep the loop moving.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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-auto: run until done
Auto mode is the sw-do loop without stopping to ask. The bar does not drop: claim
before editing, a passing test for every done, verify before closing.
Start
- The spec has no open questions and every task has
Filesand aTest. If not, fix the spec first. specweave auto 0042records the session (--dry-runpreviews it,--resetclears stale state). In a tool that runs SpecWeave's Stop hook (Claude Code with theswplugin) the hook hands you the remaining work after every turn until nothing is left. In any other tool, nothing feeds you back: keep looping yourself.specweave auto-statusshows progress;specweave cancel-autostops it.
Each turn
specweave task next→specweave task claim T-NN→ implement inside itsFiles→ commit0042: ...→specweave task done T-NN --run "<Test>".- A failing test is fixed in the next turn, never marked done.
- Genuinely blocked (missing secret, ambiguous spec, external dependency):
specweave task block T-NN --reason "<what is missing>"and move on. Blocked tasks still count as work left: when only blocked tasks remain, runspecweave cancel-autoand tell the user what each one needs, instead of looping until the turn limit. - Nothing claimable left: run sw-done (verify, review, complete).
Running out of budget
Before the session ends for tokens or time: specweave handoff --reason "auto: out of
tokens". The next session, in any tool or account, says "pick up" and continues.
Manual path (no CLI)
Without the CLI there is no hook and no session file: follow the manual path of sw-do
in a loop until every task in spec.md has a done or skip line, then sw-done.
Rules
- Never edit
.specweave/state/auto-mode.jsonby hand;specweave auto --resetclears it. - One auto session per project; check
specweave auto-statusbefore starting another. - Never widen a task's
Filesor weaken a test to keep the loop moving.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

