Give your AI agent a design image. Get back a real, responsive website.
An agent skill that turns screenshots, mockups, Figma frames, and live pages into production frontend code, and then checks its own work against the design until the two match.
Every page above was built by an AI agent from nothing but a design image.
No Figma file. No source code. No design tokens. No hand-off doc.
Each site in this repo started as a single picture of a page, sometimes a crisp full-page screenshot and
sometimes a blurry, low-resolution thumbnail. I gave that image to an AI agent running the design-to-code
skill, and the agent did the rest:
- read the layout, spacing, colors, and type straight from the pixels
- identified or matched the fonts
- rebuilt every section as real, semantic HTML and components (not a screenshot pasted behind the page)
- made it responsive for screen sizes the design never showed
- took screenshots of its own build, compared them against the design, and fixed the differences
The result is six working Next.js sites you can clone, run, and read. The comparisons below put the original design image next to what the agent shipped.
The skill is the product. The websites are the proof.
skills/
├── design-to-code/ the skill (install this)
│ ├── SKILL.md main workflow the agent follows
│ ├── agents/openai.yaml agent metadata
│ └── references/ playbooks the agent loads only when needed
│ ├── reference-forensics.md
│ ├── art-direction.md
│ ├── interface-craft.md
│ ├── typography-and-fonts.md
│ ├── motion.md
│ ├── verification.md
│ └── evaluations.md
├── websites/ six sites built with the skill
│ ├── web1/ Agentwork
│ ├── web2/ AutoSend
│ ├── web3/ Medusa
│ ├── web4/ AccessGrid (Next.js app lives in web4/app)
│ ├── web5/ Terms
│ └── web6/ arix
└── assets/ README images
The quickest way is the skills CLI:
npx skills add https://github.com/Atharvsinh-codez/skills --skill design-to-codeManual install (Factory Droid, Claude Code, Codex, and other agents)
The skill is a plain folder with a SKILL.md file, so any agent that supports skills can use it. Clone the repo and copy the design-to-code folder into your agent's skills directory.
git clone https://github.com/Atharvsinh-codez/skills.git| Agent | Personal (all projects) | Project only |
|---|---|---|
| Factory Droid | ~/.factory/skills/design-to-code/ |
<repo>/.factory/skills/design-to-code/ |
| Claude Code | ~/.claude/skills/design-to-code/ |
<repo>/.claude/skills/design-to-code/ |
| Codex | ~/.codex/skills/design-to-code/ |
<repo>/.codex/skills/design-to-code/ |
macOS / Linux:
mkdir -p ~/.factory/skills
cp -r skills/design-to-code ~/.factory/skills/Windows (PowerShell):
New-Item -ItemType Directory -Force "$HOME\.factory\skills" | Out-Null
Copy-Item -Recurse skills\design-to-code "$HOME\.factory\skills\"Restart your agent session so it picks up the new skill.
Drop a design image into your agent and ask for code. The skill activates on requests like these:
Recreate this website in Next.js. Match it exactly.
Turn this screenshot into a responsive landing page using our existing components.
Here's a Figma frame. Build it, then make it work on mobile.
This page doesn't match the design anymore. Find the visual differences and fix them.
It works with React, Next.js, Vue, Svelte, plain HTML/CSS, or whatever stack your project already uses.
The skill turns "make it look like this" into a strict, repeatable process. The agent follows it step by step.
- Pick the mode. Exact reconstruction, greenfield art direction, hybrid expansion, variants, or repair. In reconstruction mode the design image is the authority, and the agent is not allowed to "improve" it into its own taste.
- Read the design like a forensic analyst. Measure the grid, container width, spacing rhythm, type scale, radii, shadows, and colors directly from the pixels. Every value is tagged as observed, inferred, or substituted, so nothing is guessed silently.
- Get the fonts right. Identify the typeface, check its license, and pick the closest legal match when the original is commercial. When nothing fits, the skill falls back to Geist Serif (or Geist Sans / Mono for clearly sans or mono designs) instead of a random default.
- Lock a fidelity contract. Decide what must match exactly, what may adapt, and what was never visible in the image.
- Build from macro to micro. Page structure first, then sections, then components, then fine details such as borders, focus rings, and hover states.
- Recompose for every screen. A screenshot shows one width. The skill rebuilds the layout for tablet and mobile instead of just shrinking it.
- Add motion with taste. Purposeful, fast, interruptible transitions that respect
prefers-reduced-motion, based on proven interface-motion principles. - Verify by rendering. The agent screenshots its own build, puts it next to the design, and fixes the differences. It also checks overflow, contrast, keyboard access, fonts actually loading, and console errors.
- Give an honest verdict. It reports what matches, what was inferred, and what is still off, instead of declaring "pixel-perfect" without evidence.
| Typical AI output | With design-to-code |
|---|---|
| Looks "close enough" at one screen size | Measured against the design, then rebuilt for mobile and tablet |
| Random system font or Inter everywhere | Font identified, licensed, matched, and checked to load |
| Emoji and icon-font placeholders | Clean inline SVG icons only |
| Screenshot pasted in as a background | Real semantic HTML you can edit, translate, and index |
| "Done!" with no proof | Side-by-side render comparison and a readiness verdict |
| Bouncy, slow, decorative animation | Short, purposeful motion with a reduced-motion fallback |
| Divs everywhere | Landmarks, headings, labels, focus states, WCAG AA contrast |
Each site is a standalone Next.js 16 project.
git clone https://github.com/Atharvsinh-codez/skills.git
cd skills/websites/web1 # or web2, web3, web5, web6
npm install
npm run devAccessGrid keeps its app one level deeper:
cd skills/websites/web4/app
npm install
npm run devThen open http://localhost:3000.
Do I need a Figma file?
No. That's the point. Every site in this repo was built from a design image alone. A Figma frame, a live URL, or a set of screenshots at different widths gives the agent more evidence, but a single PNG is enough to start.
Will it match the design pixel for pixel?
It gets very close, and it tells you exactly where it isn't. Text renders differently from a screenshot, licensed fonts sometimes need a substitute, and anything the image never showed (hover states, mobile layout) has to be inferred. The skill records each of those decisions instead of hiding them.
What if the screenshot is blurry or low resolution?
It still works. The Medusa example was built from a soft, low-res reference. The agent reads structure and proportions from what it can see, and marks anything uncertain as inferred.
Which framework does it output?
Whatever your project uses. If you start from an empty folder, it picks a sensible modern stack. All six examples here use Next.js 16 and React 19.
Which agents does it work with?
Any agent that supports the open skills format: Factory Droid, Claude Code, Codex, and others. The workflow lives in plain Markdown, so you can also read it and follow it yourself.
Can I use the example sites commercially?
Not as-is. The code is MIT, but the designs, brand names, and logos they reproduce belong to their owners. Use the sites to study the technique, and use the skill to build your own designs.
- Motion guidance in
references/motion.mdis adapted from Emil Kowalski's skills (MIT). - README layout inspired by taste-skill.
- Geist by Vercel is the fallback type family (SIL Open Font License).
The example websites are study reconstructions of publicly visible designs, made to show what the skill can do. All product names, logos, and brand designs belong to their respective owners. This project is not affiliated with or endorsed by any of them.
If this skill saved you time, a star on the repo helps a lot.
Questions, ideas, or something you built with it? Reach out on X.
MIT License · Copyright (c) 2026 Atharv Jadav





