/design-from-code:design-from-codefrom design-from-code
Turns requirements into UI designs by reading real component source and data models, then iterating HTML mockups and a design doc. Responds to 'design this', 'make a mockup'.
Ships in design-from-code. 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.
One line: lock facts with code → agree via HTML → nail it in a
.md→ ship by delegating. The key difference: mockups are not imagined. They are reproduced down to the pixel and the number by reading the real component JSX and data queries.
references/data-model-verification.mdreferences/code-fidelity-reproduction.md (★ the heart of this skill)references/html-mockup-recipe.md| # | Step | Key tools | Detail |
|---|---|---|---|
| 1 | Read the issue verbatim | Bash + gh issue view | Don't open GitHub via WebFetch (auth fails) |
| 2 | Map the code | Agent(Explore) ×N | Get just the conclusions for related components/hooks/schema |
| 3 | Verify the data | Bash (grep/sed) + Explore | handler→use-case→repository→schema. references/data-model-verification.md |
| 4 | HTML mockup v1 | Write (.html) + SendUserFile | Phone frame, 2–3 options, per-state, inline SVG. references/html-mockup-recipe.md |
| 5 | User confirmation | reply / AskUserQuestion | Confirm one at a time; v2, v3 per feedback |
| 6 | Faithful AS-IS/TO-BE | Bash (read JSX with sed) + Write | Extract real render fns/classes/labels → HTML. references/code-fidelity-reproduction.md |
| 7 | Design doc .md | Write | Approved mockup + verified data model + build entry points + phases |
| 8 | Delegate + verify | Agent (language expert) + direct | Delegate with the contract & verify commands baked in; close with build/tests |
references/code-fidelity-reproduction.md — ★ concrete technique for reading the real component with sed and reproducing it 1:1 in HTML (worked renderSeg example)references/data-model-verification.md — how to trace the data model all the way down (events-table username-attribution example)references/html-mockup-recipe.md — recipe for self-contained HTML (phone frame, inline-SVG charts, design tokens, empty state)references/prompt-templates.md — copy-paste prompts for each stepexamples/issue-976-walkthrough.md — the full flow of a real case (v1→v5, including the point where the user corrected "top/bottom is reversed")What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ccplugins/awesome-claude-code-plugins --plugin design-from-codeOther plugins' skills for the same job