agentleFS
DobroslavRadosavljevicDobroslavRadosavljevic/cabrakan/.agents/skills/create-durable-plan/SKILL.md

create-durable-plan

Skill1 starsChanged 3 months agoMITView on GitHub

Create an advanced durable plan pack under repo-root plans/<YYYY-MM-DD-slug> (PLAN, STATUS, TRACE, CONTRACT, EXECUTION, optional phase files) so any later coding agent can execute file-level, contracted, verifiable work without guessing. Use when the user invokes $create-durable-plan, says "create durable plan", "durable plan", "write a plan to /plans", "plans folder", or asks for a highly specific, phased, file-level plan persisted in the codebase. If root plans/ is missing, set it up from scratch first.

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 9 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    Write a durable plan pack in the repo.

    line 17
  2. Very specific:

    Never overwrite an existing plans/<dir>/ without an explicit user choice (new slug, overwrite, or abort).

    line 42
  3. Distinctive:

    Never delete other plan folders.

    line 43
  4. Distinctive:

    No secrets: env var names only.

    line 44
  5. Distinctive:

    Do not commit unless the user asks.

    line 47
  6. Very specific:

    If .gitignore ignores plans/ / plans/, stop and ask to un-ignore or confirm local-only.

    line 48
  7. Distinctive:

    If an existing plan already covers the same mission, link it and ask whether to extend, supersede (new dated folder), or abort.

    line 49
  8. Very specific:

    If repo-root plans/ does not exist, set it up completely.

    line 55
  9. Very specific:

    If plans/ exists without README.md, add it from the asset.

    line 57
  10. Distinctive:

    If the user proceeds on assumptions, each assumption gets: statement, why it was needed, blast if wrong, and which phase absorbs the risk.

    line 75
  11. Distinctive:

    Follow references/research.md.

    line 79
  12. Distinctive:

    Before filling templates, invent:

    line 97
  13. Very specific:

    If root AGENTS.md exists and has no plans/ pointer, add: - plans/ — durable plan packs.

    line 121
  14. Distinctive:

    If AGENTS.md is missing, skip.

    line 123
  15. Distinctive:

    Do not implement in the same turn unless the user explicitly asked to execute after the pack exists.

    line 140

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Create Durable Plan

Overview

Write a durable plan pack in the repo. Target plans/<YYYY-MM-DD-slug>/. A later coding agent with no chat history must know what to do, where, how, in what order, which invariants to preserve, when to stop, and how to prove a phase is done.

This skill researches and writes plan files. It does not implement product work unless the user explicitly asks after the pack exists.

Output pack

plans/
  README.md
  <YYYY-MM-DD>-<slug>/
    PLAN.md          # mission, graph, file map, phase index, verification matrix
    STATUS.md        # progress machine (authoritative for where we are)
    TRACE.md         # evidence: facts vs inferences, sources, dead ends
    CONTRACT.md      # types, APIs, invariants, phase seams, do-not-break
    EXECUTION.md     # load order, stop conditions, drift, amendment rules
    phases/          # only when phases are split (see pack rules)
      P00-<slug>.md

Required on every create: PLAN.md, STATUS.md, TRACE.md, CONTRACT.md, EXECUTION.md.

Pack rules: references/plan-pack.md. Templates: references/plan-template.md, references/status-template.md, references/trace-template.md, references/contract-template.md, references/phase-template.md, references/execution.md.

Safety

  • Never overwrite an existing plans/<dir>/ without an explicit user choice (new slug, overwrite, or abort).
  • Never delete other plan folders.
  • No secrets: env var names only.
  • Planning writes only: plans/** plus an optional pointer in an existing root AGENTS.md. Do not create AGENTS.md. Do not implement product code, install deps, migrate data, or mutate the rest of the repo.
  • Research is read-only until the pack is written.
  • Do not commit unless the user asks.
  • If .gitignore ignores plans/ / plans/**, stop and ask to un-ignore or confirm local-only. Do not add plans/ to gitignore.
  • If an existing plan already covers the same mission, link it and ask whether to extend, supersede (new dated folder), or abort. Do not silently duplicate.

Workflow

1. Bootstrap plans/ if missing

If repo-root plans/ does not exist, set it up completely. Follow references/layout.md. Copy assets/plans-readme.md to plans/README.md.

If plans/ exists without README.md, add it from the asset. Do not rewrite a custom README; append an index row for the new plan.

2. Preflight

Record in TRACE.md (and summarize in PLAN.md metadata):

  • Repo root, branch, dirty-tree note (names only; do not stash or revert).
  • Package manager and real verify commands from manifests/CI.
  • Related files under plans/ (supersedes / related / conflicts).
  • Plan kind: feature | fix | migrate | extract | delete | infra | spike.
  • Blast-radius guess: modules, apps, packages, generated code, public APIs.

A spike must name the decision it unblocks and the artifact that ends the spike. It is not an unbounded research folder.

3. Lock the mission

Restate mission, goals, non-goals, and success as testable claims. If the request cannot yield an executable pack, ask a small batch of high-leverage questions, each with a recommended default.

If the user proceeds on assumptions, each assumption gets: statement, why it was needed, blast if wrong, and which phase absorbs the risk.

4. Evidence (mandatory)

Follow references/research.md. Do not write implementation steps from memory of libraries or of unread files.

Minimum:

  • Inspect canonical paths, symbols, tests, schemas, and callers for every area the plan will touch.
  • Fetch current official docs for libraries, APIs, CLIs, or cloud behavior the plan depends on. Record URL, version/date, and the exact takeaway.
  • Separate facts, inferences, and unknowns in TRACE.md.
  • Confidence gate: if a subsystem is not understood well enough to name files and verify steps, that work becomes an explicit discover phase with a written investigation protocol — not invented certainty.

5. Name the folder

  • plans/YYYY-MM-DD-kebab-slug using the user's local date.
  • Slug: 3–8 words, lowercase, digits, hyphens.
  • Collision: ask. -2 suffix is fine. Never overwrite by default.
  • Superseding an older plan: new dated folder; in both PLAN.md files set Supersedes / Superseded by paths.

6. Design the work graph before prose

Before filling templates, invent:

  1. File map — every create / modify / delete / do-not-touch path.
  2. Phase graph — P00…Pn, dependencies, optional disjoint lanes, critical path.
  3. Seams — what each phase must leave behind for the next (types, flags, tests, data). Those seams go in CONTRACT.md.
  4. Verification matrix — every success criterion maps to a command or named test.

Parallel lanes are allowed only when file maps are disjoint and CONTRACT.md defines the shared seam. Default is a single ordered path.

7. Write the pack

Fill every required file. Omit empty sections inside a file; do not omit required files.

Depth rule: a stranger agent must not rediscover scope, files, sequence, contracts, or stop rules.

Each phase (in PLAN.md and/or phases/Pxx-*.md) must include the fields in references/phase-template.md: objective, kind, deps, blast radius, file table, patch recipes, invariants to preserve, tests, verify commands, rollback, done-when, stop-if, and phase-local resources.

PLAN.md always keeps a phase index even when bodies live under phases/.

Meet references/quality-bar.md. Run the self-audit there before telling the user the pack is ready. If it fails, fix the pack; do not ship a shallow plan.

8. Index and optional AGENTS.md pointer

  • Append a row to the index table in plans/README.md.
  • If root AGENTS.md exists and has no plans/ pointer, add: - [plans/](plans/) — durable plan packs; read EXECUTION.md, then STATUS.md, then PLAN.md
  • If AGENTS.md is missing, skip.

9. Deliver

Report:

  • Bootstrapped plans/ or not.
  • Folder path, kind, phase count, whether phases were split.
  • Critical path and any parallel lanes.
  • Open assumptions / risks.
  • Self-audit result (pass / what you tightened).
  • Resume line:
Read plans/<dir>/EXECUTION.md, then STATUS.md, then PLAN.md, then CONTRACT.md. Execute the next incomplete phase only. Follow stop conditions. Update STATUS.md after each phase. Do not skip verification or file recipes.

Do not implement in the same turn unless the user explicitly asked to execute after the pack exists.

Isolation

This skill stands alone. Do not mention, link to, or depend on other skills. Reference only the target repo, user input, official docs, and this skill's references/ and assets/.

Out of Scope

  • Implementing the planned product work while authoring the pack.
  • Chat-only plans.
  • Phase titles without file recipes and verify steps.
  • Creating AGENTS.md when missing.
  • Committing, opening PRs, or changing issue trackers unless the user asks.

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.