Agent skill
wireframe-to-spec
[Frontend] Convert hand-drawn wireframes, digital wireframes, or UI sketches into structured design specifications. Accepts image inputs and produces ui-wireframe-protocol-formatted specs. Triggers on wireframe, sketch, hand-drawn, mockup image, wireframe to spec, sketch to code.
Install this agent skill to your Project
npx add-skill https://github.com/duc01226/EasyPlatform/tree/main/.claude/skills/wireframe-to-spec
SKILL.md
[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,
UI System Context — For frontend/UI/styling tasks, MUST READ these BEFORE implementing:
frontend-patterns-reference.md(component base classes, stores, forms),scss-styling-guide.md(BEM methodology, SCSS vars, responsive),design-system/README.md(design tokens, component inventory, icons). MUST READ.claude/skills/shared/ui-system-context.mdfor full protocol and checklists.
-
Component patterns:
docs/project-reference/frontend-patterns-reference.md(content auto-injected by hook — check for [Injected: ...] header before reading) -
Styling/BEM guide:
docs/project-reference/scss-styling-guide.md -
Design system tokens:
docs/project-reference/design-system/README.md -
UI Wireframe Protocol — Wireframe-to-implementation flow: parse layout structure, map to components, extract design tokens, generate responsive breakpoints. MUST READ
.claude/skills/shared/ui-wireframe-protocol.mdfor full protocol and checklists. before 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
Closing Reminders
- MUST break work into small todo tasks using
TaskCreateBEFORE starting - MUST search codebase for 3+ similar patterns before creating new code
- MUST cite
file:lineevidence for every claim (confidence >80% to act) - MUST add a final review todo task to verify work quality MANDATORY IMPORTANT MUST READ the following files before starting:
- MUST READ
.claude/skills/shared/ui-system-context.mdbefore starting - MUST READ
.claude/skills/shared/ui-wireframe-protocol.mdbefore starting
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
fix-parallel
[Implementation] Analyze & fix issues with parallel fullstack-developer agents
ask
[Utilities] Answer technical and architectural questions.
claude-code
[Utilities] Claude Code CLI setup, configuration, troubleshooting, and feature guidance. Triggers on claude code setup, hook not firing, MCP connection, context limit, skill creation, slash command setup.
workflow-deployment
[Workflow] Trigger Deployment & Infrastructure workflow — CI/CD pipelines, Docker, Kubernetes setup and deployment.
workflow-idea-to-pbi
[Workflow] Trigger Idea to PBI workflow — po/ba workflow: capture idea, refine to pbi, create stories, prioritize.
easy-claude-help
[Utilities] Configuration guide for the easy-claude framework — explain settings, guide users through configuring .ck.json.
Didn't find tool you were looking for?