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 patricio0312rev/skillset --skill design-to-component-translatorgit clone --depth 1 https://github.com/patricio0312rev/skillsetWrote 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/patricio0312rev/skillset/design-to-component-translator)<a href="https://agentmods.dev/skills/patricio0312rev/skillset/design-to-component-translator"><img src="https://agentmods.dev/badge/skills/patricio0312rev/skillset/design-to-component-translator/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/patricio0312rev/skillset/design-to-component-translator"><img src="https://agentmods.dev/badge/skills/patricio0312rev/skillset/design-to-component-translator.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.00075 | $0.03794 |
| Opus 5.5 | $0.00030 | $0.01518 |
| Sonnet 5.5 | $0.00015 | $0.00759 |
| Haiku 4.5 | $0.00007 | $0.00379 |
Grade A, and why
design-to-component-translator 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.
This is a copy
100% identical to design-to-component-translator — 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.
How it starts
The opening of the file, as written. The whole thing — 548 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Design-to-Component Translator
Convert design specifications into pixel-perfect, production-ready React components.
Core Workflow
- Analyze design specs: Extract spacing, colors, typography, dimensions
- Map to tokens: Convert design values to design system tokens
- Generate structure: Create semantic HTML structure
- Apply styles: Implement Tailwind/CSS with exact measurements
- Add states: Include hover, focus, active, disabled states
- Handle responsive: Implement breakpoint-specific rules
- Ensure accessibility: Add ARIA labels, keyboard navigation
- Document variants: List all visual states and props
Design Spec Analysis
Extract from Figma/Design
Spacing & Layout:
- Padding:
p-4(16px),px-6(24px horizontal) - Margin:
m-2(8px),mt-4(16px top) - Gap:
gap-3(12px between flex items) - Width/Height:
w-64(256px),h-10(40px)
Typography:
- Font family:
font-sans,font-mono - Font size:
text-sm(14px),text-base(16px),text-lg(18px) - Font weight:
font-normal(400),font-medium(500),font-semibold(600) - Line height:
leading-tight,leading-normal,leading-relaxed - Letter spacing:
tracking-tight,tracking-normal,tracking-wide
Colors:
- Background:
bg-blue-500,bg-gray-100 - Text:
text-gray-900,text-white - Border:
border-gray-300,border-blue-600 - Opacity:
bg-opacity-50,text-opacity-75
Borders & Radius:
- Border width:
border,border-2,border-t-4 - Border radius:
rounded(4px),rounded-md(6px),rounded-lg(8px),rounded-full
Shadows:
shadow-sm,shadow,shadow-md,shadow-lg,shadow-xl
Design Token Mapping
Create Token System
// tokens.ts
export const tokens = {
colors: {
primary: {
50: "#eff6ff",
100: "#dbeafe",
500: "#3b82f6",
600: "#2563eb",
700: "#1d4ed8",
},
gray: {
100: "#f3f4f6",
300: "#d1d5db",
500: "#6b7280",
700: "#374151",
900: "#111827",
},
},
spacing: {
xs: "0.25rem", // 4px
sm: "0.5rem", // 8px
md: "1rem", // 16px
lg: "1.5rem", // 24px
xl: "2rem", // 32px
},
fontSize: {
xs: ["0.75rem", { lineHeight: "1rem" }],
sm: ["0.875rem", { lineHeight: "1.25rem" }],
base: ["1rem", { lineHeight: "1.5rem" }],
lg: ["1.125rem", { lineHeight: "1.75rem" }],
xl: ["1.25rem", { lineHeight: "1.75rem" }],
},
borderRadius: {
sm: "0.25rem", // 4px
md: "0.375rem", // 6px
lg: "0.5rem", // 8px
full: "9999px",
},
shadows: {
sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
md: "0 4px 6px -1px rgb(0 0 0 / 0.1)",
lg: "0 10px 15px -3px rgb(0 0 0 / 0.1)",
},
};
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 · 548 lines · 75 tokens per session scan A 33fffc6b1226
design-to-component-translator is a skill published in the GitHub repository patricio0312rev/skillset (7 stars, last pushed 10mo ago), licensed MIT. It adds 75 tokens to every session and 3,794 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to design-to-component-translator, differing in 0 lines, and is treated as a copy.
design-to-component-translator compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| design-to-component-translatorpatricio0312rev/skillset | Skill | 7 | 10mo ago | MIT | A | 75 | Claude Code, Codex |
| chakra-ui-builderchakra-ui/chakra-ui | Skill | 41k | yesterday | MIT | A | 214 | Claude Code, Codex |
| antigravity-design-expertsickn33/agentic-awesome-skills | Skill | 51k | yesterday | MIT | A | 39 | Claude Code |
| tamagui-v6-configtamagui/tamagui | Skill | 14k | today | MIT | A | 76 | Claude Code, Codex |
| tamagui-theme-generatortamagui/tamagui | Skill | 14k | today | MIT | A | 48 | Claude Code, Codex |
| liquid-metal-borderMengTo/Skills | Skill | 8.8k | 2d ago | MIT | A | 97 | Codex |
| frontend-ui-dark-tsmicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 48 | Claude Code |