Agent skill

Design To Code

by MigoXLab in MigoXLab/coderio

Pixel-perfect Figma to React conversion using coderio. An agent skill from MigoXLab/coderio.

Apache-2.0Auto-check passedFrontend & Design

Install Design To Code

skills CLI
$ npx skills add MigoXLab/coderio --skill design-to-code -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install MigoXLab/coderio design-to-code --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/MigoXLab/coderio.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/design-to-code .claude/skills/design-to-code && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
design-to-code
GitHub stars
114
Used in
2 other repos
Token cost
~1.2k tokens
SKILL.md length
453 words
Files
4 (incl. scripts)
Skills in repo
1
Repo updated
First seen
Licence
Apache-2.0

At a glance

Pixel-perfect Figma to React conversion using coderio. An agent skill from MigoXLab/coderio.

  • Works in 3 steps: Setup → Protocol Generation → Code Generation
  • Tasks that involve Design to code
  • SKILL.md covers Prerequisites, Workflow Overview, Step 0.1: Initialize Helper… and Step 0.2: Scaffold Project…, plus 6 more sections
  • Runs JavaScript scripts from its folder; calls node and pnpm; reaches figma.com

What it does

Design To Code is an agent skill from MigoXLab/coderio. Pixel-perfect Figma to React conversion using coderio. Generates production-ready code (TypeScript, Vite, TailwindCSS V4) with high visual fidelity. Features robust error handling, checkpoint recovery, and streamlined execution via helper script.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts (for example `scripts/package.json`).

It sits in Frontend & Design, covering Design to code. It works with Figma, React, TypeScript and Vite. The repository describes itself as: An multi-agent design-to-code tool that generates production-ready React code with high visual fidelity and iterative validation. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Design to code

Example prompts

  • “/design-to-code”

Requirements

  • Node.js

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Setup
  2. Protocol Generation
  3. Code Generation

What it can do on your machine

Read from SKILL.md and the folder at commit 3e17617. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • node
    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • figma.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Design To Code loads about 1.2k tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 453 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~65
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from MigoXLab/coderio at commit 3e17617, republished under its Apache-2.0 licence (© MigoXLab). 453 words, ~1,242 tokens.

Download SKILL.mdSave it as .claude/skills/design-to-code/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
design-to-code
description
Pixel-perfect Figma to React conversion using coderio. Generates production-ready code (TypeScript, Vite, TailwindCSS V4) with high visual fidelity. Features robust error handling, checkpoint recovery, and streamlined execution via helper script.

Design to Code

High-fidelity UI restoration from Figma designs to production-ready React + TypeScript components. This SKILL uses a robust helper script to minimize manual errors and ensure pixel-perfect results.

Prerequisites

  1. Figma API Token: Get from Figma → Settings → Personal Access Tokens
  2. Node.js: Version 18+
  3. coderio: Installed in scripts/ folder (handled by Setup phase)

Workflow Overview

Phase 0: SETUP    → Create helper script and script environment
Phase 1: PROTOCOL → Generate design protocol (Structure & Props)
Phase 2: CODE     → Generate components and assets

Phase 0: Setup

Step 0.1: Initialize Helper Script

User Action: Run these commands to create the execution helper and isolate its dependencies.

bash
mkdir -p scripts

# 1. Copy script files
# Note: Ensure you have the 'skills/design-to-code/scripts' directory available
cp skills/design-to-code/scripts/package.json scripts/package.json
cp skills/design-to-code/scripts/coderio-skill.mjs scripts/coderio-skill.mjs

# 2. Install coderio in scripts directory (adjust version if needed)
cd scripts && pnpm install && cd ..

Step 0.2: Scaffold Project (Optional)

If starting a new project:

  1. Run: node scripts/coderio-skill.mjs scaffold-prompt "MyApp"
  2. AI Task: Follow the instructions output by the command to create files.

Phase 1: Protocol Generation

Step 1.1: Fetch Data

bash
# Replace with your URL and Token
node scripts/coderio-skill.mjs fetch-figma "https://figma.com/file/..." "figd_..."

Verify: process/thumbnail.png should exist.

Step 1.2: Generate Structure

  1. Generate Prompt:

    bash
    node scripts/coderio-skill.mjs structure-prompt > scripts/structure-prompt.md
  2. AI Task (Structure):

    • ATTACH: process/thumbnail.png (MANDATORY)
    • READ: scripts/structure-prompt.md
    • INSTRUCTION: "Generate the component structure JSON based on the prompt and the attached thumbnail. Focus on visual grouping. Use text content to name components accurately (e.g. 'SafeProducts', not 'FAQ')."
    • SAVE: Paste the JSON result into scripts/structure-output.json.
  3. Process Result:

    bash
    node scripts/coderio-skill.mjs save-structure

Step 1.3: Extract Props (Iterative)

  1. List Components:

    bash
    node scripts/coderio-skill.mjs list-components
  2. For EACH component in the list:

    a. Generate Prompt:

    bash
    node scripts/coderio-skill.mjs props-prompt "ComponentName" > scripts/current-props-prompt.md

    b. AI Task (Props):

    • ATTACH: process/thumbnail.png (MANDATORY)
    • READ: scripts/current-props-prompt.md
    • INSTRUCTION: "Extract props and state data. Be pixel-perfect with text and image paths."
    • SAVE: Paste the JSON result into scripts/ComponentName-props.json.

    c. Save & Validate:

    bash
    node scripts/coderio-skill.mjs save-props "ComponentName"
    # If this fails, re-do step 'b' with better attention to the thumbnail

Phase 2: Code Generation

Show full SKILL.md (188 more words)Show less

Step 2.1: Plan Tasks

bash
node scripts/coderio-skill.mjs list-gen-tasks

This outputs a list of tasks with indices (0, 1, 2...).

Step 2.2: Generate Components (Iterative)

For EACH task index (starting from 0):

  1. Generate Prompt:

    bash
    node scripts/coderio-skill.mjs code-prompt 0 > scripts/code-prompt.md
    # Replace '0' with current task index
  2. AI Task (Code):

    • ATTACH: process/thumbnail.png (MANDATORY)
    • READ: scripts/code-prompt.md
    • INSTRUCTION: "Generate the React component code. Match the thumbnail EXACTLY. Use STRICT text content from input data, do not hallucinate."
    • SAVE: Paste the code block into scripts/code-output.txt.
  3. Save Code:

    bash
    node scripts/coderio-skill.mjs save-code 0
    # Replace '0' with current task index

Step 2.3: Final Integration

Inject the root component into App.tsx. Use the path found in the last task of Phase 2.1.


Troubleshooting

  • "Props validation failed": The AI generated empty props. Check if process/thumbnail.png was attached and visible to the AI. Retry the props generation step.
  • "Module not found": Ensure node scripts/coderio-skill.mjs save-code was run for the child component before the parent component. Phase 2 must be done in order (0, 1, 2...).
  • "Visuals don't match": Did you attach the thumbnail? The AI relies on it for spacing and layout nuances not present in the raw data.

© MigoXLab, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts) in skills/design-to-code of MigoXLab/coderio.

  • SKILL.md
  • LICENSE.txt
  • scripts/coderio-skill.mjs
  • scripts/package.json

Open the folder on GitHubat commit 3e17617

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in MigoXLab/coderio, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Design To Code next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Design To Code compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Design To Code this skillMigoXLab/coderio1142 repos~1.2kAutomated safety check: PassApache-2.0
React Screenshot Recreatorbuildfastwithai/gen-ai-experiments785—~2.9kAutomated safety check: PassMIT
Figma To Codemajiayu000/spellbook286—~2.1kAutomated safety check: PassMIT
Figma Codegenawdr74100/figwright977—~4.2kAutomated safety check: PassMIT
Stitch to React and Vite Dashboardgoogle-labs-code/stitch-skills8.4k—~914Automated safety check: NotesApache-2.0
Redesign My Landingpageinstructa/agent-skills139—~1.8kAutomated safety check: PassNone

Similar skills

  • React Screenshot Recreator

    buildfastwithai/gen-ai-experiments

    Recreate a UI screenshot, mockup, or design image as production-quality React + TypeScript + Tailwind code with near-pixel-perfect visual fidelity.

    785 GitHub stars~2.9k tokensUpdated 15 days ago
    Frontend & DesignAuto-check passed
  • Figma To Code

    majiayu000/spellbook

    Extract Figma designs and generate production-ready React/Next.js components with TypeScript, Tailwind CSS, and pixel-perfect accuracy.

    286 GitHub stars~2.1k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Figma Codegen

    awdr74100/figwright

    Generate framework-aware code from a Figma design. An agent skill from awdr74100/figwright.

    977 GitHub stars~4.2k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Stitch to React and Vite Dashboard

    google-labs-code/stitch-skills

    Official

    Turns Stitch screens into a React, Vite and TypeScript dashboard with TanStack Query data fetching, DESIGN.md tokens as CSS variables and optional read-only Web3 data.

    8.4k GitHub stars~914 tokensUpdated 1 mo ago
    Frontend & DesignAuto-check: notes
  • Redesign My Landingpage

    instructa/agent-skills

    Build, critique, and iterate high-converting marketing or product landing pages using React + Vite + TypeScript + Tailwind and shadcn/ui components, with all icons sourced from Iconify.

    139 GitHub stars~1.8k tokensUpdated 8 days ago
    Frontend & DesignAuto-check passed
  • Vite Shadcn Tailwind4

    IgorWarzocha/Opencode-Workflows

    Initialize shadcn/ui + Tailwind CSS v4 in Vite projects (Vite-specific, not Next.js/Remix).

    122 GitHub stars~1.3k tokensUpdated 8 mo ago
    Frontend & DesignAuto-check passed

Questions about Design To Code

What does Design To Code do?

Pixel-perfect Figma to React conversion using coderio. An agent skill from MigoXLab/coderio. Design To Code is an agent skill from MigoXLab/coderio. Pixel-perfect Figma to React conversion using coderio.

When should I use Design To Code?

Design To Code fits situations like: tasks that involve Design to code.

How do I install Design To Code in Claude Code?

Run `npx skills add MigoXLab/coderio --skill design-to-code -a claude-code`. Or copy the skill folder (skills/design-to-code in MigoXLab/coderio) into .claude/skills/design-to-code in your project. Claude Code loads it when a task matches its description.

How do I install Design To Code in Codex?

Run `npx skills add MigoXLab/coderio --skill design-to-code -a codex`. Or copy the skill folder (skills/design-to-code in MigoXLab/coderio) into .agents/skills/design-to-code in your project. Codex loads it when a task matches its description.

Can I use Design To Code in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add MigoXLab/coderio --skill design-to-code -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/design-to-code, .gemini/skills/design-to-code, .github/skills/design-to-code and .opencode/skills/design-to-code in your project.

What does Design To Code need to run?

Going by SKILL.md and its folder, Design To Code needs JavaScript for the scripts in its folder and the command-line tools its instructions call (node and pnpm). Our summary lists: Node.js.

Does Design To Code access the network?

SKILL.md names 1 domain. In commands or code: figma.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Design To Code safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Design To Code use?

Design To Code is published under the Apache-2.0 licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Design To Code use?

About 1.2k tokens (SKILL.md is roughly 5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Design To Code?

Skills that share tags, products or a category with Design To Code: React Screenshot Recreator (buildfastwithai/gen-ai-experiments, 785 stars), Figma To Code (majiayu000/spellbook, 286 stars), Figma Codegen (awdr74100/figwright, 977 stars) and Stitch to React and Vite Dashboard (google-labs-code/stitch-skills, 8.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Design To Code?

MigoXLab (a GitHub organization) maintains it in MigoXLab/coderio, which has 114 GitHub stars. The repository was last updated on May 22, 2026.

Source: MigoXLab/coderio on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.