Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Image To Code?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/int2t05-image-to-code)
---
name: image-to-code
description: Implement an interface faithfully from supplied or approved images. Triggers on "image to code", "设计图转代码".
---
# Image to Code
## When to use
- Implement an interface faithfully from supplied or approved images.
**Not for:** frontend-design for code-first design; imagegen for images only.
## Steps
1. Inspect the approved image or exact design frame and target dimensions. When an authorized design connector is available, retrieve its screenshot, component and token context. Record which behavior needs implementation evidence.
2. Extract layout, type, colors, spacing and assets; ask about consequential ambiguity rather than inferring interaction from pixels.
3. Implement semantic controls and reusable components in the actual framework, including required responsive and interaction states.
4. Capture the running interface at matching dimensions and compare it with the reference. Correct material differences, exercise the core flow and record any unsupported fidelity claims.
## Verify
- Comparisons use actual matching viewports; interaction and responsive behavior work without unsupported fidelity claims.
## References
- [engineering-principles.md](../../../references/engineering-principles.md) — shared decision boundaries, scope and verification.
- [Shared design principles](../../../references/design-principles.md)
- [Visual direction](../../../skills/03-design/frontend-design/references/visual-direction.md) — describing composition and continuity in the approved reference