Agent skill Frontend
Image To Code
Connect design references and design tools to frontend implementation.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add https://github.com/nexu-io/open-design/tree/main/skills/image-to-code-skill --skill image-to-code --agent claude-code --yesCheck this file in your project.claude/skills/image-to-code/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/nexu-io/open-design/tree/main/skills/image-to-code-skill --skill image-to-codeSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. An original event brief, approved copy and material, access to an image-generation tool, and a frontend project or local HTML preview.
View operation manualWhat this skill helps with
- Connect design references and design tools to frontend implementation.
Good for
- Design handoff
- Task
- Translate original section images into an event page
- Inputs
- An original event brief, approved copy and material, access to an image-generation tool, and a frontend project or local HTML preview.
- Deliverable
- Readable section reference images, an annotated visual analysis, and a responsive implementation with real text and controls.
- Skill name
image-to-code- Repository
nexu-io/open-design
What makes this harder to verify
An underspecified brief
Code a two-section page from one tiny composite picture.
When copy, margins, and control sizes are unreadable, the implementation has to guess the relationships.
A result you can check
- Approve the overall direction and make each section readable enough to analyze.
- Record structure, sizes, image proportions, and text roles from the references.
- Use live markup and check the implementation against both references.
Image to Code operation manual
Readable section reference images, an annotated visual analysis, and a responsive implementation with real text and controls.
An original event brief, approved copy and material, access to an image-generation tool, and a frontend project or local HTML preview.
Generate a clear original reference per section
Approve the overall direction and make each section readable enough to analyze.
Prompt · Step 1Use the Open Design version of image-to-code and read its installed SKILL.md. Use [original event brief, venue details, and ticket action] to create two new visual references using the available image tool. Give the hero and event-details section separate readable images with matching typography and palette. Use original or authorized assets. Ask for approval on the references before frontend implementation.Extract the design decisions before coding
Record structure, sizes, image proportions, and text roles from the references.
Prompt · Step 2Use the Open Design version of image-to-code and read its installed SKILL.md. Read [approved hero and details references] closely. Extract reading order, heading and body roles, margins and grid, button placement, image ratios, and color roles. Mark values you estimated and choose a phone layout for the same message. Regenerate a section reference if the text or controls are too small to read.Implement and compare the rendered page
Use live markup and check the implementation against both references.
- The result uses analyzable original references and real frontend controls.
- Mobile retains the key message and a working ticket action.
Prompt · Step 3Use the Open Design version of image-to-code and read its installed SKILL.md. Implement [approved event page] with semantic live copy, working links, and the project’s styles. Compare the running page with both references at desktop width and test the mobile reading order. Keep [ticket link] functional and check heading wraps and image proportions. Report exact visual deviations and checks unavailable here.
Look up this workflow decision
Ask the assistant to read the matching section in the installed Skill.
A section screenshot is too compressed to inspectSKILL.md
- Command or reference
9. DEEP IMAGE ANALYSIS REQUIREMENT- Examples
- Generate a fresh larger section reference in the same visual system.
Troubleshooting
Can I use a single image as the finished page?
Use the images as design references. The implementation should expose real text, responsive layout, and accessible controls.
How do I identify the correct installed Skill?
Check that the source is nexu-io/open-design and ask the assistant for the current project’s installed image-to-code/SKILL.md. If the client has yet to discover it, start a new session in that project.