d2c

d2c is a skill for Claude Code, Codex from BIAsia/c2d2c. It costs 106 tokens per session (1,597 once invoked), scanned A, original, MIT.

A design-to-code workflow that reads project settings from C2D2C.md and guides implementation from a design file into the codebase.

In plain words
What is it for?
It helps inspect designs and existing code, agree on an implementation plan, reuse project tokens, add regression checks, and finish with an acceptance review.
Why use it?
It keeps design decisions, code changes, checks, and acceptance steps aligned instead of leaving the developer to coordinate them manually.

Skill for Claude CodeCodex

Part of the c2d2c plugin — 3 skills shipped together

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.

agentmods
npx agentmods add skills/biasia/c2d2c/d2c
Any agent
npx skills add BIAsia/c2d2c --skill d2c
Clone the repo
git clone --depth 1 https://github.com/BIAsia/c2d2c

Made for: Claude Code, Codex.

Or install c2d2c, the plugin that ships this one along with the rest of its 3 skills.

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 d2c

README.md
[![agentmods](https://agentmods.dev/badge/skills/biasia/c2d2c/d2c.svg)](https://agentmods.dev/skills/biasia/c2d2c/d2c)
Your own site
<a href="https://agentmods.dev/skills/biasia/c2d2c/d2c"><img src="https://agentmods.dev/badge/skills/biasia/c2d2c/d2c.svg" alt="Measured on agentmods" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,597 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00106 $0.01597
Opus 5 $0.00053 $0.00798
Sonnet 5 $0.00021 $0.00319
Haiku 4.5 $0.00011 $0.00160

Measured 4d ago against content hash bc5cc1807cc3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

d2c 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/ds-shot.mjs), 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.

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.

skills/d2c/SKILL.md · 86 lines

How it starts

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

c2d2c:d2c — design to code, 1:1

Project parameters

Resolve parameters from C2D2C.md at the repo root (fallback: .claude/c2d2c.md). If neither exists, offer to bootstrap one from the template at ../../templates/C2D2C.template.md (plugin root; standalone installs without that file fetch https://raw.githubusercontent.com/BIAsia/c2d2c/main/templates/C2D2C.template.md): fill what the repo itself reveals (token files, gate scripts, regression routes, git host), ask for the rest. This skill uses DESIGN_FILE, TOKEN_DOCS, DS_ROUTE, GATES, MR_TOOL, DEPLOY_ORDER.

Core principles: agree on the plan before building, implement 1:1, every component gets a regression surface, finish with no loose ends. Three points where you MUST stop and wait for user confirmation: step 2 (plan), step 3 (off-system styles), step 7 (acceptance).

1. Skim + survey the current state + reuse audit

  • Skim the design with Figma MCP (get_design_context + screenshots): structure first, no parameter-digging yet. get_metadata tends to time out on large frames; prefer design context.
  • In parallel, map the existing implementation: related components, data flow, animation approach (an Explore agent works well).
  • Proactively enumerate reuse (don't wait to be asked): for every UI element in the design, look for an existing implementation and produce a reuse matrix (element → component → coupling → reuse strategy):
    • What the design shows is usually the design frame of a real component. Assume it already exists, then try to disprove it, not the other way around.
    • Coupling tiers: pure presentation (use directly) / light context (does it degrade gracefully without providers?) / heavy data coupling (data layer, runtime, store).
    • A DS_ROUTE page or demo page rendering the component with mock props is direct evidence the presentation surface is already isolated.
    • Heavy coupling ≠ no reuse: the default move is to extract the pure presentation core so the live caller, the regression page, and the new surface share it. A visual replica is the last resort, unless the user explicitly wants isolation.
  • Produce a diff list: structural differences between design and current state, the heavy-rework areas, and anything worth extracting as shared.

Read the full file on GitHub · 86 lines

Files

What ships with it

1 file 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. 4d ago First seen · 86 lines · 106 tokens per session scan A bc5cc1807cc3

Subscribe to this mod's changes

d2c is a skill published in the GitHub repository BIAsia/c2d2c (54 stars, last pushed 1mo ago), licensed MIT. It adds 106 tokens to every session and 1,597 once invoked, about $0.0005 per session on Opus 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.