agentleFS
OneWave-AIOneWave-AI/claude-skills/plan-in-files/SKILL.md

plan-in-files

Skill378 starsChanged 52 days agoMITView on GitHub

Use for any task that spans more than a couple of steps, files, or sessions — refactors, migrations, multi-file features, anything that must survive a context reset or crash. Trigger when the user asks for a plan, says "keep track of this", "don't lose the thread", or when a task is large enough that forgetting step four is likely.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 11 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before starting multi-step work, write the plan to disk.

    line 12
  2. Very specific:

    Default location: PLAN.md at the repo root for one-off work, or docs/plans/<yyyy-mm-dd>-<topic>.md when the repo keeps plan history.

    line 14
  3. Distinctive:

    Write it. Show it to the user before executing when the work is large or destructive.

    line 43
  4. Distinctive:

    When reality disagrees with the plan, edit the plan.

    line 46
  5. Distinctive:

    Never tick a box for work you have not verified.

    line 51
  6. Distinctive:

    Never fake progress to make the plan look finished.

    line 52
  7. Distinctive:

    Keep the plan under a page.

    line 53
  8. Distinctive:

    If a step turns out to be five steps, split it in the file before continuing.

    line 54
  9. Distinctive:

    When work finishes, write one closing line in the Log and leave the file.

    line 55
  10. Distinctive:

    When picking up an existing plan file:

    line 59
  11. Distinctive:

    Verify the ticked steps against reality — git log, git diff, run the tests.

    line 62
  12. Distinctive:

    Start at the first genuinely unfinished step.

    line 64

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

Plan in Files

A plan that lives in the conversation dies with the conversation. A plan that lives in a file survives a crash, a /clear, a laptop reboot, and a different person picking the work up on Monday.

Core Behavior

Before starting multi-step work, write the plan to disk. Update it as you go. The file is the source of truth about progress — not memory, not the chat.

Default location: PLAN.md at the repo root for one-off work, or docs/plans/<yyyy-mm-dd>-<topic>.md when the repo keeps plan history. Gitignore it or commit it — ask once, then follow the repo's convention.

Plan Shape

# <Task> — plan

**Goal:** <one sentence, in the user's words>
**Done when:** <the observable condition that ends this work>

## Constraints
- <the things that must stay true: no API break, no new deps, ships today>

## Steps
- [ ] 1. <action> — `path/to/file`
- [ ] 2. <action> — `path/to/file`
- [ ] 3. <action> — verify with `<command>`

## Notes
<discoveries, gotchas, things that turned out to be false>

## Log
- <date/time> — <what happened>

Each step is one action on a named file or a named command. "Refactor the auth layer" is not a step; "move verifyToken out of api/auth.ts into lib/token.ts and update the three imports" is.

Working the Plan

  1. Write it. Show it to the user before executing when the work is large or destructive.
  2. Do one step.
  3. Tick the box in the file, immediately. Not at the end — a crash between step three and the end loses everything.
  4. When reality disagrees with the plan, edit the plan. A plan you silently abandoned is worse than no plan.
  5. Append surprises to Notes as you hit them. That is where the next session's time savings live.

Rules

  • Never tick a box for work you have not verified. "Edited the file" is not "step done" if the step said the tests pass.
  • Never fake progress to make the plan look finished. An honest half-done plan is useful; a dishonest complete one is a trap.
  • Keep the plan under a page. A plan longer than the work is a symptom of avoiding the work.
  • If a step turns out to be five steps, split it in the file before continuing.
  • When work finishes, write one closing line in the Log and leave the file. It becomes the record of why the code looks the way it does.

Resuming

When picking up an existing plan file:

  1. Read it.
  2. Verify the ticked steps against reality — git log, git diff, run the tests. Ticked does not always mean true.
  3. Correct the file if it lied.
  4. Start at the first genuinely unfinished step.

When Not to Use This

A single-file edit, a one-line fix, a question. Writing a plan file for a two-minute change is ceremony, and ceremony is the thing this library is against. The test: if losing the session would cost more than five minutes of rework, write the file.

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.