agentleFS
brentguistwitebrentguistwite/springfield/skills/recover/SKILL.md

recover

Skill2 starsChanged 3 months agoMITView on GitHub

Use Springfield recover to diagnose a stuck batch or failed slice and restore a safe next step.

  • Installs packages

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use init and ship.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    init

    Generate or update chat customization files for AI coding agents

    Also in 3 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 3 are distinctive, and 9 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use Springfield recover to diagnose a stuck batch or failed slice and restore a safe next step.

    line 8
  2. Very specific:

    Keep Springfield as the only user-facing surface.

    line 17
  3. Very specific:

    Use the shared Springfield playbook guidance to shape planning and explanation.

    line 18
  4. Very specific:

    Keep internal engine details out of Springfield-owned prompt surfaces.

    line 19
  5. Very specific:

    Run springfield version first.

    line 25
  6. Distinctive:

    If the command is not found, the CLI is not installed.

    line 31
  7. Very specific:

    If the output is springfield dev, this is a local development build.

    line 35
  8. Very specific:

    If the reported version is older than v0.11.0 (compare semver-style after stripping the leading v from the reported version), tell the user …

    line 36
  9. Distinctive:

    Do not try to work around a missing or too-old CLI — surface the exact command above instead.

    line 42
  10. Distinctive:

    Read project guidance from AGENTS.md first, then CLAUDE.md, then GEMINI.md when present.

    line 52
  11. Very specific:

    Run springfield status to see the active batch, current phase, and slice statuses.

    line 56
  12. Very specific:

    Prefer recovery and continuation over starting a fresh plan unless the existing state cannot be salvaged.

    line 79

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “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

Springfield Recover

Use Springfield recover to diagnose a stuck batch or failed slice and restore a safe next step.

Springfield Playbook

Source: builtin/springfield.md

Springfield

Built-in Springfield playbook.

  • Keep Springfield as the only user-facing surface.
  • Use the shared Springfield playbook guidance to shape planning and explanation.
  • Keep internal engine details out of Springfield-owned prompt surfaces.

Current Task

Before you start — verify the Springfield CLI

Run springfield version first. It prints one of:

  • springfield vX.Y.Z — a released build.
  • springfield dev — a local source build (e.g. go install .).

Then:

  • If the command is not found, the CLI is not installed. Tell the user to install it, then stop:
    • macOS: brew install brentguistwite/tap/springfield
    • Linux: download the matching springfield_<version>_linux_<arch>.tar.gz from the GitHub Releases page and put the springfield binary on PATH.
    • Windows: build from source with go install . inside the Springfield repo (no Windows release tarballs are published yet).
  • If the output is springfield dev, this is a local development build. Continue without a floor check — the user is responsible for keeping it current.
  • If the reported version is older than v0.11.0 (compare semver-style after stripping the leading v from the reported version), tell the user to upgrade, then stop:
    • macOS: brew upgrade springfield
    • Linux: download the latest springfield_<version>_linux_<arch>.tar.gz from the GitHub Releases page and replace the binary on PATH.
    • Windows: go install . inside the Springfield repo (no Windows release tarballs yet).
  • Otherwise continue.

Do not try to work around a missing or too-old CLI — surface the exact command above instead. (A plugin older than the CLI is fine and needs no action; the CLI stays backward-compatible with older skills within a major version.)

Springfield control plane

Reads are allowed — recover and status flows specifically inspect .springfield/run.json and per-plan prd.json. Never write, edit, or delete files under .springfield/. That directory is Springfield's state — the CLI is your only interface for mutating it. Writing there directly will abort the current batch. This applies regardless of which agent is invoking the skill.


Recover a Springfield batch that is stalled, blocked, or has a failed slice.

Read project guidance from AGENTS.md first, then CLAUDE.md, then GEMINI.md when present.

Step 1 — Read current state

Run springfield status to see the active batch, current phase, and slice statuses.

For a failing or stalled plan, run springfield recover --diagnose --plan <plan-id> first. The CLI surfaces dirty-worktree state, exit_reason, orphan-plan handling, and the available recovery actions — interpret that output rather than re-deriving it from raw files.

Also read .springfield/run.json for the last checkpoint and last known error.

Step 2 — Diagnose

Identify which plan and which story failed or stalled. Check:

  • The CLI diagnose output (above) — primary source.
  • The last error in run.json
  • Per-story passes state in each plan's prd.json (.springfield/plans/<plan-id>/prd.json)
  • Any blockers mentioned in the batch source

Step 3 — Recover

Propose the safest concrete next step:

  • For a failed plan: fix the underlying issue, then run springfield start to resume from cursor. Already-passed stories (passes: true) are skipped on re-entry — prd.json is preserved across retries.
  • For a blocked plan: explain what needs to happen before execution can continue.
  • For a corrupt batch: use springfield plan --replace to start fresh with a new batch.

Story-level retry is not supported in v1; recovery operates at plan grain (retry plan or retry merge).

Prefer recovery and continuation over starting a fresh plan unless the existing state cannot be salvaged. Keep Springfield as the only user-facing surface.

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.