/engineering-discipline:milestone-planningfrom engineering-discipline
Decomposes complex multi-day tasks into optimized milestones (ultraplan) using parallel codebase exploration and adversarial critics. Activates on 'plan milestones' or 'ultraplan'.
Ships in engineering-discipline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Decomposes a complex task into milestones in three moves: explore the codebase broadly in parallel, draft a milestone DAG grounded in what exploration found, then submit the draft to a panel of adversarial critics who attack it in rounds until it survives.
Milestones are the unit of long-running execution. A bad milestone decomposition cascades into days of wasted work. Two things prevent that:
A critic needs a concrete artifact to attack. This is why drafting comes before critique: "review the problem" produces suggestions; "break this draft" produces findings.
The skill requires a clear problem statement as input. This can come from:
clarification skill (preferred)If the input is ambiguous, return to the clarification skill before proceeding.
## Problem Brief
**Goal:** [What must be achieved]
**Scope:**
- In: [What is included]
- Out: [What is explicitly excluded]
**Technical Context:**
[Relevant architecture, existing code, constraints]
**Exploration Digest:**
[Key findings per lens, with file references — this is the evidence base
the draft cites and the critics check against]
**Constraints:**
[Time, compatibility, dependencies, performance requirements]
**Success Criteria:**
[Binary-decidable outcomes]
**Verification Strategy:**
- **Level:** [e2e | integration | skill/agent | test-suite | build-only]
- **Command:** [exact command to run the verification]
- **What it validates:** [what passing this verification proves]
Verification Discovery: Use the same discovery order as plan-crafting (e2e → integration → verification skills/agents → test suite → build+lint) and record the result in the Verification Strategy section. If no verification infrastructure exists, the Integration Verification Milestone's plan-crafting phase (during long-run execution) will create it as Task 0.
Iterating on a single draft anchors every later round to its initial shape — critics attack details, and the until-dry loop can only polish the skeleton it was given. Counter this with diverse initialization: draft twice before critiquing once.
DRAFT v1: the main agent picks the stronger skeleton and grafts superior elements from the other. Record the choice and rationale at the top of the resolution log ("Skeleton: B, because …; grafted A's M2/M3 split").The draft uses the full milestone format (see Phase 6) and is explicitly marked DRAFT v1.
For each milestone, the draft must state:
A milestone whose Evidence field is empty is a guess — explore more or merge it into a neighbor.
Dispatch the critic panel against the draft — all critics concurrently, in a single message, run_in_background: true, no worktree isolation (critics are read-only).
Panel composition — 4 core critics, always:
Plus up to 2 task-specific critics chosen by the problem's nature: Value & Sequencing (early user-visible value, minimum viable first milestone, abort points), Migration & Compatibility, Security & Access, Performance. Justify the choice in one line in the resolution log.
Critic prompt template (fill {LENS}, {LENS_FOCUS} from the panel definitions; copy Problem Brief and draft in full):
You are the {LENS} critic reviewing a draft milestone decomposition.
Your job is to find the ways this draft fails during execution.
You are not here to be agreeable — an easy approval from you is
a defect in the process.
## Problem Brief
{PROBLEM_BRIEF}
## Draft Milestone DAG (v{N})
{DRAFT}
## Your Task
Attack the draft strictly from your lens: {LENS_FOCUS}
Rules:
- Every finding must be concrete: name the milestone, quote the draft
text you are attacking, and state the failure scenario during
execution. Check claims against the Exploration Digest — a draft
assertion that contradicts the digest is automatically a finding.
- Assign each finding a severity:
- **Structural:** the decomposition's fundamental shape is wrong —
wrong unit of decomposition, wrong ordering philosophy, or a
missing phase that no milestone-level edit can add. Use only when
revision cannot fix it; a Structural finding must include a 3-5
line sketch of the alternative shape.
- **Blocking:** execution will fail, produce the wrong thing, or
require redoing a completed milestone
- **Concern:** elevated risk that needs a stated mitigation
- **Nit:** improvement, safe to ignore
- Do not propose a full alternative decomposition — attack this one.
The only exceptions: the "smallest fix" per finding, and the 3-5
line shape sketch required for a Structural finding.
- If you find nothing Blocking, earn it: list the attacks you attempted
and why the draft survived each one.
## Output Format
For each finding:
- **[Severity] Finding:** [one sentence]
- **Where:** [milestone ID(s) + quoted draft text]
- **Failure scenario:** [what concretely goes wrong during execution]
- **Smallest fix:** [minimal change to the draft that removes the failure]
If nothing Blocking: list attempted attacks and why each failed.
Critic failure handling:
| # | Critic | Severity | Finding (verbatim) | Resolution | Rationale / Draft change |
|---|--------|----------|--------------------|-----------|--------------------------|
| 1 | Dependency | Blocking | "M3 consumes the API defined in M4..." | Accepted | Reordered: M4 now precedes M3 |
| 2 | Complexity | Concern | "M2's migration effort is Small but..." | Accepted | M2 split into M2a (spike) + M2b |
| 3 | Verifiability | Blocking | "M5 criterion 'UX feels responsive'..." | Accepted | Rewritten: "p95 interaction latency < 100ms in the perf test" |
| 4 | Integration | Nit | "..." | Rejected | Digest shows the interface is already exercised by e2e suite |
After the draft is locked, the main agent automatically appends an Integration Verification Milestone as the final milestone in the DAG. This milestone is a structural guarantee — critics do not get a vote on its existence.
### M_final: Integration Verification
- **Goal:** Validate that all milestones work together as a complete system
- **Success Criteria:**
- [ ] Highest-level project verification passes (command from Verification Strategy)
- [ ] All milestone success criteria remain met after full integration
- [ ] Full test suite passes — no regressions in pre-existing functionality
- [ ] Cross-milestone interfaces are exercised end-to-end
- **Dependencies:** ALL other milestones
- **Files:** None (read-only verification — no new code)
- **Risk:** Medium (integration issues between independently-verified milestones)
- **Effort:** Small (verification only, no implementation)
- **User Value:** Confidence that the system works as a whole, not just per-milestone
- **Abort Point:** No (this is the final gate)
After appending the Integration Verification Milestone, the main agent independently validates the full DAG structure before presenting it to the user. Do not rely on the critics having caught everything.
This is the single approval gate of the entire long-run flow — after the user locks the plan here, long-run executes all milestones without further approval pauses.
Milestone count guard: The recommended count is 3-7. More than 7 → warn: "This plan has N milestones. Consider whether the problem should be split into separate projects." More than 10 → require explicit user approval to proceed.
docs/engineering-discipline/harness/<session-slug>/
├── state.md # Master state file
├── milestones/
│ ├── M1-<name>.md # Individual milestone definition
│ ├── M2-<name>.md
│ └── ...
└── planning/
├── problem-brief.md # includes Exploration Digest
├── draft-v1.md ... draft-vN.md
├── critiques/
│ ├── round-1-complexity.md
│ ├── round-1-dependency.md
│ └── ...
└── resolution-log.md # Critique Resolution Log, all rounds
state.md format:
# Long Run State: [Session Name]
**Created:** YYYY-MM-DD HH:MM
**Last Updated:** YYYY-MM-DD HH:MM
**Status:** milestone-planning-complete | executing | paused | completing | completed | failed
**Verification Strategy:**
- **Level:** [e2e | integration | skill/agent | test-suite | build-only]
- **Command:** [exact verification command]
- **What it validates:** [what passing proves]
## Milestones
| ID | Name | Status | Attempts | Dependencies | Plan File | Review File |
|----|------|--------|----------|-------------|-----------|-------------|
| M1 | [name] | pending | 0 | — | — | — |
| M2 | [name] | pending | 0 | M1 | — | — |
| M3 | [name] | pending | 0 | M1, M2 | — | — |
Status values: pending | planning | executing | validating | completed | failed | skipped
Attempts: number of plan-execute-review cycles attempted (incremented at each Step 2-3 start)
## Execution Log
| Timestamp | Event | Details |
|-----------|-------|---------|
| YYYY-MM-DD HH:MM | milestones-locked | N milestones approved by user |
Individual milestone file (M1-.md) format:
# Milestone: [Name]
**ID:** M1
**Status:** pending
**Dependencies:** [None | M1, M2, ...]
**Risk:** [Low/Medium/High]
**Effort:** [Small/Medium/Large]
## Goal
[One sentence goal]
## Success Criteria
- [ ] [Binary-decidable criterion — answerable met/not-met by command or code inspection]
- [ ] [Binary-decidable criterion]
- [ ] [Binary-decidable criterion]
## Files Affected
- Create: [files to create]
- Modify: [files to modify]
## User Value
[What the user sees/can test after this milestone]
## Abort Point
[Yes/No — can user stop here and have something useful?]
## Notes
[Mitigations for open Concerns from the critique rounds; special considerations]
| Anti-Pattern | Why It Fails |
|---|---|
| Critiquing the problem statement instead of a concrete draft | Produces suggestions, not findings; conflicts never surface until execution |
| Drafting once and only revising | Revision rounds polish the initial skeleton but cannot escape it; two skeletons + the Structural escape hatch exist for exactly this |
| Drafting without exploration | Milestone boundaries become assumptions; critics can't check claims against evidence |
| Running critics sequentially | Wastes time; critics are independent by design |
| Summarizing or softening critiques before resolving them | Filters findings through the drafter's bias; log verbatim |
| Marking a finding "addressed" without changing the draft or rebutting it | The finding resurfaces during execution, where it costs days instead of minutes |
| Reusing the same critic instance across rounds | Anchors on its previous critique instead of attacking the revised draft |
| Accepting criteria that need interpretation | Cannot validate completion; "done" becomes subjective |
| Creating milestones too large (>12 tasks each) | Exceeds single plan-crafting cycle; risk of context loss |
| Creating milestones too small (1-2 tasks each) | Overhead of plan-crafting + run-plan + review-work exceeds the work itself |
| Creating more than 10 milestones without user approval | Compounding risk across milestones; likely needs project split |
| Letting user skip the lock approval | This is the only approval gate — skipping it means days of unattended execution on an unreviewed plan |
After milestone planning is complete:
long-run skillclarification skillplan-crafting directlyThis skill itself does not invoke the next skill. It ends by presenting the milestone plan and letting the user choose the next step.
What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/clarificationUse when a user's request is vague, ambiguous, or underspecified. Explores the codebase first, then runs an iterative Q&A loop grounded in the findings until ambiguity is gone. Outputs a clear, well-scoped context brief so the user can plan sharply. Triggers on "I want to...", "I need...", "let's build...", "can you help me...", "we should...", or any request where the full scope isn't immediately clear./clean-ai-slopCorrective cleanup of AI-generated code — removes LLM-specific patterns while preserving behavior. Use when the user says "deslop", "slop", "clean AI code", "remove AI patterns", or when you spot LLM-generated code smells after any generation session. For general post-change review and fixes ("clean up", "simplify"), use the simplify skill instead./npx claudepluginhub tmdgusya/engineering-discipline --plugin engineering-disciplineOther plugins' skills for the same job