design-to-code

design-to-code is a skill for Claude Code, Codex from JPeetz/agent-skills. It costs 184 tokens per session (8,743 once invoked), scanned A, original, no licence file.

A method for turning visual interface designs into production frontend code. It can use sources such as Figma files, screenshots, and design specifications, then maps them to components, responsive layouts, design tokens, and accessibility requirements.

In plain words
What is it for?
Use it to implement or review frontend screens from designs, choose component structures and breakpoints, extract shared visual values, and meet WCAG 2.1 AA accessibility requirements.
Why use it?
It helps bridge the gap between a design and working code while keeping the layout usable on different screen sizes and for people using assistive technology.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it to implement or review frontend screens from designs, choose component structures and breakpoints, extract shared visual values, and meet WCAG 2.1 AA accessibility requirements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jpeetz/agent-skills/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.

Any agent
npx skills add JPeetz/agent-skills --skill design-to-code
Clone the repo
git clone --depth 1 https://github.com/JPeetz/agent-skills

Made for: Claude Code, Codex.

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/skills/jpeetz/agent-skills/design-to-code/github.svg)](https://agentmods.dev/skills/jpeetz/agent-skills/design-to-code)
Your own site
<a href="https://agentmods.dev/skills/jpeetz/agent-skills/design-to-code"><img src="https://agentmods.dev/badge/skills/jpeetz/agent-skills/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/skills/jpeetz/agent-skills/design-to-code"><img src="https://agentmods.dev/badge/skills/jpeetz/agent-skills/design-to-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 184 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,743 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00184 $0.08743
Opus 5.5 $0.00074 $0.03497
Sonnet 5.5 $0.00037 $0.01749
Haiku 4.5 $0.00018 $0.00874

Measured 1mo ago against content hash 04e180698c7d, 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 1 finding 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate_skill.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -H "X-Figma-Token: $FIGMA_TOKEN" \
skills/frontend/design-to-code/SKILL.md · 863 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

5 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.

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. 1mo ago Changed · +1 lines 04e180698c7d
  2. 1mo ago First seen · 862 lines · 184 tokens per session scan A 71f98e8cfb5e

Subscribe to this mod's changes

design-to-code is a skill published in the GitHub repository JPeetz/agent-skills (14 stars, last pushed today), with no licence file. It adds 184 tokens to every session and 8,743 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

token-audit

Audit how design tokens are defined: tiers, naming, alias chains, raw values, orphans, DTCG readiness. Triggers: audit my tokens, token architecture review, token health check. Not for code consuming tokens (token-compliance), theme parity (theme-audit) or Figma variables (figma-variable-audit).

murphytrueman/design-system-ops · 72 tokens

accessibility-per-component

Audit one design system component's accessibility against WCAG 2.2 AA: keyboard, screen reader, contrast, focus, ARIA, target size. Trigger: a11y audit, is this accessible, WCAG check, screen reader support, keyboard navigation check. Not for page- or product-wide audits.

murphytrueman/design-system-ops · 68 tokens

component-decision-tree

Write "choosing between" pages (docs/choosing/) that route an intent to the right component via narrowing questions; YAML trees on request. Triggers: which component should I use, choose between X and Y, dialog vs drawer, selection guide. One chosen component: usage-guidelines.

murphytrueman/design-system-ops · 65 tokens

figma-variable-audit

Audit Figma variable collections: tier mapping, naming, alias chains, modes, orphans; can fix in place with Figma Console MCP. Triggers: audit my Figma variables, review variable collections, Figma variable health. For token files in code use token-audit.

murphytrueman/design-system-ops · 63 tokens

metadata-schema-generator

Generate per-component JSON metadata files (.ai/metadata/) from source: props, behaviour, composition, a11y contract, prohibited prop combinations. Triggers: component metadata schema, machine-readable component JSON, manifest for MCP/codegen. Prose for Figma: use ai-component-description.

murphytrueman/design-system-ops · 62 tokens

theme-audit

Audit theme parity: tokens missing or unchanged per theme, component tokens bypassing semantics, contrast within each theme, resolver contexts, theme-switch regressions. Triggers: dark mode audit, theme coverage, brand variant parity. For general token structure use token-audit.

murphytrueman/design-system-ops · 57 tokens