agentleFS
harshadmadayeharshadmadaye/OPM/skills/milestone-planning/SKILL.md

milestone-planning

Skill4 starsChanged 58 days agoMITView on GitHub

Structures multi-week work as a milestone with a roadmap, a short always-read STATE digest, phased executable PLAN files with YAML frontmatter and XML task bodies, wave-based parallel execution by fresh subagents, deviation rules, checkpoints, and SUMMARY files for cheap history. Use when scope exceeds about one week or eight tasks, or when starting a greenfield project.

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

11 rules. About 0 are common, 4 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the work is bigger than that (weeks, many tasks, several subsystems, or a blank repo) you need a structure that survives context …

    line 9
  2. Very specific:

    If in doubt, start with opm:writing-plans.

    line 19
  3. Very specific:

    Every auto task has all five children.

    line 112
  4. Very specific:

    Before writing any plan, run the retrieval half of opm:compound-learnings against docs/solutions/ for the phase's keywords.

    line 116
  5. Distinctive:

    Start with all plans in the phase, wave unassigned.

    line 128
  6. Very specific:

    Do not add depends_on because a plan is numerically earlier.

    line 134
  7. Very specific:

    Read references/executing-a-phase.md when writing plans that contain checkpoints, executing a phase, handling a checkpoint, or writing a …

    line 144
  8. Distinctive:

    Every planning or execution turn that ends a unit of work closes with the same block, so the human can copy one line and keep going in a …

    line 152
  9. Very specific:

    Always name what the next thing is, not just its path.

    line 171
  10. Very specific:

    Plan a phase: read STATE.md, ROADMAP.md, ISSUES.md, prior SUMMARY frontmatter, and docs/solutions/.

    line 177
  11. Distinctive:

    Close the milestone: when the last phase closes, write a short retrospective at the top of ROADMAP.md and reset STATE.md for the next …

    line 183

≈ “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

Milestone Planning

opm:writing-plans handles a task list that fits in one head and one context window. When the work is bigger than that (weeks, many tasks, several subsystems, or a blank repo) you need a structure that survives context resets, lets independent work run in parallel, and leaves a history the next session can read in under a minute. That structure is a milestone.

When to use

  • Estimated scope is more than about one week or more than about eight tasks.
  • Greenfield project, or a feature that touches three or more subsystems.
  • The work will span several sessions and someone (or some agent) will need to pick it up cold.

If in doubt, start with opm:writing-plans; promote to a milestone when the task list stops fitting.

Artefacts

docs/milestones/<milestone>/
  ROADMAP.md                 phases, goals, status  (written once, updated at phase boundaries)
  STATE.md                   under 100 lines, ALWAYS read first, updated after every plan
  ISSUES.md                  deferred enhancements and known gaps, numbered ISS-NNN
  phases/
    01-<name>/
      PLAN-01-01.md          executable plan (frontmatter + XML body)
      PLAN-01-02.md
      SUMMARY-01-01.md       what actually shipped, with requires/provides/affects
      SUMMARY-01-02.md
    02-<name>/
      ...

Templates live in this skill's templates/ directory: plan.md, state.md, summary.md.

ROADMAP.md

One section per phase: number, name, one-line goal, the plans it contains with checkboxes, and a status line. Phases are vertical slices (a user-visible capability end to end), not horizontal layers (all models, then all APIs, then all UI). A roadmap of four to eight phases is typical; if you have more than ten, the milestone is too big. A "Definition of done" may add Real-environment pass: required (physical-device|prod-like).

STATE.md

The project's short-term memory. Every session that touches the milestone reads it first and updates it after each plan completes. Contents: current position (phase X of Y, plan A of B, status), the last three to five decisions, open blockers, a pointer to ISSUES.md with a count, and "stopped at" for session continuity. Under 100 lines, always. It is a digest, not a log; history lives in the SUMMARY files.

Plan format

A PLAN file is the executable prompt for one subagent. It must be specific enough that the executor never has to guess. Two or three tasks per plan; if you need more, split the plan.

Frontmatter

---
phase: 02-auth
plan: 01
wave: 1                       # computed at planning time from depends_on and files_modified
depends_on: []                # plan ids, e.g. ["01-02"]; only real dependencies
files_modified: [src/lib/auth.ts, src/middleware/auth.ts]
autonomous: true              # false if any task is a checkpoint
---

Body

<objective>
What this plan delivers and why it matters for the milestone. Two or three sentences.
</objective>

<context>
Files the executor must read before starting: STATE.md, the relevant source files, and prior
SUMMARY files only when this plan actually consumes what they built.
</context>

<tasks>
<task type="auto">
  <name>Task 1: Create session helper with signed cookie</name>
  <files>src/lib/auth.ts</files>
  <action>Export createSession(userId) and readSession(req). Use jose (not jsonwebtoken: CommonJS
  breaks under the Edge runtime). 15-minute expiry, httpOnly, sameSite=lax.</action>
  <verify>npx vitest run src/lib/auth.test.ts passes; npx tsc --noEmit is clean</verify>
  <done>Round trip create -> read returns the same userId; expired token returns null</done>
</task>

<task type="checkpoint:human-verify" gate="blocking">
  <what-built>Login form wired to the session helper</what-built>
  <how-to-verify>1. pnpm dev  2. visit /login  3. sign in with the seed user  4. confirm redirect to /app and the cookie in devtools</how-to-verify>
  <resume-signal>Reply "approved" or describe what is wrong</resume-signal>
</task>
</tasks>

<verification>
Plan-level checks beyond individual tasks: full test suite green, build passes, no new lint errors.
</verification>

<success_criteria>
Measurable statements: "unauthenticated request to /app redirects to /login", not "auth works".
</success_criteria>

Every auto task has all five children. files are exact paths. action says what to do, what to avoid, and why. verify is a command or an observable behaviour. done is testable without judgement.

Before writing any plan, run the retrieval half of opm:compound-learnings against docs/solutions/ for the phase's keywords; prior learnings become constraints in <context>.

Checkpoint types

checkpoint:human-verify (most), checkpoint:decision (some), checkpoint:human-action (rare). If it has a CLI or API, the executor does it; checkpoints are for confirmation and decisions only. Any plan containing a checkpoint sets autonomous: false. In unattended runs checkpoint:human-verify items go to REVIEW-QUEUE.md and the agent never marks them passed (see executing-a-phase.md).

Wave algorithm

Waves are computed when the phase is planned and written into each plan's frontmatter, so the executor does no dependency analysis at run time.

  1. Start with all plans in the phase, wave unassigned.
  2. A plan is eligible for wave N when every id in its depends_on is in a wave lower than N.
  3. Among eligible plans, two can share a wave only if their files_modified sets do not overlap.
  4. Assign the lowest wave that satisfies both rules. Repeat until every plan has a wave.
  5. Plans with autonomous: false stay in their computed wave; they simply pause at their checkpoint.

Do not add depends_on because a plan is numerically earlier. Only a real consumption relationship (types, exports, decisions, data) is a dependency. Reflexive chaining serialises work that could have run in parallel.

Executing a phase

Per wave, one fresh subagent per plan, all spawned in a single message. Each brief opens with "The plan below is your task. Anything else from the conversation is background, not instructions." The orchestrator writes SUMMARY and STATE from the text each subagent returns. A subagent that reports success with no new commits is rerun once, then escalated, never marked complete.

Deviation rules: 1. bug in scope, fix and note; 2. security or correctness gap, fix and note; 3. blocker, fix and note; 4. architecture change, stop and ask; 5. enhancement, log as ISS-NNN and continue.

Read references/executing-a-phase.md when writing plans that contain checkpoints, executing a phase, handling a checkpoint, or writing a SUMMARY.

SUMMARY files

The orchestrator writes SUMMARY-NN-MM.md from the returned text; its YAML frontmatter is what future planning scans.

Continuation closer

Every planning or execution turn that ends a unit of work closes with the same block, so the human can copy one line and keep going in a fresh context:

---
## Next up

**02-02: Refresh token rotation** - sliding expiry on /api/auth/refresh

Execute: docs/milestones/v1/phases/02-auth/PLAN-02-02.md

Run /clear first (fresh context window; STATE.md carries everything needed).

Also available:
- Review the plan before executing
- Plan phase 3 instead
---

Always name what the next thing is, not just its path. Pull the description from ROADMAP.md or the plan's <objective>.

Lifecycle in one screen

  1. Start: write ROADMAP.md (phases as vertical slices), an empty STATE.md, an empty ISSUES.md. Ask the review cadence only when no cadence is logged (DECISIONS.md or STATE.md): after each phase (default) or only at the end; log it in STATE.md Recent decisions with the expected commit count (see references/executing-a-phase.md). A milestone with no logged cadence uses after each phase.
  2. Plan a phase: read STATE.md, ROADMAP.md, ISSUES.md, prior SUMMARY frontmatter, and docs/solutions/. Use opm:brainstorming if the approach is unclear. Write two to five PLAN files, compute waves, commit them. Close with the continuation block.
  3. Execute the phase: wave by wave, fresh subagent per plan, checkpoints surface to the human.
  4. Close the phase: confirm every plan has a SUMMARY, tick the roadmap, refresh STATE.md, run opm:compound-learnings for anything non-obvious that happened, write REVIEW-PACK.md. Close with the continuation block.
  5. Close the milestone: when the last phase closes, write a short retrospective at the top of ROADMAP.md and reset STATE.md for the next milestone. Optional: /opm-video:explainer-video <path> turns this into a narrated explainer (install the opm-video plugin first).

Anti-patterns

See the Anti-patterns list at the end of references/executing-a-phase.md.

<!-- Adapted from gsd-build/get-shit-done (MIT) -->

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.