wireframe-to-spec
[IMPORTANT] Use
TaskCreateto break ALL work into small tasks BEFORE starting.
Quick Summary
Goal: Bridge image inputs (wireframes, sketches) to structured UI specifications.
Workflow:
- Detect Input Type — Hand-drawn, digital wireframe, or screenshot
- Analyze Image — Use
ai-multimodalwith wireframe-specific prompts - Generate Spec — ASCII wireframe + components + states + responsive per
ui-wireframe-protocol.md - Output — PBI-compatible
## UI Layoutsection or standalone spec file
Key Rules:
Frontend/UI Context (if applicable)
When this task involves frontend or UI changes, MUST READ .claude/skills/shared/ui-system-context.md and the following docs:
-
Component patterns:
docs/project-reference/frontend-patterns-reference.md -
Styling/BEM guide:
docs/project-reference/scss-styling-guide.md -
Design system tokens:
docs/project-reference/design-system/README.md -
MUST READ
.claude/skills/shared/ui-wireframe-protocol.mdbefore generating output -
Always require human review — wireframe analysis is 70-80% accurate
-
Route to other skills when appropriate (Figma URL →
figma-design, app screenshot →design-screenshot)
Input Routing
| Input | Detection | Action |
|---|---|---|
| Hand-drawn sketch photo | Image with rough/organic lines | Analyze with wireframe prompts |
| Digital wireframe | Image with clean lines/shapes | Analyze with wireframe prompts |
| Wireframe tool export | Image from Excalidraw/Balsamiq/MockFlow | Analyze with wireframe prompts |
| Figma URL | figma.com in text |
Route to /figma-design instead |
| App screenshot | Polished UI with real data | Route to /design-screenshot instead |
Wireframe Analysis
Use ai-multimodal with these prompts:
Prompt 1: Layout Extraction
"Analyze this wireframe image. Identify: (1) page layout regions (header, sidebar, main, footer), (2) all UI elements with approximate position and type (button, input, table, card, dropdown, modal, tabs), (3) content hierarchy (what is primary vs secondary), (4) interactive elements, (5) any text labels or annotations, (6) navigation patterns."
Prompt 2: Component Identification
"From the wireframe, list every distinct UI component. For each: name it descriptively, classify its complexity (primitive=single element, composite=grouped elements, section=page region), note its purpose."
Output Generation
After image analysis, generate output per ui-wireframe-protocol.md:
- ASCII Wireframe — Recreate layout using box-drawing characters
- Component Inventory — List with tier classification (Common/Domain-Shared/Page)
- States Table — Default, Loading, Empty, Error per view
- Component Decomposition Tree — If detail level warrants (refine/story)
- Responsive Suggestions — Based on layout complexity
Output Formats
Format A: PBI Section (default)
Output as ## UI Layout section compatible with PBI/story templates.
Format B: Standalone Spec
Output as team-artifacts/design-specs/{YYMMDD}-wireframe-spec-{slug}.md
Confidence & Review
- Always display confidence level for wireframe interpretation
- Always recommend human review before proceeding to implementation
- If confidence <70%: ask user clarifying questions about ambiguous elements via
AskUserQuestion