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

plan

Skill2 starsChanged 3 months agoMITView on GitHub

Use Springfield plan to compile a new work request into a runnable batch for the current project.

  • Installs packages

179 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use heartmula, minecraft-modpack-server and 10 more.

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.
  • braxtonROSE4Skill

    heartmula

    Set up and run HeartMuLa, the open-source music generation model family (Suno-like). Generates full songs from lyrics + tags with multilingual support.

    Also in 8 projects that use this

  • braxtonROSE4Skill

    minecraft-modpack-server

    Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.

    Also in 4 projects that use this

  • kevinnftSkill

    touchdesigner-mcp

    Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.

    Also in 6 projects that use this

  • diego-tobalinaSkill

    build-fix

    Fix build and compilation errors systematically. Run when build fails.

    Also in 7 projects that use this

  • kevinnftSkill

    debugging-hermes-tui-commands

    Debug Hermes TUI slash commands: Python, gateway, Ink UI.

    Also in 3 projects that use this

  • sahinSkill

    execute

    Also in 18 projects that use this

  • +5 more from braxtonROSE4
  • +1 more from kevinnft

The file

Show its rules and text

We split this skill into the rules it gives an agent

24 rules. 0 are common, 14 are distinctive, and 10 are very specific to this project.

  • 0

    Common

    Most of the 158 edited versions we read keep these.

  • 14

    Distinctive

    This author's own choices. Worth a look.

  • 10

    Very specific

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

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

    Use Springfield plan to compile a new work request into a runnable batch for the current project.

    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. Distinctive:

    Ask the user whether they have an existing plan file or want to describe the work directly:

    line 56
  12. Distinctive:

    Existing plan file: ask for the file path, then read it.

    line 58
  13. Distinctive:

    Fresh prompt: ask the user to describe what they want to build.

    line 59
  14. Distinctive:

    Do not infer file-vs-prompt from one ambiguous input.

    line 61
  15. Very specific:

    Run springfield status to check whether an active batch already exists.

    line 65
  16. Very specific:

    If an active batch exists and any slice is running, tell the user to wait before replacing.

    line 67
  17. Distinctive:

    If an active batch exists but nothing is running, ask the user: replace it, append to it, or keep it.

    line 68
  18. Distinctive:

    If the user pointed to a file, read it.

    line 72
  19. Distinctive:

    Not span unrelated subsystems.

    line 78
  20. Distinctive:

    If the plan is genuinely one step, emit one slice.

    line 87
  21. Distinctive:

    Thin or missing: before drafting anything, ask one focused question per slice — "how do we know this is done — what command or observable …

    line 94
  22. Distinctive:

    Ask, as its own question: "Enable independent pre-merge review for this batch?"

    line 106
  23. Distinctive:

    Ask for confirmation before writing.

    line 116
  24. Very specific:

    Use --replace or --append if an active batch exists (per Step 2).

    line 194

“Common” is measured: kept by at least 6 in 10 of the 158 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 Plan

Use Springfield plan to compile a new work request into a runnable batch for the current project.

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.


Compile a Springfield batch from the user's work request.

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

Step 1 — Determine source

Ask the user whether they have an existing plan file or want to describe the work directly:

  1. Existing plan file: ask for the file path, then read it.
  2. Fresh prompt: ask the user to describe what they want to build.

Do not infer file-vs-prompt from one ambiguous input.

Step 2 — Check for active batch

Run springfield status to check whether an active batch already exists.

  • If an active batch exists and any slice is running, tell the user to wait before replacing.
  • If an active batch exists but nothing is running, ask the user: replace it, append to it, or keep it.

Step 3 — Read and slice the plan

If the user pointed to a file, read it. If prompt-mode, treat the prompt as source.

Decide slice boundaries based on the plan's meaning, not syntax. A slice should:

  • Be independently deliverable in one agent run.
  • Map to one coherent outcome (e.g., "scaffold auth package", "wire login endpoint").
  • Not span unrelated subsystems.

Markdown cues to consider (in priority order):

  1. Explicit ## Task N: / ## Step N: headers — honor them.
  2. H2/H3 sections that each describe a discrete deliverable.
  3. Numbered lists of implementation steps.
  4. Prose plans — chunk by responsibility.

If the plan is genuinely one step, emit one slice. Don't pad.

Step 4 — Definition of Done (per slice)

For each slice, settle how we will know it is done — its acceptance_criteria.

  • Criteria already present (the source plan already lists them): show them back read-only and ask the user "edit any?". Do not silently re-draft what they wrote.
  • Thin or missing: before drafting anything, ask one focused question per slice — "how do we know this is done — what command or observable proves it?" Then draft concrete checks and show them in one compact block for confirmation.

Aim each criterion at something checkable: a test command (e.g. go test ./auth passes), a file path, or an HTTP response (e.g. GET /health returns 200). Springfield emits a non-fatal warning at ingest on any criterion with no such signal — vague criteria still compile, they just get a nudge.

How criteria are actually used — be honest with the user, don't oversell:

  • They sharpen the agent and reviewer prompts. They are NOT a deterministic done-gate.
  • The runner re-runs a plan until the agent self-emits <story-pass>US-NNN</story-pass> or it hits the iteration cap (default 50). That marker — the agent's own judgment — is what gates completion, not the criteria themselves.
  • The optional pre-merge review (next step) is the only independent check that the work actually meets the criteria.

Step 5 — Offer pre-merge review

Ask, as its own question: "Enable independent pre-merge review for this batch?"

  • The default lever is per-plan: set plans[].review in the envelope to true (force review on) or false (force it off). Leave it unset to inherit the project default.
  • The project-wide default lives in springfield.local.toml ([review].enabled, an operator-wide concern) — mention it only if the user wants every batch reviewed rather than choosing per-plan.

Serialize the answer. Write the same review value onto every plan object — all true if the user enabled review, all false if they declined (the example below shows true on each plan). Only use different values per plan if the user explicitly asks for per-plan control. Omitting review means "inherit the project default", so dropping it after the user opted in would silently ship an unreviewed batch.

Step 6 — Confirm and persist

Show the user the proposed plans (title + one-line intent per plan). Ask for confirmation before writing.

Once confirmed, compile a PRD envelope and pipe it to springfield plan --prd -:

springfield plan --prd - <<'JSON'
{
  "title": "<batch title>",
  "source": "<original plan text, verbatim>",
  "phases": [
    {"mode": "serial", "plans": ["plan-01", "plan-02"]}
  ],
  "plans": [
    {
      "id": "plan-01",
      "title": "<plan 1 title>",
      "description": "<plan 1 description>",
      "context_md": "Project uses TypeScript + Bun. Follow existing test patterns.",
      "review": true,
      "user_stories": [
        {
          "id": "US-001",
          "title": "<story title>",
          "description": "<story description>",
          "acceptance_criteria": ["<criterion 1>"],
          "priority": 1,
          "passes": false,
          "deps": []
        }
      ]
    },
    {
      "id": "plan-02",
      "title": "<plan 2 title>",
      "description": "<plan 2 description>",
      "context_md": "Project uses TypeScript + Bun. Follow existing test patterns.",
      "review": true,
      "user_stories": [
        {
          "id": "US-001",
          "title": "<story title>",
          "description": "<story description>",
          "acceptance_criteria": ["<criterion 1>"],
          "priority": 1,
          "passes": false,
          "deps": []
        }
      ]
    }
  ]
}
JSON

Schema notes:

  • phases: execution ordering. Each phase has mode ("serial" or "parallel") and plans (list of plan IDs in that phase).
  • plans: each plan has id, title, description, optional context_md, optional review (the per-plan pre-merge review toggle from Step 5 — omit to inherit the project default), and user_stories.
  • context_md: plan-specific context only. Project-wide guidance (build commands, repo conventions) lives in root AGENTS.md and is auto-loaded by the runner — do not duplicate it into context_md or you double the prompt-token cost of that material every iteration.
  • user_stories: each story has id (US-NNN), title, description, acceptance_criteria, priority (int, lower = runs first), passes (false initially), deps (story IDs within same plan).
  • See docs/prd-format.md for full field semantics, validation rules, and stop conditions.

Constraint — documentation acceptance criteria must name an explicit target file. Any acceptance_criteria entry that prescribes writing or updating documentation MUST name the exact target as a path/to/file.md (add a :line anchor when pointing at an existing section). If no canonical file exists yet, the criterion must say to create it at a named path. Rationale: in a dogfood batch an agent burned ~75 turns hunting for a "review docs" file that never existed because the criterion never named one — vague targets cause thrash.

  • Allowed: "Document the off-target marker rule in docs/prd-format.md under the 'Stop Conditions' section"
  • Forbidden: "Document the off-target marker rule in the review docs" and "note this in the relevant section" — no file path, so the agent has nothing concrete to target.

Constraint — values added to a validated/enumerated set must cover their generated variants. When a story adds a value to a validated or enumerated input set (a sort field, an enum, a config-registered value), its acceptance_criteria MUST exercise every variant the system generates from that value (negated forms, empty, invalid) end-to-end through the consuming code path — not only the happy value. Find the generator (the function, enum, or config that expands or validates the set), enumerate what it emits, and give each emitted variant either a handled path with a test or an explicit out-of-scope line in the plan. Rationale: a batch added a validated sort value whose auto-generated negated variant (- prefix) had no handler in the consuming switch — a real bug the tests could not catch, because the criteria enumerated only the happy value and the plan never mentioned the generator.

Constraint — mirroring a sibling requires naming the anchor and checking its generator. When a plan directs the implementer to mirror an existing sibling or pattern, the plan MUST name the anchor file as a path/to/file (add a :line anchor when pointing at a section) AND must require checking the pattern's generator (enum, config, codegen) for emitted variants the mirrored instances do not handle. Mirroring instances without checking the generator copies the sibling's latent flaws into the new code.

Constraint — no zero-precedent artifacts; un-runnable criteria become operator-deferred notes. An acceptance criterion that orders a file of a kind/location with no existing sibling in the repo (a new directory pattern, checked-in data/fixture files, a novel test-artifact class) MUST cite an in-repo precedent path for that artifact class — or must not be written. When the underlying goal cannot be verified inside the run (needs a deployed environment, human eyes, or production data), do NOT invent a checked-in proxy artifact: record it in context_md as an explicit "operator step — outside this plan's automated gate" line instead, and keep the runnable criteria to what the repo has precedent for. Rationale: a dogfood batch transmuted "measure link coverage on stag" into a checked-in JSON fixture corpus + README under src/ — zero repo precedent — because every criterion had to be machine-checkable. The executor and three review rounds then hardened the invention instead of questioning it. Anchor to precedent; defer what can't run.

Use --replace or --append if an active batch exists (per Step 2).

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.