/snail:snail-flow [auto|manual]from Snail
End-to-end snail workflow. Runs snail-explore, snail-alternatives, snail-planning, snail-implement, snail-review in fix mode, snail-verify, then snail-pr. Use when the user asks for /snail-flow, the full workflow, or "run the ai workflow".
Ships in Snail. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
End-to-end flow: Explore → Alternatives → Planning → Implementation → Review → Verify → PR.
Only run this skill when the user explicitly asks for the workflow.
The gate is scripts/flow-state.mjs, resolved next to this SKILL.md (node scripts/flow-state.mjs <command>; Node 24+ required). It enforces three rules and nothing else:
advance flags pass.The runbook is <dir>/runbook.yaml (at is the cursor; rows.<row>.* records what advance captured; notes is the appended log). Agents never hand-edit it: init creates it, advance moves the cursor, note appends an entry, set <dir> <key>=<value> is the repair escape hatch (f.<row>.<field> addresses a row field).
Once this skill is invoked, the work runs on exactly one path: light or full. Never implement outside both. Assess size first, before any phase, by reading only what you need (no 0 - EXPLORE.yaml).
Light only if all hold; otherwise full. When unsure, full.
Pass the result to init --size=<choice> — or set <dir> size=light|full before any artifact exists, which resets the cursor to the new table's first row. Give the user one line of reasoning. In manual mode the user may override it. A light flow's rows are 2, 3, 5, 6 — Explore, Alternatives, both review rows and Review are simply not part of the runbook.
From the project working directory, run node <skill-dir>/scripts/artifact-path.mjs using this skill's absolute installed path; store its output as <flow-root>. In every shell command double-quote expanded paths, e.g. init "$flow_root/snail-$slug"; for scans quote the root but leave the wildcard outside: "$flow_root"/snail-*/. It resolves project-specific $XDG_STATE_HOME/snail state (fallback ~/.local/state/snail). Discover and write all workflow artifacts there, including standalone use. Pass --in-repo only on an explicit user request, never because old files or policy exist. Leave old artifacts untouched; ask before moving, deleting or resuming them. On errors stop, never fall back to the repo.
<flow-root>/snail-<slug>/.check on each <flow-root>/snail-*/ that has a runbook.yaml (skip runbook-less folders such as the standalone snail-review location) — at other than done means pending work. If one, suggest continuing its next phase. If several, list them and ask. If none, ask for a short kebab-case slug.node scripts/flow-state.mjs init <flow-root>/snail-<slug> --slug=<slug> --goal=<goal> (--size=light when triage chose light). Pass the slug to each phase. If slug review is requested while the standalone review artifact (<flow-root>/snail-review/4 - REVIEW.yaml, no runbook) exists, do not init over it and do not delete the file: surface the collision and let the user pick a different slug or explicitly approve moving or removing it. (init itself does not detect this; the first check afterwards fails.)node scripts/flow-state.mjs check <dir> prints status: ok|error, at, and next-phase. Run it before starting any phase and when looking for a stuck flow; act on its output. status: error means the recorded state contradicts this contract (missing artifacts, bad flag values, unexpected files) — repair via set/note or the files before continuing; never continue on guessed state. A folder under <flow-root>/ without a runbook.yaml (such as the standalone snail-review location) is not a flow: skip it in scans; its runbook missing error is expected, not a repair target. Never pick a phase by globbing artifacts or modification time.
Rows run in order; advance refuses to move until the row's artifact exists and its flags pass.
| Row | Phase | Artifact | Required advance flags |
|---|---|---|---|
0 | Explore | 0 - EXPLORE.yaml | none |
1 | Alternatives | 1 - ALTERNATIVES.yaml | none |
1r | Alternatives review | (same file) | --valid=0 |
2 | Planning | 2 - PLANNING.yaml | --decision=proceed |
2r | Plan review | (same file) | --valid=0 |
3 | Implementation | 3 - IMPLEMENTATION.yaml | --receipts=<a,b> |
4 | Review | 4 - REVIEW.yaml | --result=clean|findings-fixed --valid=0 |
5 | Verify | 5 - VERIFY.yaml | --result=pass --receipts=<a,b> |
6 | PR | 6 - PR.yaml | none |
node ../snail-implement/scripts/run-with-receipt.mjs <dir>/receipts <label> -- <command> and cited relative to the flow dir (receipts/<file>). A check without a valid passing receipt did not happen.advance <dir> --skip --note=<reason> — the only skippable row. Anything else needs set as a repair.set <dir> at=<row> (and set <dir> status=in-progress if the flow had completed). The next advance overwrites that row's recorded fields.snail-<slug> each); sequence them by hand.2, 3, 5, 6 only. A short 2 - PLANNING.yaml (goal, files, steps, the check command per step) is enough — no snail-planning template or lint. The light path may run its phases inline in one worker.Dispatch each phase to a fresh isolated worker. When the harness has a subagent/task mechanism this is mandatory, not optional — the light path is the one exception and may run inline.
Delegate by reference, never by paraphrase. A worker prompt names the skill to invoke and carries only its inputs:
snail-flow skill and follow it verbatim".snail-planning), the slug, and the artifacts it consumes.Never reduce a phase to "write <N> - <NAME>.yaml" or a checklist of artifacts. Artifacts are outputs, not instructions — a paraphrase silently drops every requirement that lives inside the skill (mandatory reviews, per-phase dispatch, receipts).
snail-explore. Writes 0 - EXPLORE.yaml; advances row 0.snail-alternatives, including its mandatory internal alternatives review. Writes 1 - ALTERNATIVES.yaml; advances rows 1 and 1r.snail-planning, including its mandatory internal plan review loop. Writes 2 - PLANNING.yaml; advances rows 2 and 2r.snail-implement. Writes 3 - IMPLEMENTATION.yaml; advances row 3 with its receipts.snail-review in fix mode, called explicitly ("run snail-review in fix mode"); snail-review read-only only if the user asked for it. Writes 4 - REVIEW.yaml; advances row 4.snail-verify is required unless the agent is blocked (e.g. verification needs credentials, services, or an environment it cannot reach). Writes 5 - VERIFY.yaml and advances row 5. When verification is blocked because how to verify is unclear or it awaits a user answer, the flow halts at verify: ensure the worker's block is recorded (note <dir> 'verify blocked: awaiting user answer' and set <dir> status=blocked per snail-verify), surface the question to the user, write no report, do not advance and do not --skip - the flow continues only after the user answers (set <dir> status=in-progress, then re-run verify). When blocked environmentally (credentials, services, or an environment the agent cannot reach), write no report - advance <dir> --skip --note=<reason> (the reason lives in the runbook) and continue.snail-pr. Writes 6 - PR.yaml; advances row 6, completing the flow./snail-flow add-auth-token/snail-flow auto add-auth-token/snail-flow manual add-auth-tokenRun the full ai workflow for add-auth-tokenscripts/artifact-path.mjs (opens in a new tab)scripts/flow-state.mjs (opens in a new tab)scripts/node-guard.mjs (opens in a new tab)scripts/vendor/js-yaml.mjs (opens in a new tab)templates/0 - EXPLORE.yaml (opens in a new tab)templates/1 - ALTERNATIVES.yaml (opens in a new tab)templates/3 - IMPLEMENTATION.yaml (opens in a new tab)templates/4 - REVIEW.yaml (opens in a new tab)templates/5 - VERIFY.yaml (opens in a new tab)templates/6 - PR.yaml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yoglib/snail --plugin snail11 skills in this plugin
/snailExperimental single-skill workflow from investigation to PR, with approval stops or explicit auto mode./snail-ai-toolbeltPointer to external AI tools and MCPs. Use when the user asks about the toolbelt, which tools are used, or how to install a recommended tool. This skill does not install tools./snail-alternativesSuggest up to 3 viable alternatives for a code or design decision. Includes mandatory independent review. Use when the user asks for alternatives, options, "better ways", or review of supplied options.