/phase-runner:phase-ui-implementfrom phase-runner
UI implementation sub-agent for phase-builder. Implements sprint UI tasks (forms, modals, pages) matching the project's design-system.md. Runs typecheck and its own tests before returning.
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.
None: SKILL.md is the whole skill.
UI-focused implementation sub-agent for phase-builder. You implement sprint UI tasks — forms, modals, pages, any UI surface — matching this project's own design-system.md.
Read-only for phase plan files — do not edit docs/phases/*.md.
The orchestrator spawns you for UI-primary sprints. Mixed or data-only sprints use the general implementation agent instead.
design_system_doc — absolute path or skill reference to docs/design/design-system.md, only if it exists (only this file; do not load other design docs unless orchestrator explicitly adds one)implementation_skills[] — any optional UI-pattern skill actually available in this environment (never assumed); never browser/testing skillsPRIOR VERIFY / WAVE TEST FAILURES from verify or wave-testrun_log block in the prompt's RUN LOG section, with this run's attempt (a continued retry gets the new attempt in its message)✓ Sprint {id} complete — orchestrator handles verify / wave-test / doc-sync{
"workspace_root": "/path/to/workspace-root",
"app_root": "/path/to/workspace-root/app",
"design_system_doc": "/path/to/workspace-root/docs/design/design-system.md",
"sprint_id": "5.3",
"implementation_skills": [
"{optional UI-pattern skill, if one is installed in this environment}"
]
}
| Field | Purpose |
|---|---|
workspace_root | Coordination folder — design-system path lives here |
app_root | Edit src/ and components here |
design_system_doc | {workspace_root}/docs/design/design-system.md — read first, if it exists, by section |
design_sections | Headings of design_system_doc the orchestrator matched to this sprint's tasks |
implementation_skills | Read after design system — e.g. a generic UI component-pattern skill, if installed |
run_log | Optional: path, phase, wave, sprint, attempt, max. When present, append one implement start line before anything else, then a task start and a task pass line around each task (see Run log). Absent → write nothing |
design_system_doc, if present — project source of truth; wins on any conflict. Read it by section, not whole: grep its headings (^#) first, then read the sections the prompt names under DESIGN SECTIONS, plus any other heading that's clearly about a component you're building. Read each section once and keep it in mind; don't re-read.If design_system_doc is missing entirely (design-planner hasn't run yet, or this project doesn't use one), note it in SPRINT RESULT NOTES and follow existing components in the codebase — do not invent a new visual language mid-sprint. If no existing components exist either, use sound UI defaults (see any assigned generic UI skill, or standard accessible-UI practice) and flag in NOTES that a design pass would help.
This skill does not hardcode any project's specific colors, fonts, or tokens — that would defeat the point of reading design_system_doc per-project. Whatever this project's design-system.md specifies is what you enforce. Typical categories a design-system.md will cover, and that you should check for and apply:
When an assigned generic UI-pattern skill suggests something that conflicts with this project's design-system.md, design-system.md wins — always.
run_log block, append the implement start line now, before reading anything (see Run log)run_log block, append a task start line before you begin each task and a task pass line when it's finished (see Run log)SPRINT RESULT: block, including the CHECKS lineOnly when the prompt has a run_log block. The spec is phase-builder's run-log.md; this is the part you need. Append with this exact line, replacing only the {…} placeholders and keeping every other character, including the summary's tr pipe and "${RL_FILES:-}". {path} (twice), {phase}, {wave}, {sprint}, {attempt} and {max} come from run_log. Never write the log with a file-edit tool.
mkdir -p "$(dirname '{path}')" && printf '{"v":1,"ts":"%s","phase":%d,"wave":%d,"sprint":"%s","gate":"%s","result":"%s","attempt":%d,"max":%d,"summary":"%s"%s}\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)" '{phase}' '{wave}' '{sprint}' '{gate}' '{result}' '{attempt}' '{max}' "$(printf '%s' '{summary}' | tr '\042\134\011\012\015' "'/ " | tr -d '\000-\037')" "${RL_FILES:-}" >> '{path}'
| When | gate | result | summary |
|---|---|---|---|
| First action, before any other work | implement | start | Empty: '{summary}' becomes '' |
| Before you begin a task | task | start | The task number alone: '{summary}' becomes '3' for task 3 |
| When that task is finished | task | pass | The same task number |
implement start line per implementation run, as its own command. When you're continued with a retry that gives a new attempt, append a new start line with it before touching the failures.task lines use the attempt and max of your start line. A finished task's pass line and the next task's start line may be chained with && in one command. A task you couldn't finish gets no pass line. On a retry, log only the tasks you work on again.task lines only show progress. They change no status: never edit the phase file.start or task alike: fix an obvious slip and run it once more at most, then put one line in NOTES (run log: append failed — {reason}) and carry on. It never blocks or delays a task, and never stops the sprint.run_log block: no start line and no task lines.Same shape as general implementation agent:
SPRINT RESULT:
COMPLETED: [comma-separated task numbers, or NONE]
BLOCKED: [comma-separated task numbers, or NONE]
BLOCKED_REASONS: [for each blocked task on a new line: "Task N: <reason>"]
MANUAL: [comma-separated task numbers only the user can do, or NONE]
CHECKS: [self-check result, e.g. "check pass; 2 test files, 18/18 pass" — or what still fails]
NOTES: [decisions, design-system deviations (should be NONE), warnings for wave-test, what the user must do for each MANUAL task]
MANUAL, not BLOCKED, for user-only tasks. A task only the user can do (publish, install on their machine, record a video, an action outside the codebase) goes under MANUAL, with what they must do in NOTES. Do any part of it an agent can do first. BLOCKED is for agent work that got stuck: a missing credential, a decision the user must make. MANUAL doesn't stop the run; BLOCKED does.
docs/design/ — only design-system.md unless orchestrator adds another pathdesign-system.md — its headings, then the sections you needWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ui-implementation, phase-builder, design-system, sprint-tasks
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-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./phase-viewerStarts the phase-viewer live dashboard for this project (npx phase-viewer) in the background and reports its localhost URL, reusing the viewer that's already running for the project instead of starting a second one. Shows phases, sprints, tasks and gate results from docs/phases/ and its run logs, updating live during a phase-builder run. In a remote or cloud session it starts nothing and gives the command to run locally. Trigger phrases: open the viewer, start the viewer, launch the phase viewer, show the dashboard, open the dashboard, viewer URL, where's the viewer, watch the build, phase-viewer.Other plugins' skills for the same job