/shipwright-design:shipwright-designfrom shipwright-design
Generates interactive HTML UI mockups and user flow diagrams from IREB specifications. Supports iterative screen design via chat and processes design feedback files.
Ships in shipwright-design. 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.
Turn IREB specs into interactive HTML mockups before a single line of code is written.
Governing rules: Read and follow shared/constitution.md (ALWAYS / ASK FIRST / NEVER boundaries).
================================================================================
SHIPWRIGHT-DESIGN: UI Mockups
================================================================================
Generate HTML mockups from your specs.
Usage:
/shipwright-design (analyze specs, generate all)
/shipwright-design @.shipwright/designs/screens/02-dashboard.html (iterate on one screen)
/shipwright-design @.shipwright/designs/design-feedback-round2.md (process feedback file)
/shipwright-design --upload (integrate uploaded designs)
Output:
- .shipwright/designs/screens/*.html (individual screen mockups)
- .shipwright/designs/flows/*.html (multi-screen user flows)
- .shipwright/designs/index.html (review viewer with feedback panel)
- .shipwright/designs/design-manifest.md (screen registry)
- .shipwright/designs/visual-guidelines.md (design tokens for build phase)
- .shipwright/designs/design-handoff.md (session handoff at finalization)
================================================================================
First, record the boundary baseline (before any other action, in every mode): uv run "${SHIPWRIGHT_PLUGIN_ROOT}/scripts/lib/boundary_baseline.py" --project-root "$(pwd)" prints {"boundary_baseline": "written"|"kept"|"not_written"}. It remembers what an earlier phase left uncommitted, and the boundary gate then judges only changes made after it: never stop to ask "commit earlier output first?" for that output. A red boundary gate after written or kept means this session changed something outside design: it is a real STOP too, never wave it through. On not_written (or if you skipped this step) a red boundary gate is a real STOP.
Brief package (shipwright_run_config.json records brief_dir or brief_package) -- checked FIRST, before every other mode (including @file Iterate on Existing) and before New Design Session; it needs neither --upload nor files in uploads/:
uv run "${SHIPWRIGHT_PLUGIN_ROOT}/scripts/checks/apply-brief-package.py" --project-root "$(pwd)" (re-verifies the package). Any non-zero exit (1 or 3) = STOP: report the issues; never generate or hand-copy the mapped screens and never type an FR id yourself. Only exit 0 (ok or already_applied) continues. On a first apply or a reset, read foreign_existing and kept_existing_differs in the output: when either list is non-empty, REPORT it to the operator (files the package did not place, or a kept guidelines file that differs) before going on, never silently continuescreen-map.json answers the upload-screen-mapping question; after exit 0 (idempotent, so it always runs first) continue with the mode the arguments ask for: @file -> Iterate on Existing (after composing per brief-compose.md), otherwise -> Upload Mode, its Brief section first (then Compose from the kit for every screen that is still the plain mockup copy, except a legacy chat-first package of a profile other than skill-companion-app; a legacy ux_shape: chat-first package of another profile also Chat-first; skill-companion-app is always composed as a board). Generate NO screen from scratch and skip Step 2.5, Step 3 and Step 6.5 (visual-guidelines.md IS the package's design_system file, never regenerated). Step 3.5: no new preview screens, but design.preview-approval still fires, on the COMPOSED screens (compose first). A non-empty unmapped_frs (also on already_applied) is informational: report it in your summary (those FRs have no screen; they need a mapped screen or an operator-authored Non-UI FRs entry with a deciding ADR) and continue to the gates. STOP and report to the operator, never fix it yourself: a red fr-coverage gate (never write a ## Non-UI FRs entry or an ADR, never generate a screen), a red tokens gate (it reads only the package guidelines) or a red standalone/chrome gate caused by package content rather than by a screen you composed (those you fix, brief-compose.md; in an autonomous run the standalone gate already keeps links the approved mockups carry, and a brief requirement no mockup shows is built from the brief: record both with record_autonomous_decision.py, never ask, upload-mode.md), a red uploads gate, a red brief_design_applied, or a rejected preview of the composed screens (the operator decides). After --gate all: Step 6a, 8, 8.5, 9 as normal; Step 3.7 derives the nav from the composed screens (legacy chat-first: skip it)New Design Session (no .shipwright/designs/ directory, and no Brief package above):
Iterate on Existing (@file argument pointing to HTML):
Upload Integration (--upload flag or .shipwright/designs/uploads/ exists with files):
.shipwright/designs/uploads/ for existing mockupsResolve it with {shared_root}/scripts/tools/get_phase_context.py --phase-task-id "{phaseTaskId}" --phase design (omit --phase-task-id entirely if the orchestrator did not hand you one — that is what selects standalone) and store the returned mode as invocation_mode (pipeline | standalone | error → STOP). The dispatch token is the authority — never re-derive the mode from run-config state. In pipeline mode do NOT call orchestrator.py update-step (single-session-apply owns completion). Full decision tree: invocation-mode.
Single-Session Gate Discipline: under mode: "single_session", honour per-gate policies — resolve interactive gates via ${SHIPWRIGHT_PLUGIN_ROOT}/../../shared/scripts/tools/resolve_gate_policy.py --phase design --list before stopping (auto-default → proceed; orchestrator-approve/hard-stop → STOP; design.preview-approval + design.review-loop-finalize are orchestrator-approve — a human eyeballs the mockups). Full rule: shared/prompts/single-session-gate-discipline.md.
The SessionStart hook injects SHIPWRIGHT_PLUGIN_ROOT=<path>. Use it directly.
Read these files for stack and architecture context before generating mockups:
CLAUDE.md — stack context (influences component and layout choices).shipwright/agent_docs/architecture.md — app structure, component hierarchy (if exists)If a file does not exist, skip it silently.
Early tracking: Mark design phase as in-progress in the project config (for session handoff):
# Read existing project config, add design_phase field
python3 -c "
import json; from pathlib import Path
p = Path('shipwright_project_config.json')
c = json.loads(p.read_text()) if p.exists() else {}
c['design_phase'] = 'in_progress'
p.write_text(json.dumps(c, indent=2) + '\n')
"
If the orchestrator handed you a phaseTaskId — i.e. /shipwright-run dispatched
you as a phase-runner subagent — you are part of an active pipeline. Run this as your
very first action:
uv run "${SHIPWRIGHT_PLUGIN_ROOT}/../../shared/scripts/tools/get_phase_context.py" \
--phase-task-id <phaseTaskId-from-context>
The tool prints structured JSON with runId, phase, splitId, prerequisites,
runConditions, and a skill_artifacts_to_read list. Read those artifacts
before proceeding so this phase session has full context for what came before.
If NO phaseTaskId was handed to you, this is a standalone invocation —
continue with Step 1 below as normal.
One resolver, one verdict. This is the same tool your "Detect Invocation Mode" step
already ran, so reuse that payload rather than re-deriving anything: its mode IS your
invocation_mode. Pass --phase <your phase> so a token belonging to another phase is
rejected, and if mode is "error" (exit 2) STOP — a dispatched phase must never
fall back to standalone.
Goal: Understand what the app needs from the IREB specs.
Read these files:
shipwright_project_config.json → profile name, scope.shipwright/planning/project-manifest.md → split overview.shipwright/planning/*/spec.md → all split specs (Functional Requirements)Extract from each spec:
Map FRs to screen types automatically using the keyword table. See step-2-screen-type-detection.md for the FR-keyword → screen-type table and the proposed screen-list output.
If the user has an existing website, auto-extract design tokens before asking design questions.
See step-2-5-brand-extraction.md for the WebFetch flow and token-extraction procedure. If the user keeps a Design System on claude.ai, offer it as the brand source instead: brand-from-design-system.md (list, read tokens.json, map to the kit contract, check contrast with scripts/tools/check_brand_tokens.py, fix and report).
Ask 3–5 targeted questions covering design system flavor, brand character, layout, existing designs, and special UX. Then present the proposed screen list for confirmation. See step-3-design-interview.md for the full question list, palette derivation table, and confirmation prompt.
Generate exactly 3 preview screens (auth + main layout + content-heavy) and confirm the look-and-feel before generating all screens. See step-3-5-design-preview.md for the procedure and confirmation prompt.
Create a single source of truth (.shipwright/designs/chrome-definition.md) for all shared UI elements (sidebar, topbar, footer, branding) so every screen has identical chrome.
See step-3-7-chrome-definition.md for the resolved-HTML procedure and confirmation prompt.
Create standalone HTML mockups. Flavor untitled-ui: compose from the kit (kit/untitled-ui/kit.css + a token set); other flavors: the snippet assembly system.
See step-4-generate-screens.md for the 8-step assembly process, design-context references, and HTML requirements.
Goal: Create multi-screen flow mockups.
For each confirmed flow:
.shipwright/designs/flows/{flow-name}.htmlFlows show screens in sequence with arrows or step indicators. See user-flow-patterns.md for standard flow templates.
Create the registry .shipwright/designs/design-manifest.md that downstream skills read.
See step-6-design-manifest.md for the manifest template.
Create .shipwright/designs/index.html — a full review tool with grid view, fullscreen viewer, and integrated feedback panel.
See step-6a-review-viewer.md for the template + placeholder mapping and feature list.
Goal: Create a reusable design token document for shipwright-build.
Skip if: User uploaded existing visual guidelines in Step 3, or a Brief package is in use (the package's visual-guidelines.md was placed by the tool).
See visual-guidelines-template.md for the complete template and value sourcing rules.
Goal: Add UI References back to the IREB specs.
If specs have a "UI Requirements" section (Section 7), update it with:
This is optional — skip if specs don't have the UI Requirements section.
Print the completion summary, review instructions, and generate screen-routes.json for design fidelity testing, then proceed to Step 8.5.
See step-8-completion.md for the completion banner, review instructions, and screen-routes derivation rules.
See review-loop.md for the complete review loop flow (Option A: Finalize with the Design Gates command (check-design-gates.py --gate all, FR-01.04 #1–#6/#8/#11) + Spec Backflow, Option B: Process Feedback with the Iteration Gate (#9), Option C: Pause, Decision Log Format, Flow Diagram).
Run this only after Step 8.5 Option A approves the design. Performs the canon minimum (C1/C2/C3/C5 + phase_history); C4 is skipped by design policy.
See step-9-finalization.md for the full bash sequence and the SHIPWRIGHT_RUN_ID handling.
See iteration-mode.md for Mode 1 (single-screen iteration), Mode 2 (feedback-file processing), and the Chrome Change Propagation rule.
See upload-mode.md for the .shipwright/designs/uploads/ integration procedure.
untitled-ui, snippets otherwise)untitled-ui, which uses the kit):root variable blocks for Material Design and custom flavors; untitled-ui uses the kit token setsuntitled-ui; kit in kit/untitled-ui/)material-design)kit/untitled-ui/examples/board-bold.html (opens in a new tab)kit/untitled-ui/examples/board-clean.html (opens in a new tab)kit/untitled-ui/examples/board-warm.html (opens in a new tab)kit/untitled-ui/examples/gallery-bold.html (opens in a new tab)kit/untitled-ui/examples/gallery-clean.html (opens in a new tab)kit/untitled-ui/examples/gallery-warm.html (opens in a new tab)kit/untitled-ui/fragments/board.html (opens in a new tab)kit/untitled-ui/fragments/gallery.html (opens in a new tab)kit/untitled-ui/kit.css (opens in a new tab)kit/untitled-ui/tokens-contract.md (opens in a new tab)kit/untitled-ui/tokens/bold.css (opens in a new tab)kit/untitled-ui/tokens/clean.css (opens in a new tab)kit/untitled-ui/tokens/warm.css (opens in a new tab)kit/untitled-ui/ux-rules.md (opens in a new tab)references/brand-from-design-system.md (opens in a new tab)references/brief-compose.md (opens in a new tab)references/chat-first.md (opens in a new tab)references/design-flavors.md (opens in a new tab)references/design-system-patterns.md (opens in a new tab)references/invocation-mode.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ui-mockups, wireframes, html-prototyping, ireb-specs, user-flows
npx claudepluginhub svenroth-ai/shipwright --plugin shipwright-designOther plugins' skills for the same job