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.
npx skills add fitoe/DesignToCode --skill design-to-codegit clone --depth 1 https://github.com/fitoe/DesignToCodeWrote 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.
[](https://agentmods.dev/skills/fitoe/designtocode/design-to-code)<a href="https://agentmods.dev/skills/fitoe/designtocode/design-to-code"><img src="https://agentmods.dev/badge/skills/fitoe/designtocode/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.
<a href="https://agentmods.dev/skills/fitoe/designtocode/design-to-code"><img src="https://agentmods.dev/badge/skills/fitoe/designtocode/design-to-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00055 | $0.02326 |
| Opus 5.5 | $0.00022 | $0.00930 |
| Sonnet 5.5 | $0.00011 | $0.00465 |
| Haiku 4.5 | $0.00006 | $0.00233 |
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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Design to Code
Purpose
Turn an approved visual source into maintainable code without relying on prose precision. Prefer structured inputs, small implementation passes, and screenshot-backed parity evidence.
Ownership Boundary
design-to-code owns work after design approval/handoff:
- implementation mapping and code changes
- extracting implementation details from approved visual sources
data-sectionanchors and section-level parity evidence- visual repair, mismatch/debt notes, accepted deviations
Return to idea-to-design only when the approved source is missing/stale, scope changed, the handoff predates approval, or the user asks for a design change.
Input Priority
implementation-blueprint.json+page-matrix.json+component-blueprint.json+debt-ledger.json- Visual IR / section contract (
visual-ir/<page-id>.json,visual-contracts/*, section crops) - Approved design images / Figma context / persisted mockups
- Page briefs and prose notes
Prose briefs are supporting context, not the source of truth.
Fidelity Path
D2C has one default path: highest-fidelity-regeneration.
Use D2C only when converting or repairing against an approved visual source and the expected result is the highest practical design-source fidelity. Do not downgrade to quick, standard, or "structure-first" modes unless the user explicitly waives fidelity for that specific task.
For every visual D2C page/section:
- approved visual source is the source of truth; prose only supports it
- load the highest-fidelity references before coding, not after a mismatch appears
- extract executable section-level IR before implementation
- inventory visible text, icons, shapes, tokens, assets, and controls before coding; for mobile pages include icon anatomy, icon size tokens, and Iconify visual compensation
- implement from the inventory/IR, then generate left-design/right-live evidence
- any shortcut, placeholder, missing icon, or simplified asset is debt and must be named before showing the result
What ships with it
40 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 261 B
- references/asset-atlas-generation.md 3.5 KB
- references/asset-compression-rules.md 874 B
- references/asset-fulfillment-pipeline.md 2.2 KB
- references/blueprint-driven-implementation.md 3.6 KB
- references/confidence-and-escalation.md 701 B
- references/design-extraction-analysis-gate.md 4.8 KB
- references/examples.md 1.1 KB
- references/executable-visual-ir.md 8.7 KB
- references/failure-handling.md 1.1 KB
- references/font-fidelity.md 7.5 KB
- references/framework-resolution.md 984 B
- references/full-page-regeneration-guard.md 8.4 KB
- references/functional-component-handoff-guard.md 2.5 KB
- references/high-fidelity-mode.md 3.4 KB
- references/high-fidelity-rules.md 10 KB
- references/layer-stack-model.md 1.2 KB
- references/main-skill-full-reference.md 30 KB
- references/media-role-classification.md 879 B
- references/mobile-recomposition.md 8.5 KB
- references/parity-report.md 1.0 KB
- references/playwright-section-diff.md 3.2 KB
- references/pre-implementation-brief.md 3.0 KB
- references/prompt-shape.md 1.4 KB
- references/repair-loop-policy.md 725 B
- references/section-boundary-and-cross-section-rules.md 1.1 KB
- references/section-driven-high-fidelity.md 3.2 KB
- references/section-taxonomy.md 1.0 KB
- references/visual-checklist.md 1.7 KB
- references/visual-measurements.md 1.2 KB
- references/vue-astro-unocss-output-rules.md 1.8 KB
- references/width-normalization.md 1.7 KB
- templates/asset-atlas-manifest-template.json 1.1 KB
- templates/asset-fulfillment-manifest-template.json 1.1 KB
- templates/component-blueprint-template.json 641 B
- templates/debt-ledger-template.json 316 B
- templates/implementation-blueprint-template.json 2.4 KB
- templates/page-matrix-template.json 688 B
- templates/parity-report-template.md 503 B
- templates/section-visual-ir-template.json 1.4 KB
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.
- 2mo ago First seen · 174 lines · 55 tokens per session scan A 887237ba64db
design-to-code is a skill published in the GitHub repository fitoe/DesignToCode (9 stars, last pushed 5mo ago), licensed MIT. It adds 55 tokens to every session and 2,326 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-31.
design-to-code compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| design-to-codefitoe/DesignToCode | Skill | 9 | 5mo ago | MIT | A | 55 | Codex |
| figma-codegenawdr74100/figwright | Skill | 1.3k | yesterday | MIT | A | 145 | Claude Code, Codex |
| figma-buildawdr74100/figwright | Skill | 1.3k | yesterday | MIT | A | 180 | Claude Code, Codex |
| penpot-mcpar27111994/penpot-mcp | Skill | 30 | 4d ago | MIT | A | 175 | Claude Code, Codex |
| mk:figmangocsangyem/MeowKit | Skill | 15 | 6d ago | MIT | A | 99 | Claude Code |
| mk:stitchngocsangyem/MeowKit | Skill | 15 | 6d ago | MIT | A | 53 | Claude Code |
| build-from-figmaPMDevSolutions/Aurelius | Skill | 9 | yesterday | MIT | A | 0 | Claude Code |