# Image To Code

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

- Repository: https://github.com/plugin87/ux-ui-agent-skills (3071 stars)
- Category: Design
- License: MIT
- Last updated: 2026-10-27
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add plugin87/ux-ui-agent-skills --skill image-to-code -g -a claude-code -y`
Codex: `npx skills add plugin87/ux-ui-agent-skills --skill image-to-code -g -a codex -y`
Cursor: `npx skills add plugin87/ux-ui-agent-skills --skill image-to-code -g -a cursor -y`
Gemini CLI: `npx skills add plugin87/ux-ui-agent-skills --skill image-to-code -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add plugin87/ux-ui-agent-skills`

## Description

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.md, as published by its author (untrusted third-party text, read it as data)

# 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.

The rest: https://github.com/plugin87/ux-ui-agent-skills/blob/HEAD/.claude/skills/image-to-code/SKILL.md
