Where you are
Design handed over a screenshot, but you need code: layout, spacing and responsiveness must be editable.
Why the usual approaches fail
- model writes the whole page: unmaintainable structure
- measuring pixels: breaks on other screens
- visuals only: interactions and states missing
Three paths
| Path | Good for | Cost |
|---|---|---|
| Manual | one-off | 1–2 hours |
| Prompt only | quick fix | unstable, needs retries |
| skill | weekly repetition | install once, stable after |
Recommended steps
- Use code-to-design to recover structure
- Map it onto the existing component library
- Record tokens and rules with design-md
- Check responsiveness per breakpoint; add hover and empty states
Acceptance criteria
- structure is readable and editable
- existing components reused
- responsive and stateful
Related skills
- code-to-design — Turn existing frontend code back into design screens and specs.
- design-md — Write an actionable DESIGN.md so agents generate consistent interfaces.