design-to-code

design-to-code is a command for Claude Code, Cursor from yonatangross/orchestkit. It costs 52 tokens per session (6,220 once invoked), scanned A, original, MIT.

A workflow for turning a screenshot, description, or web page into React components. It checks existing Storybook components, a public component registry, and the codebase before creating new ones.

In plain words
What is it for?
Use it to build React interfaces from mockups, screenshots, or URLs and render the resulting components for review.
Why use it?
It reduces the manual work of matching a visual design to reusable project components. It also helps avoid recreating components that already exist.

Command for Claude CodeCursor

Written for Claude Code and Cursor: allowed-tools in frontmatter, but also a Cursor plugin manifest. Also seen: model in frontmatter; names the AskUserQuestion tool; mentions Claude Code.

Part of the ork plugin — 83 skills, 39 commands, 36 agents, 32 hooks shipped together

Good fit Use it to build React interfaces from mockups, screenshots, or URLs and render the resulting components for review.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/yonatangross/orchestkit/design-to-code
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/yonatangross/orchestkit

Made for: Claude Code, Cursor.

Or install ork, the plugin that ships this one along with the rest of its 83 skills, 39 commands, 36 agents, 32 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for design-to-code

README.md
[![agentmods](https://agentmods.dev/badge/commands/yonatangross/orchestkit/design-to-code/github.svg)](https://agentmods.dev/commands/yonatangross/orchestkit/design-to-code)
Your own site
<a href="https://agentmods.dev/commands/yonatangross/orchestkit/design-to-code"><img src="https://agentmods.dev/badge/commands/yonatangross/orchestkit/design-to-code/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for design-to-code

Your own site · 80×15
<a href="https://agentmods.dev/commands/yonatangross/orchestkit/design-to-code"><img src="https://agentmods.dev/badge/commands/yonatangross/orchestkit/design-to-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,220 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.06220
Opus 5.5 $0.00021 $0.02488
Sonnet 5.5 $0.00010 $0.01244
Haiku 4.5 $0.00005 $0.00622

Measured 16d ago against content hash b192b176ffca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

design-to-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ork/.cursor-plugin/commands/design-to-code.md · 492 lines

How it starts

The opening of the file, as written. The whole thing — 492 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Before running a script from this command (Cursor)

Cursor does not tell a command where this plugin is installed. Run plugin scripts only from the installed plugin directory, never by a relative skills/... or hooks/... path.

Find the installed plugin directory first:

(
  ork_ws="$(pwd -P)"
  ork_home="$(cd "$HOME" 2>/dev/null && pwd -P)"
  ork_base="$(cd "$HOME/.cursor/plugins" 2>/dev/null && pwd -P)"
  ork_above=""
  case "$ork_home/" in ("$ork_ws"/*) ork_above=1 ;; esac
  ork_pick() {
    ork_best=""
    ork_best_pj=""
    while IFS= read -r ork_pj; do
      ork_r="$(cd "${ork_pj%/.cursor-plugin/plugin.json}" && pwd -P)" || continue
      case "$ork_r/" in ("$ork_base"/*) ;; (*) continue ;; esac
      if [ -z "$ork_above" ]; then
        case "$ork_r/" in ("$ork_ws"/*) continue ;; esac
      fi
      case "$ork_ws/" in ("$ork_r"/*) continue ;; esac
      grep -Eq '^  "name"[[:space:]]*:[[:space:]]*"ork"' "$ork_pj" || continue
      [ -d "$ork_r/skills/design-to-code" ] || continue
      if [ -z "$ork_best" ] || [ "$ork_pj" -nt "$ork_best_pj" ]; then
        ork_best="$ork_r"
        ork_best_pj="$ork_pj"
      fi
    done
    [ -n "$ork_best" ] && printf '%s\n' "$ork_best"
  }
  ork_real=""
  if [ -n "$ork_base" ]; then
    ork_real="$(find "$ork_base" -maxdepth 6 -type f -path '*/.cursor-plugin/plugin.json' 2>/dev/null | ork_pick)"
  fi
  [ -n "$ork_real" ] || { echo "REFUSED: no installed OrchestKit plugin with this skill under ~/.cursor/plugins"; exit 3; }
  echo "ORK_PLUGIN_DIR=$ork_real"
)

Run a script only when this prints ORK_PLUGIN_DIR=<dir>, and use that <dir> in place of <ORK_PLUGIN_DIR> below. If it prints REFUSED: ..., stop and tell the user the reason.

Auto-generated from skills/design-to-code/SKILL.md

Source: https://github.com/yonatangross/orchestkit

Design to Code

One skill for every route from a design to production React components. Pick the mode by the first word of the arguments.

design-to-code import ~/Downloads/pricing.zip     # Claude Design export → components on disk
design-to-code ship ~/Downloads/pricing.zip       # the same, plus tests, browser check and a PR
design-to-code /tmp/mockup.png                    # mockup mode: screenshot → component
design-to-code screenshot of hero section         # mockup mode: from a description
design-to-code storybook                          # Storybook MCP tools reference

Read the full file on GitHub · 492 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed · +148 lines · +8 tokens per session b192b176ffca
  2. 21d ago Changed 2175a3557b44
  3. 22d ago Changed · -10 tokens per session 9330f8c35695
  4. 1mo ago Changed · -32 tokens per session 6b538d0a7011
  5. 1mo ago Changed · +1 lines d96ce7826a0d
  6. 2mo ago Changed dd1bdd218a6d
  7. 2mo ago Changed · +10 lines 937c1e143c15
  8. 2mo ago Changed 08ec63918123
  9. 2mo ago Changed ffa9ff9cf881
  10. 3mo ago First seen · 333 lines · 86 tokens per session scan A 99640d00fce1

Subscribe to this mod's changes

design-to-code is a command published in the GitHub repository yonatangross/orchestkit (313 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 6,220 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

design-to-code compared with commands from other repositories

design-to-code next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
design-to-codeyonatangross/orchestkitCommand313yesterdayMITA52Claude Code, Cursor
storybook-storyTheBeardedBearSAS/claude-craftCommand10817d agoMITA6Claude Code
pn-audit-typographyperniemann/pnCoreCommand03d agoMITA38Claude Code, Cursor
checklistgithub/spec-kitCommand154ktodayMITA13Claude Code
clarifygithub/spec-kitCommand154ktodayMITA27Claude Code
specifygithub/spec-kitCommand154ktodayMITA13Claude Code
analyzegithub/spec-kitCommand154ktodayMITA26Claude Code