Documentation-only. Refines plans for AI execution; output = plan markdown only. No code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/plan-refinement-plugin:plan-refinementThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Plan → checklist → gaps → **on any feedback: validate + verification loop** → only when user confident to write → write **new** file.
Plan → checklist → gaps → on any feedback: validate + verification loop → only when user confident to write → write new file.
./docs/plan/. No code, tests, or config.Do not infer the plan. Always ask the user explicitly:
./docs/plan/), orDo not read, guess, or infer from context. Wait for the user's answer before proceeding.
On every feedback (gap answers, task/plan changes):
Do not write until user has accepted in this loop and (for final write) said confident to go to writing.
| Step | Action |
|---|---|
| 1 | Present plan (full or summary). |
| 2 | Gaps: Run Gap analysis (below). List in Gaps. Agnostic phrasing. Ask fill/confirm. |
| 3 | "Accomplish your requirements? Fill/confirm Gaps first if any; then changes or confirm." |
| 4 | On feedback (gaps or tasks): incorporate → re-validate → present → "Correct or more changes?" → loop until accepted. |
| 5 | When accepted: "Confident to go to writing, or more changes?" If more → step 4. Loop until confident. |
| 6 | Only when confident to write: Write. New file: ./docs/plan/{plan-name}-YYYY-MM-DD-HHmm.md with current date-time. If path exists → different timestamp. Never overwrite. |
- [ ]: Title, File, Action, Notes; AC Given/When/Then); Additional Context if needed; Summary../docs/plan/ if needed.| Parameter | Requirement |
|---|---|
| Output file | New file only. ./docs/plan/{plan-name}-YYYY-MM-DD-HHmm.md; current date-time at write. Never overwrite plan-you-read or existing path; if exists → different timestamp. |
| Front matter | YAML ---. Only: title, slug, created, updated, status, stepsCompleted; optional epic, stories. No other keys. |
| Title & Overview | Problem (short), Solution (one para), Scope (In/Out). No code. |
| Files to Reference | Group by folder: one subsection per folder (base path). Per folder: table File | Purpose. File = path relative to that folder. No single flat table with full paths. |
| Technical Decisions | Bullets: defaults, data, errors, dialogs. |
| External resources | Bullets. UI? Ask Figma/refs; none → inferred. No UI → "N/A". |
| Implementation Plan | Tasks - [ ]. Each: Title, File, Action, Notes. AC Given/When/Then. |
| Additional Context | Optional. If absent, ask. If yes: bullets (deps, testing, notes). |
| Agent Execution Rules | Per task, mandatory order: (1) Dev context first. (2) TDD — no exceptions: add/extend tests → run (or scope) → implement until green → then mark complete. (3) Plan metadata. Skip = invalid. |
| Summary | End: what it delivers + work (scope, tasks, outcome). |
| Gaps | Run Gap analysis. List in Gaps; agnostic. User fill/confirm before write. |
Before listing Gaps, run; add each finding to Gaps (agnostic phrasing).
1. Designs (if plan has UI)
Figma/visuals in External resources? No → gap: request or confirm inferred. Yes → cover empty/error/loading for task-relevant states? No → gap.
2. Task list
Per task (Title, File, Action, Notes): what is unspecified? (error handling, loading, empty state, validation, navigation, dependency, edge case). One gap per undefined aspect.
3. Dimensions
4. Dev / Additional Context
Plan missing Additional Context or dev refs (MCP, design, codebase) and tasks need it → gap: provide or confirm not needed.
Place after Context, before Implementation Plan. Order is mandatory for every implementation task. Never skip 1 or 2.
Per implementation task (mandatory):
status: implementing; append to stepsCompleted; on done → status: completed.In every written plan, include this block in Agent Execution Rules:
Mandatory for every implementation task: 1) Dev context first. 2) TDD: tests → run → implement until green → mark complete. Never skip. Not optional.
X in path/file.dart" not "Add a method." Task = file + action + notes. AC = one-sentence testable.Summary (Parameters N/M, actions). Per parameter: ✅/❌ + comment. Optional: proposed changes. After present: Gaps → fill/confirm; "Accomplish requirements?" On any feedback: re-validate → present → "Correct or more changes?" → loop until accepted. Then "Confident to go to writing?" → loop until yes. Only then write new file (current date-time; never overwrite).
Project-specific params → Parameters to Review or linked ref.
npx claudepluginhub andershalo/halo-ai-dev-tools --plugin plan-refinement-pluginGuides writing or updating detailed plans for Claude Code sessions, assessing component readiness, filling knowledge gaps, defining testing strategies, and verifying hypotheses.
Creates structured plans for multi-step tasks including software features, implementations, research, or projects. Deepens plans via interactive sub-agent reviews.