/phase-runner:product-plannerfrom phase-runner
Produces a rich HTML planning document for products or features, including data flow diagrams, UI mockups, technical decisions, and open questions. Useful when exploring implementation options or designing a feature before generating phase plans.
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.
Produces a rich, self-contained HTML planning document from a product or feature description. This document serves as the primary reference for implementation agents. When it has UI Mockups it feeds design-planner first, then phase-planner for phase plan generation; with no UI surface it goes straight to phase-planner.
The output is NOT markdown. It is a single navigable HTML file with visual sections, SVG diagrams, and mockups — something you'll actually open and read.
The file in docs/ is the plan. In a session that can publish artifacts, the same file is also published as a hosted page with a shareable link (Step 4). That page is a copy for reading and sharing; nothing downstream reads it.
Before writing anything, get the information needed to produce a useful plan. Two paths:
If the user pastes a plan or references an existing file (e.g. docs/BuildPlan.md or similar), read it. Extract:
Use the existing doc as the source of truth — don't re-interview on things already answered. Only ask for what's genuinely missing.
Ask the user the following (combine into one message, not one question at a time):
To build the plan, I need a few things:
1. **What are we building?** — feature name and one-line description
2. **What problem does it solve?** — user need or workflow it replaces
3. **Scope** — single feature, multiple related features, or full product?
4. **Stack constraints** — existing tech stack or greenfield?
5. **Any options already on the table?** — approaches you're considering or have ruled out
6. **Anything already decided?** — architectural choices, APIs, data models locked in
7. **What's the biggest unknown?** — what you most need this plan to help figure out
Don't proceed to Step 2 until you have enough to write a substantive plan. If the user gives a one-liner, probe for the minimum viable context before writing.
Before writing the plan, read the project's existing codebase context to ground the plan in reality:
CLAUDE.md in the project folder (if present) for stack and conventionsdocs/ for any existing phase plans, architecture docs, or prior specsThis context informs the data flow diagram, option feasibility, and technical decision sections.
Write a single self-contained HTML file, starting from the HTML in template.md in this skill's folder. Follow the structure below precisely. All CSS and JS stay inline; the only outside request is the template's Google Fonts link, and the page must read correctly without it. The file must open correctly in a browser with no server.
docs/Plan-{FeatureName}-{YYYY-MM-DD}.html
e.g. docs/Plan-NotificationsRework-2026-05-22.html
Save to the project's docs/ folder (the top-level coordination folder, NOT inside the app subfolder).
The document has a top bar, a left sidebar of numbered section links, and anchor-linked sections in one column. All sections are visible on the page — no tabs. The template's only script marks the sidebar link for the section in view.
1. Header
2. Overview
3. Data Flow
n-user), system components (gray, n-sys), external APIs (cyan, n-ext), data stores (green, n-store), and the matching legend4. Options Considered
5. UI Mockups (omit only if purely backend/infra with zero UI surface)
note6. Technical Decisions
7. Open Questions / Risks
8. Implementation Handoff
Use this plan as input: [path to this HTML file]
Run the design pass for [feature name].
Use this plan as input: [path to this HTML file]
Generate a phase plan for [feature name]. Stack: [stack].
First phase goal: [first phase goal].
The path is always the file in docs/, never an artifact link.
The plan's look is fixed by template.md: it matches phase-viewer, so a plan and the build dashboard read as one tool. Copy the template's <head>, <style> and <script> unchanged and write the content into its markup patterns. Don't restyle it, and don't add CSS for something the template already has a class for. If the plan needs something the template lacks, add a small rule that uses the template's tokens.
The plan has to read correctly in two places: opened from disk, and hosted as an artifact (Step 4). The template already handles both; keep these rules when adding anything:
<title> is the feature name and nothing else — e.g. <title>Notifications Rework</title>. No "Plan:" prefix, no date, no description after a dash or colon. A hosted copy takes its name from it:root blocks (dark first, then the light set under prefers-color-scheme: light and again under :root[data-theme="light"]). Everything outside the token blocks and the wireframe kit uses var(--token). A new token goes in all three blocksbody sets background: var(--bg) and color: var(--text) explicitly. A hosted page sits on the host's own background, and a body without one lets it show throughWhat the template gives you, so you don't have to re-decide it:
--bg, --surface panels, gold --accent), light from the reader's system setting. Status colors carry meaning: green --passed for selected and in scope, red --failed for cons and high risk, violet --manual for a task only the user can do. The accent is for links, the current section and user actions, never a statush3) are 17px in --text; section headings 22px with a mono numbermax-width on text. Below 720px the sidebar is hidden and the column takes the screen.prose for paragraphs, .bullets (square markers: big for main lists, pass, fail, quiet for color), .panel for a bordered box, .rows for a bordered list of .row items with a .row-h head (id, name, end item) and .row-b body, .kv for label/value pairs, .status and .tag badges, .lvl for risk levels, .manual for MANUAL tasksUI mockups use a separate, standard wireframe kit, also in the template. It doesn't inherit the plan's design: grey paper and grey ink, the system font, and one blue (--wf-note) for annotations. Its values are fixed on .phone, so wireframes look the same in every plan and in both themes, and never hint at the product's visual identity. That is design-planner's job.
.phone, use only the kit's classes: bar, wf (with dash, img, win, warn, err), btn (with primary, ghost), line, chips/chip (on), slots/slot (filled), note, small, spacer.phone-wrap with a .phone-cap caption (number and screen name). The caption is plan styling; the phone is kit stylingThese are defaults for the planning document itself (a tool for you to read the plan), not a statement about the product's own visual identity.
0 0 800 400 or taller as neededrx="6" rounded rectangles, labeled with <text> elements<line> or <path> with marker-end arrowhead definitions in <defs>n-user, n-sys, n-ext, n-store for nodes; t and ts for labels; ln, dash, zone, zt for lines and zones), never a literal value or inline color, so the diagram reads in both themes. Check that each label reads against its node's fill.panel.diagram, with the .legend above itdocs/Plan-{FeatureName}-{YYYY-MM-DD}.html in the project folderPlan saved. Next steps:
1. **Run the design pass** — hand this off to design-planner:
"Use docs/Plan-{name}.html as input. Run the design pass for {feature}."
It locks the visual style and writes a spec and mockup for every screen.
Phase planning comes after it, from the plan and docs/design/.
2. **Iterate on the plan** — tell me what to adjust: add a section, revise an option,
update the data flow, add mockups for a specific screen, etc.
UI Mockups omitted (no UI surface):
Plan saved. No UI surface, so no design pass is needed. Next steps:
1. **Generate phase plans** — hand this off to phase-planner:
"Use docs/Plan-{name}.html as input. Generate phase plans for {feature}."
2. **Iterate on the plan** — tell me what to adjust: add a section, revise an option,
update the data flow, add mockups for a specific screen, etc.
Some sessions have an Artifact tool that publishes a local HTML file as a hosted page and returns its link (Claude app sessions do). Check the session's tools instead of assuming. With no such tool, present the file exactly as you would have before and say nothing about artifacts.
When the tool is there:
Publish the saved file. Give the tool the path of the file from step 1 — that file, not a copy or a rewritten version. Supply whatever else it asks for on a first publish (a one-sentence description, for example)
Record the URL. Add this tag to the file's <head>, straight after <title>:
<meta name="phase-runner:artifact" content="{url}">
A later session reads the tag and republishes to the same URL instead of creating a second artifact. Don't republish just to get the tag into the hosted copy — the next revision carries it
Give the user both. The artifact link for reading and sharing, and the file path as the spec
Rules for every publish:
Couldn't publish the artifact: {reason}. The plan is at docs/Plan-{name}.html.) and carry on to the follow-up options. No retry loop, and nothing for the user to fix before they can use the planphase-runner:artifact tag is republished to that URL, as Iteration describesIf the user asks to proceed immediately after the plan is created ("go", "next", "build it", "plan the phases"):
design-planner skill with the plan's file path (docs/Plan-{name}.html) as its scope doc. Do this even when the user asked for phase plans: say in one line that the design pass comes first and why. design-planner hands off to phase-planner when it's donephase-planner skill with the plan's file path as contextdocs/phases/Phase-{N}-{Name}.md as normal markdown — the HTML plan is the input spec, not the output formatSkipping the design pass. Only when the user says so in as many words ("skip design", "no design pass"). Then invoke phase-planner and include skip design in the request, so its design check doesn't stop it.
The HTML plan file persists as the reference. phase-planner and the implementation agents spawned by phase-builder are pointed at its file path for full context — never at the artifact URL, even when one exists. They read docs/, and an artifact link is not something they can rely on being able to open.
If the user asks to update an existing plan (e.g. "revise the options section", "add a mockup for the settings screen", "update the data flow now that we've decided on X"):
docs/, not the published pageThe edit goes into the file first; the artifact is updated from the file, never the other way round.
<meta name="phase-runner:artifact"> tag. Republish the file to the URL in its content, so the same link now shows the revision. The tool may want the live page read before a new session can update it; do that read if it asks, then publish the file. If the two differ, the file wins<title> is the feature name alone<style> and <script> are copied unchanged; any added rule uses its tokensdocs/ (not inside the app subfolder)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./phase-plannerCreates and maintains phase plan documents in docs/phases/ files. Use when turning design chat into a structured phase plan, or when adding, removing, editing, moving, or changing task status in sprint plans, viewing sprint or phase progress, or restructuring sprints. Also used by the phase-doc-sync sub-agent when phase-builder applies SPRINT RESULT updates after each implementation wave./phase-ui-implementUI implementation sub-agent for phase-builder. Spawned for UI-primary sprints — reads docs/design/design-system.md first if it exists, then any optional UI-pattern skill for component patterns. Project design system overrides generic skill defaults. Runs a quick self-check (typecheck + its own tests) before returning; no full suite, no browser QA./phase-verifyPer-wave CLI verification for phase-builder. Spawned as a sub-agent after implementation calls return — runs the project's build and typecheck, the tests related to the wave's changes, and sprint acceptance grep patterns, then reviews the wave diff against a contract: a verdict per acceptance criterion, test-integrity checks, and scope against each sprint's Module column. Once per phase, in suite mode, runs the full test suite. Returns structured VERIFY RESULT. Orchestrator must never run CLI checks directly for verification.Other plugins' skills for the same job