[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108034":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":15,"starSnapshotCount":15,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},108034,"skills","Atharvsinh-codez\u002Fskills","Atharvsinh-codez","design-to-code ","",null,"TypeScript",152,8,72,0,1,7,59,4,54.26,"MIT License",false,"main",true,[],"2026-11-03 12:17:05","2026-11-23 14:32:55","\u003Cdiv align=\"center\">\n\n# design-to-code\n\n**Give your AI agent a design image. Get back a real, responsive website.**\n\nAn agent skill that turns screenshots, mockups, Figma frames, and live pages into production frontend code,\nand then checks its own work against the design until the two match.\n\n[![Website](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FWeb-athrix.me-111111?style=flat-square)](https:\u002F\u002Fathrix.me)\n[![X](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F@athrix__codes-000000?style=flat-square&logo=x)](https:\u002F\u002Fx.com\u002Fathrix_codes)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-2563eb?style=flat-square)](LICENSE)\n[![Agent Skill](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fagent-skill-f97316?style=flat-square)](design-to-code\u002FSKILL.md)\n[![Built with Next.js](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdemos-Next.js%2016-000000?style=flat-square&logo=nextdotjs)](websites)\n\n\u003Cbr \u002F>\n\n\u003Cimg src=\"assets\u002Fshowcase.webp\" alt=\"Six landing pages built by an AI agent with the design-to-code skill\" width=\"100%\" \u002F>\n\n\u003Csub>Every page above was built by an AI agent from nothing but a design image.\u003C\u002Fsub>\n\n\u003C\u002Fdiv>\n\n\u003Cbr \u002F>\n\n## I built these websites from design images only\n\nNo Figma file. No source code. No design tokens. No hand-off doc.\n\nEach site in this repo started as **a single picture of a page**, sometimes a crisp full-page screenshot and\nsometimes a blurry, low-resolution thumbnail. I gave that image to an AI agent running the `design-to-code`\nskill, and the agent did the rest:\n\n- read the layout, spacing, colors, and type straight from the pixels\n- identified or matched the fonts\n- rebuilt every section as real, semantic HTML and components (not a screenshot pasted behind the page)\n- made it responsive for screen sizes the design never showed\n- took screenshots of its own build, compared them against the design, and fixed the differences\n\nThe result is six working Next.js sites you can clone, run, and read. The comparisons below put the\noriginal design image next to what the agent shipped.\n\n> The skill is the product. The websites are the proof.\n\n\u003Cbr \u002F>\n\n## Design image vs. shipped code\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Cimg src=\"assets\u002Fweb2-autosend.webp\" alt=\"AutoSend: design image on the left, coded result on the right\" \u002F>\n      \u003Cp>\u003Cb>AutoSend\u003C\u002Fb> · email platform\u003Cbr \u002F>\u003Csub>Left: design image. Right: the built page. Serif display type, pixel-art hero, agents, SDK, and webhook sections.\u003C\u002Fsub>\u003C\u002Fp>\n    \u003C\u002Ftd>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Cimg src=\"assets\u002Fweb3-medusa.webp\" alt=\"Medusa: low-resolution design image on the left, coded result on the right\" \u002F>\n      \u003Cp>\u003Cb>Medusa\u003C\u002Fb> · commerce platform\u003Cbr \u002F>\u003Csub>Left: a blurry, low-res reference. Right: the sharp rebuild. The agent recovered the layout and copy from a soft image.\u003C\u002Fsub>\u003C\u002Fp>\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Cimg src=\"assets\u002Fweb4-accessgrid.webp\" alt=\"AccessGrid: design image on the left, coded result on the right\" \u002F>\n      \u003Cp>\u003Cb>AccessGrid\u003C\u002Fb> · NFC access passes\u003Cbr \u002F>\u003Csub>Left: design image. Right: the built page. Floating nav, phone mockup, and a wallet card rebuilt in code.\u003C\u002Fsub>\u003C\u002Fp>\n    \u003C\u002Ftd>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Cimg src=\"assets\u002Fweb5-terms.webp\" alt=\"Terms: design image on the left, coded result on the right\" \u002F>\n      \u003Cp>\u003Cb>Terms\u003C\u002Fb> · AI contracts\u003Cbr \u002F>\u003Csub>Left: design image. Right: the built page. Gradient hero, Ask \u002F Comment \u002F Draft demos, set in Geist.\u003C\u002Fsub>\u003C\u002Fp>\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Cimg src=\"assets\u002Fweb6-arix.webp\" alt=\"arix: design image on top, coded result below\" \u002F>\n      \u003Cp>\u003Cb>arix\u003C\u002Fb> · animated brand guidelines\u003Cbr \u002F>\u003Csub>Top: design image. Bottom: the built page. Dot-grid hero, brand tabs, and showcase video card.\u003C\u002Fsub>\u003C\u002Fp>\n    \u003C\u002Ftd>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Cimg src=\"assets\u002Fweb1-agentwork.webp\" alt=\"Agentwork: the coded landing page\" \u002F>\n      \u003Cp>\u003Cb>Agentwork\u003C\u002Fb> · AI workplace assistant\u003Cbr \u002F>\u003Csub>Built from one full-page screenshot pasted into chat. The app window in the hero is real DOM, not an image.\u003C\u002Fsub>\u003C\u002Fp>\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n\u003Cbr \u002F>\n\n## What's in this repo\n\n```text\nskills\u002F\n├── design-to-code\u002F            the skill (install this)\n│   ├── SKILL.md               main workflow the agent follows\n│   ├── agents\u002Fopenai.yaml     agent metadata\n│   └── references\u002F            playbooks the agent loads only when needed\n│       ├── reference-forensics.md\n│       ├── art-direction.md\n│       ├── interface-craft.md\n│       ├── typography-and-fonts.md\n│       ├── motion.md\n│       ├── verification.md\n│       └── evaluations.md\n├── websites\u002F                  six sites built with the skill\n│   ├── web1\u002F  Agentwork\n│   ├── web2\u002F  AutoSend\n│   ├── web3\u002F  Medusa\n│   ├── web4\u002F  AccessGrid      (Next.js app lives in web4\u002Fapp)\n│   ├── web5\u002F  Terms\n│   └── web6\u002F  arix\n└── assets\u002F                    README images\n```\n\n\u003Cbr \u002F>\n\n## Install\n\nThe quickest way is the [skills CLI](https:\u002F\u002Fgithub.com\u002Fvercel-labs\u002Fskills):\n\n```bash\nnpx skills add https:\u002F\u002Fgithub.com\u002FAtharvsinh-codez\u002Fskills --skill design-to-code\n```\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Manual install (Factory Droid, Claude Code, Codex, and other agents)\u003C\u002Fb>\u003C\u002Fsummary>\n\n\u003Cbr \u002F>\n\nThe 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.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FAtharvsinh-codez\u002Fskills.git\n```\n\n| Agent | Personal (all projects) | Project only |\n|---|---|---|\n| Factory Droid | `~\u002F.factory\u002Fskills\u002Fdesign-to-code\u002F` | `\u003Crepo>\u002F.factory\u002Fskills\u002Fdesign-to-code\u002F` |\n| Claude Code | `~\u002F.claude\u002Fskills\u002Fdesign-to-code\u002F` | `\u003Crepo>\u002F.claude\u002Fskills\u002Fdesign-to-code\u002F` |\n| Codex | `~\u002F.codex\u002Fskills\u002Fdesign-to-code\u002F` | `\u003Crepo>\u002F.codex\u002Fskills\u002Fdesign-to-code\u002F` |\n\nmacOS \u002F Linux:\n\n```bash\nmkdir -p ~\u002F.factory\u002Fskills\ncp -r skills\u002Fdesign-to-code ~\u002F.factory\u002Fskills\u002F\n```\n\nWindows (PowerShell):\n\n```powershell\nNew-Item -ItemType Directory -Force \"$HOME\\.factory\\skills\" | Out-Null\nCopy-Item -Recurse skills\\design-to-code \"$HOME\\.factory\\skills\\\"\n```\n\nRestart your agent session so it picks up the new skill.\n\n\u003C\u002Fdetails>\n\n\u003Cbr \u002F>\n\n## Use it\n\nDrop a design image into your agent and ask for code. The skill activates on requests like these:\n\n```text\nRecreate this website in Next.js. Match it exactly.\n```\n\n```text\nTurn this screenshot into a responsive landing page using our existing components.\n```\n\n```text\nHere's a Figma frame. Build it, then make it work on mobile.\n```\n\n```text\nThis page doesn't match the design anymore. Find the visual differences and fix them.\n```\n\nIt works with React, Next.js, Vue, Svelte, plain HTML\u002FCSS, or whatever stack your project already uses.\n\n\u003Cbr \u002F>\n\n## How it works\n\nThe skill turns \"make it look like this\" into a strict, repeatable process. The agent follows it step by step.\n\n1. **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.\n2. **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.\n3. **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 \u002F Mono for clearly sans or mono designs) instead of a random default.\n4. **Lock a fidelity contract.** Decide what must match exactly, what may adapt, and what was never visible in the image.\n5. **Build from macro to micro.** Page structure first, then sections, then components, then fine details such as borders, focus rings, and hover states.\n6. **Recompose for every screen.** A screenshot shows one width. The skill rebuilds the layout for tablet and mobile instead of just shrinking it.\n7. **Add motion with taste.** Purposeful, fast, interruptible transitions that respect `prefers-reduced-motion`, based on proven interface-motion principles.\n8. **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.\n9. **Give an honest verdict.** It reports what matches, what was inferred, and what is still off, instead of declaring \"pixel-perfect\" without evidence.\n\n\u003Cbr \u002F>\n\n## What makes the output different\n\n| Typical AI output | With design-to-code |\n|---|---|\n| Looks \"close enough\" at one screen size | Measured against the design, then rebuilt for mobile and tablet |\n| Random system font or Inter everywhere | Font identified, licensed, matched, and checked to load |\n| Emoji and icon-font placeholders | Clean inline SVG icons only |\n| Screenshot pasted in as a background | Real semantic HTML you can edit, translate, and index |\n| \"Done!\" with no proof | Side-by-side render comparison and a readiness verdict |\n| Bouncy, slow, decorative animation | Short, purposeful motion with a reduced-motion fallback |\n| Divs everywhere | Landmarks, headings, labels, focus states, WCAG AA contrast |\n\n\u003Cbr \u002F>\n\n## Run the example sites\n\nEach site is a standalone Next.js 16 project.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FAtharvsinh-codez\u002Fskills.git\ncd skills\u002Fwebsites\u002Fweb1        # or web2, web3, web5, web6\nnpm install\nnpm run dev\n```\n\nAccessGrid keeps its app one level deeper:\n\n```bash\ncd skills\u002Fwebsites\u002Fweb4\u002Fapp\nnpm install\nnpm run dev\n```\n\nThen open [http:\u002F\u002Flocalhost:3000](http:\u002F\u002Flocalhost:3000).\n\n\u003Cbr \u002F>\n\n## FAQ\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Do I need a Figma file?\u003C\u002Fb>\u003C\u002Fsummary>\n\u003Cbr \u002F>\nNo. 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.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Will it match the design pixel for pixel?\u003C\u002Fb>\u003C\u002Fsummary>\n\u003Cbr \u002F>\nIt 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.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>What if the screenshot is blurry or low resolution?\u003C\u002Fb>\u003C\u002Fsummary>\n\u003Cbr \u002F>\nIt 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.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Which framework does it output?\u003C\u002Fb>\u003C\u002Fsummary>\n\u003Cbr \u002F>\nWhatever 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.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Which agents does it work with?\u003C\u002Fb>\u003C\u002Fsummary>\n\u003Cbr \u002F>\nAny 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.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Can I use the example sites commercially?\u003C\u002Fb>\u003C\u002Fsummary>\n\u003Cbr \u002F>\nNot 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.\n\u003C\u002Fdetails>\n\n\u003Cbr \u002F>\n\n## Credits\n\n- Motion guidance in `references\u002Fmotion.md` is adapted from [Emil Kowalski's skills](https:\u002F\u002Fgithub.com\u002Femilkowalski\u002Fskills) (MIT).\n- README layout inspired by [taste-skill](https:\u002F\u002Fgithub.com\u002FLeonxlnx\u002Ftaste-skill).\n- [Geist](https:\u002F\u002Fvercel.com\u002Ffont) by Vercel is the fallback type family (SIL Open Font License).\n\n## Disclaimer\n\nThe 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.\n\n\u003Cbr \u002F>\n\n\u003Cdiv align=\"center\">\n\n### Made by Atharv Jadav\n\nIf this skill saved you time, a star on the repo helps a lot.\n\n[![Portfolio](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fportfolio-athrix.me-111111?style=for-the-badge)](https:\u002F\u002Fathrix.me)\n[![X](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FX-@athrix__codes-000000?style=for-the-badge&logo=x)](https:\u002F\u002Fx.com\u002Fathrix_codes)\n\n\u003Csub>Questions, ideas, or something you built with it? Reach out on \u003Ca href=\"https:\u002F\u002Fx.com\u002Fathrix_codes\">X\u003C\u002Fa>.\u003C\u002Fsub>\n\n\u003Cbr \u002F>\n\u003Cbr \u002F>\n\n\u003Csub>MIT License · Copyright (c) 2026 Atharv Jadav\u003C\u002Fsub>\n\n\u003C\u002Fdiv>\n","这是一个将设计图像（如截图、Figma画板或网页快照）自动转换为可运行、响应式前端代码的AI代理技能。核心功能包括从像素中解析布局、间距、颜色与字体，生成语义化HTML\u002FReact组件，并通过自检截图比对实现闭环优化；技术上基于TypeScript构建，输出Next.js项目，支持低质量输入下的鲁棒重建。适用于UI设计师与开发者协作提效、快速原型验证、设计稿到代码自动化交付等场景。",2,"2026-11-24 04:33:21","CREATED_QUERY"]