generate-code-with-design-system

generate-code-with-design-system is a skill for Claude Code, Codex from mp3wizard/figma-console-mcp. It costs 105 tokens per session (1,789 once invoked), scanned A, a copy of generate-code-with-design-system, MIT.

A code-generation guide for building user interfaces with an existing design system. A design system is a shared set of components, styles, and design values used across a product.

In plain words
What is it for?
It helps build pages, screens, forms, and features in React, Vue, Svelte, HTML/CSS, or Tailwind using the project's exported components and tokens.
Why use it?
It prevents new code from replacing the project's existing components with look-alike buttons, cards, or style values, and reports when the system lacks something needed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps build pages, screens, forms, and features in React, Vue, Svelte, HTML/CSS, or Tailwind using the project's exported components and tokens.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mp3wizard/figma-console-mcp/generate-code-with-design-system
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 mp3wizard/figma-console-mcp --skill generate-code-with-design-system
Clone the repo
git clone --depth 1 https://github.com/mp3wizard/figma-console-mcp

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 generate-code-with-design-system

README.md
[![agentmods](https://agentmods.dev/badge/skills/mp3wizard/figma-console-mcp/generate-code-with-design-system/github.svg)](https://agentmods.dev/skills/mp3wizard/figma-console-mcp/generate-code-with-design-system)
Your own site
<a href="https://agentmods.dev/skills/mp3wizard/figma-console-mcp/generate-code-with-design-system"><img src="https://agentmods.dev/badge/skills/mp3wizard/figma-console-mcp/generate-code-with-design-system/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 generate-code-with-design-system

Your own site · 80×15
<a href="https://agentmods.dev/skills/mp3wizard/figma-console-mcp/generate-code-with-design-system"><img src="https://agentmods.dev/badge/skills/mp3wizard/figma-console-mcp/generate-code-with-design-system.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,789 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 91% copy Near-identical to another mod 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.00105 $0.01789
Opus 5.5 $0.00042 $0.00716
Sonnet 5.5 $0.00021 $0.00358
Haiku 4.5 $0.00011 $0.00179

Measured today against content hash 3815decf2afa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

generate-code-with-design-system 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 today.

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.

Origin

This is a copy

91% identical to generate-code-with-design-system — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/generate-code-with-design-system/SKILL.md · 106 lines

How it starts

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

Generate code with the design system

Tools (Local Mode): this skill uses tools outside the core set. If they aren't in your tool list, call figma_enable_toolsets({ toolsets: ["inspect", "parity", "codeconnect"] }) once at the start; if they still don't appear, call them through figma_call({ tool, arguments }). Cloud Mode lists every tool, so skip this there.

This works like generating in Figma, just in code. Use the system's components and tokens, and report what's missing. Don't write a local <Button>, a styled <div> card, or a new CSS variable because the system lacks one. Tell the person and let them decide.

1. Discover the code design system (read only)

Implementing a Figma design in a repo that uses Code Connect (it has a figma.config.json or *.figma.ts files): call figma_get_code_connect_map({ repoRoot: "<repo>", nodeId: "<frame>" }) first, or pass figmaUrl when the file isn't open in Figma (Cloud Mode: pass the Code Connect files as files instead of repoRoot). Use its snippets and imports for the mapped instances: they are the repo's real components with this design's property values. Treat everything under unmapped as needs for step 2, never as an invented component. Snippets marked approximate (slots, nested overrides) still need checking against the design.

Find all three of these, and note where each came from:

  1. Component source. The import specifier(s) that count as the design system, e.g. @acme/ui or @/components/ui.
    • Check package.json dependencies, workspace packages, path aliases in tsconfig.json, and existing imports in nearby files.
    • List the components it exports from the package entry (index.ts, exports in its package.json, dist/index.d.ts) or from the component directory.
  2. Props and variants of each component you might use: the TypeScript props, cva/variant maps, and stories (*.stories.*) if present.
  3. Tokens. These might be CSS custom properties (:root { --color-… }), a Tailwind theme (@theme block in v4, theme.extend in v3), a tokens.json or *.tokens.json, or a TS tokens module. Note the token file path.

Read the full file on GitHub · 106 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. today First seen · 106 lines · 105 tokens per session scan A 3815decf2afa

Subscribe to this mod's changes

generate-code-with-design-system is a skill published in the GitHub repository mp3wizard/figma-console-mcp (1 stars, last pushed yesterday), licensed MIT. It adds 105 tokens to every session and 1,789 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 91% identical to generate-code-with-design-system, differing in 0 lines, and is treated as a copy.

Related

generate-code-with-design-system compared with skills from other repositories

generate-code-with-design-system next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
generate-code-with-design-systemmp3wizard/figma-console-mcpSkill1yesterdayMITA105Claude Code, Codex
figma-codegenawdr74100/figwrightSkill1.6kyesterdayMITA145Claude Code, Codex
moai-domain-uiuxmodu-ai/moai-adkSkill1.3ktodayApache-2.0A49Claude Code
moai-domain-frontendmodu-ai/moai-adkSkill1.3ktodayApache-2.0A54Claude Code
component-template-generatorcuriositech/some_claude_skillsSkill2782d agoMITA32Claude Code
native-app-designercuriositech/some_claude_skillsSkill2782d agoMITA128Claude Code
jonin-skillandycungkrinx91/konohaSkill162todayApache-2.0A29Claude Code, Codex