agentleFS
anton-abyzovanton-abyzov/specweave/skills/sw-do/SKILL.md

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

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    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.

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
  1. Very specific:

    Run the task's Test. Red means fix it.

    line 25
  2. Very specific:

    Commit with the increment id first: git commit -m "0042: fold the ledger".

    line 26
  3. Very specific:

    When task next has nothing left, run sw-done: verify, review, complete.

    line 37
  4. Very specific:

    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.

    line 46

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. specweave task next prints the next claimable task with its AC text.
  2. 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.
  3. Implement inside that task's Files only. Need another file? Claim the task that owns it, or add a task to spec.md ## Tasks.
  4. Run the task's Test. Red means fix it; never skip, weaken or delete a test.
  5. Commit with the increment id first: git commit -m "0042: fold the ledger".
  6. specweave task done T-03 --run "npm test -- ledger". Exit 5: the command failed and the task stays open. No Test? --evidence "<sha> + what you checked".
  7. 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 done is stale and may be taken over.
  • Append only: never edit, reorder or delete a ledger line. On a merge conflict in ledger.jsonl keep every line from both sides.
  • Several agents on one increment: one worktree and branch each (sw-team).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.