/phase-runner:phase-plannerfrom phase-runner
Creates and maintains phase plan documents in docs/phases/ files. Manages task status, sprint structure, and phase progress tracking.
Ships in phase-runner. 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.
Read when SKILL.md points to them.
Creates and maintains phase plan documents — task and sprint lifecycle in docs/phases/Phase-*.md files.
For detailed format specification and edge cases, see reference.md.
All phase files live at: docs/phases/Phase-{N}-{Name}.md
One file per phase, numbered sequentially from 1. Always read the target file before making edits.
Each sprint has a task table. The canonical format includes a Status column:
| Status | # | Task | Module | Reference |
|--------|---|------|--------|-----------|
| — | 1 | Do the thing | src/core/ | Doc.txt |
| ~ | 2 | Another thing | src/ui/ |
| x | 3 | Done thing | src/core/ | Doc.txt |
| — | 4 | Verification step with no code anchor |
| MANUAL | 5 | Publish the package to the registry |
Module and Reference are optional cells. The header row always lists all five columns (Status | # | Task | Module | Reference), but a task row omits trailing placeholders instead of writing | — | or | — | — |:
| Row shape | When |
|---|---|
| Status | # | Task | Module | Reference | | Both Module and Reference have real values. |
| Status | # | Task | Module | | Module is set; Reference is N/A (do not append | — |). |
| Status | # | Task | | Neither Module nor Reference applies (e.g. manual QA only). |
Do not end a row with | — | — |. If Reference alone were needed without Module, use \| Status \| # \| Task \| Reference \| (rare).
| Status | Meaning |
|---|---|
— | Not started (default) |
~ | In progress |
x | Completed |
BLOCKED | Blocked by dependency or issue |
MANUAL | Only the user can do it (publish, install on their machine, record, an outside call) |
CUT | Removed from scope (preserves history) |
DEFERRED | Pushed to a later sprint or phase |
MANUAL vs BLOCKED. Both need the user. BLOCKED is agent work that got stuck (a missing credential, a decision) and goes back to an agent once unblocked. MANUAL is never agent work: phase-builder doesn't send it to an implementer or stop the run for it, and lists it at the phase checkpoint. The user marks it x when they've done it.
Legacy tables have no Status column. When first editing a sprint's task table, add the Status column:
| Status | to the header row|--------| to the separator row| — | to every existing task rowDo this migration atomically with the requested edit. Never leave a table half-migrated.
Turn a plan (a chat, a spec, a product-planner doc) into a new phase file. This is the entry point on a fresh project.
Input: What the phase delivers, plus whatever plan material the user has.
Steps:
docs/phases/ at the workspace root. If it doesn't exist, create it. No setup script is needed firstPhase-{N}-*.md, or 1 if there are nonedocs/phases/Phase-{N}-{Name}.md from the full template in reference.md: phase goal, then sprints, each with Goal, Tasks, Acceptance Criteria, Dependencies and Verification—, except a task only the user can do, which starts at MANUAL (not — with "(manual)" in the text). Use the sparse-row rules for Module and Referencerun phase {N}Never overwrite an existing phase file. If Phase-{N} already exists, use the next number or ask.
Design check. The design pass (design-planner) comes before phase planning for anything with screens. Check once per planning request, before Design sync:
The input is a product-planner plan (docs/Plan-*.html) that has a <section id="mockups">, and docs/design/DESIGN.md doesn't exist: stop. Write no phase file, and reply:
This plan has UI, but there's no design pass yet (docs/design/DESIGN.md is missing).
Run design-planner first: "Use {plan path} as input. Run the design pass."
Or say "skip design" to plan without one.
The request says skip design (or the user says it after the stop): plan as normal. UI sprints get no screen-spec references, and the sprint-list confirmation (step 7) says in one line that the phase was planned without a design pass.
Any other input (a chat, a spec) that adds new screens, with no docs/design/DESIGN.md: don't stop. Add one line to the sprint-list confirmation: No design pass found, so UI sprints will match the existing code's look. Run design-planner first if these screens need a new design.
docs/design/DESIGN.md exists, or the input has no UI: carry on.
Design sync. A design published by design-planner can be changed on its page (the Design canvas, the Design System page) as well as in the files. docs/design/DESIGN.md records the pages in the lines under its title, as Design system artifact: {url} and Design canvas: {url}. If either line is there and the session has an Artifact tool, run the design-planner skill's Design sync (design-sync.md, beside its SKILL.md) before reading docs/design/. It copies what changed on the page into the files, and what changed in the files onto the page, without asking.
docs/design/DESIGN.md, neither line in it, or no Artifact tool, skip it and plan from the files as they are.docs/design/, never from a published page.Change a task's status. This is the most common operation.
Input: Sprint ID (e.g., 1.3), task number(s), target status.
Steps:
# Sprint X.Y)Multiple tasks: When marking several tasks at once, update all in a single edit.
Shorthand the user might say:
Add a new task to a sprint's table.
Input: Sprint ID, task description, module, reference (optional).
Steps:
— (MANUAL if only the user can do it)Format: Use the sparse-row rules above: | — | {next#} | {task} when module and reference are both absent; otherwise include | {module} | and/or | {reference} | only for columns that have real values — never pad with trailing | — | only to fill the table.
If the user provides incomplete info, infer the module from context or ask. Omit the Reference column when there is no doc pointer.
Remove a task row and renumber remaining tasks.
Input: Sprint ID, task number.
Steps:
Prefer CUT over Remove: If the user says "remove" but the task was meaningful work, suggest using CUT status instead (preserves history). Only hard-remove for tasks added by mistake or duplicates.
Modify a task's description, module, or reference.
Input: Sprint ID, task number, fields to change.
Steps:
Never change the task number during an edit. Never change Status unless explicitly asked.
Move a task from one sprint to another (same phase or cross-phase).
Input: Source sprint + task number, target sprint.
Steps:
If the target sprint is in a different phase file, both files must be edited.
Add a new sprint section to a phase file.
Input: Phase number, sprint title, goal.
Steps:
### Verification on every new sprint (see below)Include on every new sprint going forward. Do not retroactively add to completed phases unless the user asks.
Placed after ### Dependencies (before the sprint --- divider). Gives phase-builder / skill-router explicit test scope instead of inferring routes and skills from task Module paths.
UI sprints automatically use docs/design/design-system.md via phase-ui-implement (implementation) and wave-test (design asserts) — when that file exists. No separate design: field — always that file.
### Verification
- cli: npm run check
- ui: /settings/profile
- skills: visual-qa-testing, responsive-testing
- viewports: 375, 1280
- assert: Profile form saves without a full reload; validation errors appear inline
| Key | Required | Purpose |
|---|---|---|
cli: | Yes (or infer from stack — see project-layout.md) | Command phase-verify sub-agent runs until exit 0 |
ui: | When sprint has UI | App route(s) for wave-test — comma-separate multiple |
skills: | When UI or QA | Skill names phase-builder assigns to wave-test (e.g. visual-qa-testing, responsive-testing) — only if such skills are actually available; see skill-router.md |
viewports: | Optional | Breakpoints for responsive testing; omit to use the default, 375 and 1280. List more only when the layout changes at another width |
skip-ui: | Data-only sprints | true — no wave-test after this sprint's wave |
assert: | Recommended for UI | Short browser checklist — what PASS means |
| Sprint type | Example |
|---|---|
| DB / types / utils only | cli: <check command> + skip-ui: true |
| UI component or page | cli + ui + skills + assert — design-system.md applied automatically when present |
| Mobile layout | Add a responsive-testing skill to skills if one is available; mention key widths in viewports |
| End-to-end user flow | assert describes the flow steps end to end |
| QA / regression sprint | All relevant ui routes + full skills list + detailed assert bullets |
assert lines short — one observable outcome per bulletui:, not in task Module cells### Verification blocks when editing tasks unless the user asks to change themSummarize progress for a sprint.
Input: Sprint ID.
Steps:
Sprint {X.Y} — {Title}
Total: {n} tasks
DONE: {n}
ACTIVE: {n}
BLOCKED: {n}
MANUAL: {n}
DEFERRED: {n}
CUT: {n}
Remaining:{n}
Progress: {done}/{total eligible} ({percent}%)
"Total eligible" excludes CUT and DEFERRED tasks.
Summarize progress across all sprints in a phase.
Input: Phase number.
Steps:
Phase {N} — {Title}
Sprint {X.1}: {done}/{eligible} ({%}) — {title}
Sprint {X.2}: {done}/{eligible} ({%}) — {title}
...
Phase Total: {done}/{eligible} ({percent}%)
List tasks filtered by status, sprint, module, or keyword.
Input: Filter criteria (any combination).
Steps:
Update multiple tasks across sprints in a single operation.
Input: List of sprint+task pairs and target status.
Steps:
Who runs this: The phase-doc-sync sub-agent, not the phase-builder orchestrator. See runtime-adapter.md in the phase-builder skill for how doc-sync is loaded/spawned in your environment.
When: After each implementation wave, from structured SPRINT RESULT data the orchestrator parsed.
Steps:
X.Y):
x for completed, BLOCKED for blocked, MANUAL for manual, DEFERRED / CUT as specified### Tasks table blockDOC SYNC RESULT per phase-doc-sync skillOrchestrator: Must not perform this operation inline during a phase run — spawn doc-sync instead.
Sprints are identified by their header pattern:
# Sprint {PhaseNum}.{SprintNum} — {Title}
Example: # Sprint 1.3 — Model Connector Layer
When the user says "sprint 1.3", match against this pattern. The sprint section extends from its header to the next sprint header (or end of sprints content).
The user may use informal language. Map these to operations:
| User says | Operation |
|---|---|
| "mark X done" / "complete X" / "finish X" | Set Status -> DONE |
| "start X" / "working on X" / "begin X" | Set Status -> ACTIVE |
| "block X" / "X is blocked" | Set Status -> BLOCKED |
| "X is mine" / "I'll do X" / "X is manual" | Set Status -> MANUAL |
| "cut X" / "X is out of scope" | Set Status -> CUT |
| "defer X" / "push X" / "move X to later" | Set Status -> DEFERRED |
| "reset X" / "unstart X" | Set Status -> — |
| "add task to X" | Add Task |
| "remove task from X" / "delete task" | Remove Task (suggest CUT) |
| "edit task X" / "change task X" / "update task" | Edit Task |
| "move task X to Y" | Move Task |
| "how's sprint X" / "sprint X status" | Sprint Report |
| "how's phase X" / "phase X progress" | Phase Report |
| "what's active" / "what am I working on" | List where Status = ACTIVE |
| "what's blocked" | List where Status = BLOCKED |
| "what's on me" / "what do I need to do" | List where Status = MANUAL |
| "what's left in X" | List where Status = — in sprint X |
| "new sprint in phase X" | Add Sprint |
| "plan phase X" / "turn this into a phase" / "start a phase plan" | Create Phase |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ayejk/phase-runner --plugin phase-runner9 skills in this plugin
/design-plannerEstablishes visual design language and screen contracts between project scope docs and phase-planner. Produces docs/design/DESIGN.md (Google design.md spec), screen specs, HTML mockups (screens/*.html + index hub), and design-system.md for phase-builder. Use when the user wants to design UI before phase planning, lock a design system, write screen specs, review HTML mockups, or run the design pass after a scope/rebuild plan. Trigger phrases: design pass, design-planner, design the UI, design system, DESIGN.md, screen specs, visual direction, before phase planner./phase-builderOrchestrates automated sprint implementation from phase plans — e.g. 'run phase 1', 'implement sprint 1.3', 'run phase 4 in a worktree'. Optional worktree mode isolates a phase run on its own branch so two phases can run at once. Spawns phase-ui-implement (UI sprints + docs/design/design-system.md), general implementation (data/mixed), phase-verify, phase-wave-test (design asserts), phase-doc-sync. Skill-router per sprint. Clean orchestrator thread. Max 3 retries per gate then escalate. Pauses at blockers and phase boundaries./phase-doc-syncApplies sprint implementation results to docs/phases/ phase plan files. Used by phase-builder as a sub-agent after each implementation wave — updates task Status columns from structured SPRINT RESULT payloads in batched edits. Orchestrator must never edit phase files directly during a phase run; spawn this instead. Also use when the user asks to sync phase docs from sprint results without re-implementing code.Other plugins' skills for the same job