sw-do
Skill164 starsChanged 13 months agoMITView on GitHub
Work a SpecWeave increment task by task - claim, implement inside the task's Files, test, commit, done with evidence - then verify and close. Use for "implement", "continue", "keep going".
1 other project uses a version of this.
Adopted by
Most recently taken up by
- mhmtsrfglu/superwikitheir own version, first seen Oct 4, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- mhmtsrfglu/superwiki★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- sw-autoSkill
- sw-brainstormSkill
- sw-doneSkill
- 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
4 rules. About 0 are common, 0 are distinctive, and 4 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Run the task's Test. Red means fix it.
- Very specific: line 26
Commit with the increment id first: git commit -m "0042: fold the ledger".
- Very specific: line 37
When task next has nothing left, run sw-done: verify, review, complete.
- Very specific: line 46
Read the tasks from spec.md and the state from ledger.jsonl: the next task is the lowest T-id nobody holds whose Files no live claim holds.
≈ “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-do: work an increment to done
Tasks are defined in spec.md under ## Tasks; their state lives only in the
increment's ledger.jsonl, which the CLI appends to. Never write state into spec.md.
Start
specweave pickup applies any handoff pushed from another tool or account, then prints
the open increment, the next task with its acceptance criteria, claims other agents
hold, and notes left for you. No increment yet? Run sw-increment first.
The loop
specweave task nextprints the next claimable task with its AC text.specweave task claim T-03. Exit 3: someone holds it; 4: its Files overlap a live claim; 6: its dependencies are not done. Pick another. Never edit before claiming.- Implement inside that task's
Filesonly. Need another file? Claim the task that owns it, or add a task to spec.md## Tasks. - Run the task's
Test. Red means fix it; never skip, weaken or delete a test. - Commit with the increment id first:
git commit -m "0042: fold the ledger". specweave task done T-03 --run "npm test -- ledger". Exit 5: the command failed and the task stays open. NoTest?--evidence "<sha> + what you checked".- Stuck:
specweave task block T-03 --reason "<what is missing>". Not needed:specweave task skip T-03 --reason "<why>". Then back to 1.
Commands take the increment id last (specweave task next 0042) when more than one
increment is active. specweave task list shows the whole board.
Finish without asking
When task next has nothing left, run sw-done: verify, review, complete.
"All tasks are done, should I close?" is the anti-pattern.
Stopping early
Out of tokens, switching tool or account: specweave handoff --reason "<why>" (sw-handoff).
Manual path (no CLI)
Read the tasks from spec.md and the state from ledger.jsonl: the next task is the lowest
T-id nobody holds whose Files no live claim holds. Append one JSON object per line, keys
in this order, UTF-8, LF:
L=.specweave/increments/0042-ledger-fold/ledger.jsonl
printf '%s\n' '{"t":"T-01","e":"claim","by":"codex@mbp","at":"2026-09-02T10:00:00Z"}' >> "$L"$L = '.specweave\increments\0042-ledger-fold\ledger.jsonl'
$line = '{"t":"T-01","e":"done","by":"codex@win","at":"2026-09-02T11:30:00Z","evidence":"npm test -- ledger exit 0 / a1b2c3d"}'
[IO.File]::AppendAllText($L, $line + "`n", [Text.UTF8Encoding]::new($false))PowerShell never uses >> here: it writes UTF-16 and every other tool fails to read it.
Events: claim, done (needs evidence), release, block and skip (both need
note), for example
{"t":"T-02","e":"skip","by":"codex@mbp","at":"2026-09-02T12:00:00Z","note":"covered by T-01"}.
by is SPECWEAVE_AGENT if set, else <tool>@<host>.
Rules
- A claim older than 2 hours with no
doneis stale and may be taken over. - Append only: never edit, reorder or delete a ledger line. On a merge conflict in
ledger.jsonlkeep every line from both sides. - Several agents on one increment: one worktree and branch each (sw-team).
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.

