Skip to content
Skill

Image to code

Guides an agent to generate section reference images first, then build matching web pages

Image to code is an open-source agent skill for design and media. It is available on Codex.

Scripts
None
Platforms
Codex
GitHub stars
1.2K
Last commit
License
MIT
Listing updated

Similar skills

About Image to code

This skill tells a Codex-style agent to treat visually important website work as an image-first task. The agent produces one large, readable image per section (or extra detail renders when text or components are too small), studies those images for typography, spacing, colors, buttons and layout, and only then writes the frontend. It asks for fresh standalone renders rather than crops from earlier boards, so proportions stay intact.

The file also sets a series of design rules: a clean, short hero that stays readable on a small laptop screen, limited decorative pills and micro-labels, and no cards nested inside cards. It includes section packs for 4, 8 and 12 section sites, a checklist to run before finishing, and a set of anti-generic guidelines meant to keep the code from drifting away from the reference images.

The skill is a single SKILL.md with no scripts. It relies on image generation being available in the agent environment, and it assumes the agent can write HTML/CSS or similar frontend code afterward.

When your agent uses it

Elite website image-to-code skill for Codex. For visually important web tasks, it must first generate the design image(s) itself, deeply analyze them, then implement the website to match them as closely as possible. In Codex, it must prefer large, readable, section-specific images instead of tiny compressed boards, generate fresh standalone images for sections or detail views instead of cropping old ones, avoid lazy under-generation, avoid cards-inside-cards-inside-cards UI, and keep the hero clean, spacious, readable, and visible on a small laptop.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (36 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/image-to-code to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/feimacode/open-design-agent-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/image-to-code &&
cp -R "$tmp/packages/content/assets/open-design/skills/image-to-code-skill" ~/.claude/skills/image-to-code &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/image-to-code inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/image-to-code to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/feimacode/open-design-agent-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/image-to-code &&
cp -R "$tmp/packages/content/assets/open-design/skills/image-to-code-skill" ~/.agents/skills/image-to-code &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/image-to-code inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/image-to-code to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/feimacode/open-design-agent-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/image-to-code &&
cp -R "$tmp/packages/content/assets/open-design/skills/image-to-code-skill" ~/.cursor/skills/image-to-code &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/image-to-code inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/feimacode/open-design-agent-kit.git --path packages/content/assets/open-design/skills/image-to-code-skill

Or copy the folder to ~/.gemini/skills/image-to-code yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/image-to-code:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/feimacode/open-design-agent-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/image-to-code &&
cp -R "$tmp/packages/content/assets/open-design/skills/image-to-code-skill" ~/.copilot/skills/image-to-code &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/image-to-code inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/feimacode/open-design-agent-kit.git

Then copy open-design-agent-kit/packages/content/assets/open-design/skills/image-to-code-skill into your agent's skills folder as image-to-code. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Section-by-section reference images
Generates one large image per requested section so text and spacing stay legible.
Fresh regeneration over cropping
Re-renders unclear sections as new standalone images instead of slicing older boards.
Structured design analysis
Extracts type scale, spacing, button shapes, palette and grid logic before coding.
Clean hero guidance
Keeps the first screen short, focused and readable on a small laptop.
Anti-nested-box rules
Discourages cards inside cards and heavy wrapper containers in the generated layout.
Section packs and checklist
Offers 4, 8 and 12 section templates plus a pre-delivery verification list.

Good for

  • Turn a reference image into a responsive landing page
  • Design a hero section for a startup site with reference renders first
  • Build an 8-section marketing page from section-by-section images
  • Redesign a portfolio homepage while keeping its original visual style
  • Create a premium product page that matches a generated design direction

Image to code FAQ

Does Image to code need any scripts or extra tools?

No scripts are included. It relies on the agent having image generation available, and it expects the agent to write frontend code afterward.

When does the image-first workflow apply?

It applies to visually important web tasks such as heroes, landing pages, redesigns and portfolio sites. Bug fixes and mainly technical work are excluded.

Why does Image to code avoid cropping earlier images?

The skill says cropped regions often lose spacing accuracy, type proportions and margins, so it asks for a fresh render of each section instead.

Which license covers Image to code?

The repository is published under the MIT license.

How do I install Image to code in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/image-to-code to use it in all your projects, or to .claude/skills/image-to-code in one project.

Does Image to code run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Image to code?

Codex. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Image to code?

The closest alternatives to Image to code are Imagegen frontend web, Frontend design, Frontend design, Design taste frontend and Design system.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from feimacode/open-design-agent-kit

  1. Drafts a marketing and go-to-market slide deck that ties creative choices to growth

    • Open source
    • 1.2K GitHub stars
    • Presentations
  2. Works through OpenSpec change tasks one by one, checking them off as it implements

    • Open source
    • 1.2K GitHub stars
    • Developer tools
  3. Archives a finished OpenSpec change, checking artifacts and tasks before moving it

    • Open source
    • 1.2K GitHub stars
    • Developer tools
  4. Lets an agent act as a thinking partner for exploring ideas before a change

    • Open source
    • 1.2K GitHub stars
    • Developer tools
  5. Generates all OpenSpec change artifacts in one pass so implementation can start

    • Open source
    • 1.2K GitHub stars
    • Developer tools
  6. Walks you through a full OpenSpec change cycle on a real task in your codebase

    • Open source
    • 1.2K GitHub stars
    • Developer tools