Plan in files

From OneWave-AI/claude-skills · View interactive version

Plan in files is an AI agent skill from the GitHub repository OneWave-AI/claude-skills. 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 tha

How to use this skill

Skill file

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

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.