agentleFS
dirtybitsdirtybits/agent-skills/skills/plan-writing/SKILL.md

plan-writing

Skill2 starsChanged 6 months agoMITView on GitHub

Write, review, and maintain implementation-ready .plan.md files with YAML frontmatter, actionable TODO lists, concrete execution details, verification gates, and rollback notes. Use when creating, splitting, reviewing, or updating plan files, especially files under .agents/plans or .cursor/plans — and also whenever implementing or executing work from an existing .plan.md, so todo statuses and the plan body stay current as steps complete.

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use intelligent-routing.

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

    intelligent-routing

    Automatic agent selection and intelligent task routing. Analyzes user requests and automatically selects the best specialist agent(s) without requiring explicit user mentions.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 7 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When writing or reviewing a plan file:

    line 17
  2. Very specific:

    Use the .plan.md extension.

    line 19
  3. Very specific:

    When the user does not specify a location, default to <repo>/.agents/plans/.

    line 20
  4. Very specific:

    Start with YAML frontmatter containing name, overview, todos, and isProject.

    line 21
  5. Distinctive:

    After frontmatter, write the plan body in Markdown.

    line 23
  6. Distinctive:

    Prefer exact files, commands, config keys, target hosts, acceptance criteria, and blockers over broad intent.

    line 26
  7. Distinctive:

    Do not hide open questions.

    line 27
  8. Very specific:

    Only mark completed when the step truly finished, including its verification.

    line 36
  9. Very specific:

    If a step turns out to be unnecessary or is superseded, do not leave it pending forever and do not silently delete it — mark it completed …

    line 37
  10. Distinctive:

    When the last todo completes, give the body a final pass: blockers that materialized, follow-ups discovered during implementation, and …

    line 39
  11. Distinctive:

    Keep the plan concise, but remove ambiguity before removing detail.

    line 95
  12. Distinctive:

    After execution, statuses and body reflect what actually happened, not what was originally intended.

    line 96

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

Plan Writing

Instructions

When writing or reviewing a plan file:

  1. Use the .plan.md extension.
  2. When the user does not specify a location, default to <repo>/.agents/plans/; if the repo already has an established plans directory such as .cursor/plans/, follow that local convention.
  3. Start with YAML frontmatter containing name, overview, todos, and isProject.
  4. Make todos a short execution checklist with stable lowercase hyphenated id values, concrete content, and status: pending.
  5. After frontmatter, write the plan body in Markdown.
  6. Include enough repo-specific detail that another agent can implement without guessing.
  7. Separate implementation steps from validation, rollout, and rollback when the work has operational risk.
  8. Prefer exact files, commands, config keys, target hosts, acceptance criteria, and blockers over broad intent.
  9. Do not hide open questions. Add an assumptions or blockers section when requirements are uncertain.
  10. Date design decisions and verified claims (e.g. "verified 2026-06-09"), so a later session knows how stale they might be.

Executing a Plan

A plan file is shared state across sessions and agents: a resumed or parallel session decides what to do next by reading the todo statuses. Stale statuses cause redone or skipped work, so maintain them as part of the implementation itself, not as cleanup afterward.

  • Statuses are pending, in_progress, and completed.
  • Set a todo to in_progress when starting it, and to completed as soon as its work is done and verified — not in a batch at the end of the session. If the session dies mid-plan, the file should still show exactly where things stood.
  • Only mark completed when the step truly finished, including its verification. A step that ended in failing tests or partial work stays in_progress.
  • If a step turns out to be unnecessary or is superseded, do not leave it pending forever and do not silently delete it — mark it completed with a brief note appended to its content (e.g. "— superseded by X"), so the record stays honest.
  • When implementation diverges from the plan body (a design changes, an edge case forces a different approach), update the body with a short dated note at the point of divergence. The plan should describe what was actually built; a plan that lies is worse than no plan.
  • When the last todo completes, give the body a final pass: blockers that materialized, follow-ups discovered during implementation, and anything the next reader needs.

Frontmatter Template

---
name: short-plan-name
overview: "One sentence describing the outcome, scope, and implementation context."
todos:
  - id: first-step
    content: Concrete task written as an implementation action
    status: pending
  - id: verify-result
    content: Run the checks that prove the plan worked
    status: pending
isProject: false
---

Body Template

# Plan Title

## Goal
State the desired end state in one short paragraph.

## Scope
- In scope: concrete systems, files, and behaviors.
- Out of scope: tempting but intentionally deferred work.

## Files To Change
- `path/to/file`: exact change expected.

## Implementation Steps
- Step-by-step changes in execution order.

## Verification
- Commands, checks, logs, and acceptance criteria.

## Rollout
- Canary or batch sequence when applicable.

## Rollback
- How to safely undo or disable the change.

## Blockers
- Conditions that should stop implementation or rollout.

Quality Bar

  • The TODO list should match the plan body.
  • The plan should name the repo's existing patterns instead of inventing new ones.
  • Verification should prove behavior, not just formatting.
  • Rollback should avoid unrelated destructive changes.
  • Keep the plan concise, but remove ambiguity before removing detail.
  • After execution, statuses and body reflect what actually happened, not what was originally intended.

Keep plans implementation-sized

A useful plan should be small enough for an agent to execute without re-planning. Break broad initiatives into phases with concrete files, commands, and acceptance checks. Avoid vague tasks like "improve UX"; write observable outcomes such as "add empty-state component in src/... and cover it with a screenshot or unit test."

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.