Skills

Image To Code

Turn a reference image, screenshot, or mockup into token-driven, accessible code.

Install

npx skills add plugin87/ux-ui-agent-skills --skill image-to-code -g -a claude-code -y
Category
Design
Updated
8d ago
License
MIT
Context cost
Lightabout 741 tokens
Runs scripts
No, instructions only

What it does

Turn a reference image, screenshot, or mockup into token-driven, accessible code. Infer the design system from the reference (palette, type scale, spacing, radius, layout archetype), map it to the 3-tier tokens, rebuild it, then verify with the kit's gates. Use when the user provides a design/screenshot and wants matching UI code.

Skill: Image to Code

Step 0: is the kit here? This skill reads files from the kit. Check once: ls ${CLAUDE_SKILL_DIR}/../../../tokens >/dev/null 2>&1 && echo KIT_OK || echo KIT_MISSING On KIT_MISSING only the skill folders were installed, which is what npx skills add does. Say so plainly, point the user at npx ux-ui-agent-skills init or the plugin install, and stop. Do not guess the contents of a file you could not open.

Reconstruct a design from a visual reference as a real design system, not a one-off copy. Match the system (color/type/spacing language), never lift copyrighted imagery or brand assets.

Read the whole SKILL.md on GitHub

More in Design