# Image to code

> Image to code is an open-source agent skill for design and media. Guides an agent to generate section reference images first, then build matching web pages. It is available on Codex.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Codex
- **Website:** https://github.com/feimacode/open-design-agent-kit/tree/main/packages/content/assets/open-design/skills/image-to-code-skill
- **Repository:** https://github.com/feimacode/open-design-agent-kit
- **GitHub stars:** 1,238
- **License:** MIT
- **Skill name:** image-to-code
- **Collection:** https://github.com/feimacode/open-design-agent-kit
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-05

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/feimacode/open-design-agent-kit/tree/HEAD/packages/content/assets/open-design/skills/image-to-code-skill)
- [License: MIT](https://github.com/feimacode/open-design-agent-kit/tree/HEAD/packages/content/assets/open-design/skills/image-to-code-skill)

## Features

- **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

## Install

### Claude Code

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

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

## Alternatives

- [Imagegen frontend web](https://ai-powered.com/skills/imagegen-frontend-web): Imagegen frontend web is an open-source agent skill for design and media.
- [Frontend design](https://ai-powered.com/skills/frontend-design-melandlabs): Frontend design is an open-source agent skill for design and media.
- [Frontend design](https://ai-powered.com/skills/frontend-design-lichamnesia): Frontend design is an open-source agent skill for design and media.
- [Design taste frontend](https://ai-powered.com/skills/design-taste-frontend): Design taste frontend is an open-source agent skill for developer tools.
- [Design system](https://ai-powered.com/skills/design-system-smartworldarafath): Design system is an open-source agent skill for design and media.
- [Frontend design](https://ai-powered.com/skills/frontend-design-feimacode): Frontend design is an open-source agent skill for design and media.
- [Design](https://ai-powered.com/skills/design-juliusz-cwiakalski): Design is an open-source agent skill for design and media.
- [Frontend design](https://ai-powered.com/skills/frontend-design): Frontend design is a free agent skill for design and media.

---
Source: https://ai-powered.com/skills/image-to-code
