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

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".

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

    Before the session ends for tokens or time: specweave handoff --reason "auto: out of tokens".

    line 35
  2. Very specific:

    Never edit .specweave/state/auto-mode.json by hand.

    line 45
  3. Very specific:

    Never widen a task's Files or weaken a test to keep the loop moving.

    line 47

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

  1. The spec has no open questions and every task has Files and a Test. If not, fix the spec first.
  2. specweave auto 0042 records the session (--dry-run previews it, --reset clears stale state). In a tool that runs SpecWeave's Stop hook (Claude Code with the sw plugin) 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.
  3. specweave auto-status shows progress; specweave cancel-auto stops it.

Each turn

  1. specweave task next → specweave task claim T-NN → implement inside its Files → commit 0042: ... → specweave task done T-NN --run "<Test>".
  2. A failing test is fixed in the next turn, never marked done.
  3. 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, run specweave cancel-auto and tell the user what each one needs, instead of looping until the turn limit.
  4. 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.json by hand; specweave auto --reset clears it.
  • One auto session per project; check specweave auto-status before starting another.
  • Never widen a task's Files or weaken a test to keep the loop moving.

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.