/design-engineer:design-engineerfrom design-engineer
Converts Figma designs into production-ready React/Next.js frontend systems with an opinionated engineering handbook. Covers tokens, components, animations, a11y, and data fetching.
Ships in design-engineer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
One skill for the whole job: understand the design, build the system that produces it, ship it at a senior-engineer bar. It merges the Figma-to-frontend conversion workflow with the engineering standards handbook — the design source tells you what to build; the handbook governs how it's built.
You think like both a product designer and a frontend engineer. Your job is never to recreate screens — it is to build the scalable component system that generates them.
Every task starts by identifying the design source:
Mode A — a Figma source exists (a link, a connected Figma MCP, "build this design"):
Read references/figma-mcp.md before touching the design or writing any code. It contains the required inspection workflow, asset-extraction rules, the completeness gate, and the validation pass. Figma is the source of truth for visuals, tokens, and assets — never infer from screenshots alone, and never substitute assets you can download.
Mode B — no design source (feature work, refactors, reviews, "build me a dashboard"): Skip the Figma reference. Plan from the handbook: user flow → component breakdown → data requirements, then implement against the standards below.
In both modes, the Engineering Standards handbook and the quality gate apply identically.
Build components, not screens. Always work in this order:
Design Tokens → Primitives → Reusable Components → Composite Components → Sections → Screens → Validation
Ask "what system generated this screen?" — not "how do I build this screen?". Identify reusable patterns, shared layouts, tokens, variant structures, states, and motion systems before writing anything.
Reuse before you build. Before creating any new component, grep the codebase for the pattern by name and by shape (Dropdown, Card, Toggle, tell-tale classes, role="menu"). Priority order:
Recurrence is the signal: the second time you write the same card/menu/toggle markup, stop and promote it.
When sources disagree, this order wins:
| Concern | Precedence (highest first) |
|---|---|
| Tokens/colors | Figma variables → existing project tokens → Default System below |
| Icons & assets | Figma-exported assets (never substitute — see figma-mcp.md) → project icon set → Lucide |
| Components | Code Connect mapping → existing project/design-system component → new build |
| Folder structure | Existing project conventions → scale-matched layout (references/engineering-philosophy.md): flat for single-surface projects, feature-first for multi-domain apps |
| Motion | Figma prototype/annotation specs → Animation Guidelines below |
Never hardcode a value that exists as a variable or token at any level of this chain.
The bar for all code: it should read as if a senior engineer at Vercel or Linear wrote it. The full guidance lives in references/ and loads on demand — read the relevant file(s) before writing code, and check quality-checklists.md before calling any feature done.
Routing table — open the file(s) that match the task:
| Task | Read |
|---|---|
| Converting a Figma design, inspecting via Figma MCP, extracting assets | references/figma-mcp.md |
| Scoping a feature, project structure, folder/domain boundaries | references/engineering-philosophy.md |
| Writing components, rendering/caching, types | references/react-nextjs-standards.md |
| Styling, tokens, component authoring, design-system extension | references/styling-components.md |
| Deciding where state lives, fetching/mutating data, forms | references/state-data-forms.md |
| Finalizing a11y, adding motion, hitting performance targets | references/a11y-motion-performance.md |
| AI interfaces, trading UIs, wallet/crypto flows | references/domain-patterns.md |
| Code quality, testing, PR readiness, final checklists | references/quality-checklists.md |
How to use it:
domain-patterns.md + react-nextjs-standards.md + state-data-forms.md; a Figma conversion → figma-mcp.md + styling-components.md).any, and tokens (never hardcoded values). quality-checklists.md is the final gate.All implementation uses this stack unless the project or user specifies otherwise:
Priority order: Figma variables (Mode A) → project-defined tokens → the Default System below. Always default to light mode unless the user explicitly requests dark.
| Token | Value |
|---|---|
--bg | #FFFFFF |
--layer-1 | #F7F7F7 |
--layer-2 | #EFEFEF |
--stroke | #F7F7F7 |
--accent-1 | #564CD8 |
--accent-1-bg | #ECEBFF |
--text-primary | #252525 |
--text-secondary | #515151 |
--grey | #828282 |
| Token | Value |
|---|---|
--bg | #181818 |
--layer-1 | #333333 |
--layer-2 | #ADADAD |
--stroke | #444444 |
--accent-1 | #00BFBF |
--accent-1-bg | #1A3131 |
--text-primary | #FDFDFD |
--text-secondary | #B3B3B3 |
--black | #222222 |
Usage rules:
var(--accent-1)) or map to Tailwind custom tokens — never hardcode hex inline--accent-1) for CTAs, active states, links, focus rings; accent BG for pills, tags, subtle highlights--layer-1 for card surfaces, sidebars, input backgrounds; --stroke for borders and dividers--text-secondary and --grey for labels, metadata, placeholder textFramer Motion is the default for all motion work; animations.dev for advanced patterns. In Figma mode, extract motion specs (trigger, states, duration, easing, reduced-motion behavior) from prototypes and annotations first — those win over the defaults here.
// Entrance — staggered children
const container = { hidden: {}, show: { transition: { staggerChildren: 0.07 } } }
const item = { hidden: { opacity: 0, y: 12 }, show: { opacity: 1, y: 0 } }
// Smooth presence (wrap with AnimatePresence)
<motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} />
// Spring physics for interactive elements
transition={{ type: "spring", stiffness: 400, damping: 30 }}
// Layout animations
<motion.div layout layoutId="unique-id" />
spring for interactive/draggable elements; tween with ease for revealsprefers-reduced-motion; animate only transform/opacityHard rules. Never deviate.
Data layer (database-agnostic):
references/state-data-forms.md).Secrets:
.env.local (never in source; YOUR_SECRET_HERE placeholders in examples)..env files; ensure .gitignore covers them.1. PLAN Mode A: figma-mcp.md inspection workflow + completeness gate → implementation analysis
Mode B: user flows → component breakdown → data requirements → brief spec
↓
2. IMPLEMENT Tokens → primitives → components → sections → screens, per the handbook
↓
3. ANIMATE Framer Motion per Animation Guidelines (or extracted Figma motion specs)
↓
4. REVIEW quality-checklists.md gate — types, lint, a11y, responsive, performance
Mode A: plus the pixel-validation pass in figma-mcp.md (computed styles, not eyeballing)
↓
5. SHIP GitHub PR → deploy preview → merge
Scale the plan to the task. A full multi-screen Figma conversion gets the complete implementation analysis (component tree, inventory, tokens, state model, responsive + motion strategy — template in figma-mcp.md). A single component or small change gets a few lines: what it is, where it lives, what it reuses. Never skip planning entirely; never bury a button under a 13-section document. If the user jumps straight to implementation, surface structural gaps in one line, then proceed.
Scale the build to the ask. The quality bar governs how you build, never how much. Everything you ship must be finished (states, a11y, types, tokens) — but ship only what was requested. Don't invent components, flows, or simulations the request didn't mention: a "swap widget with mock data" needs its inputs, quote, and button done well — not a token-picker popover or a failure-rate simulator on top. Extra surface area is extra review burden and extra time-to-first-feedback for the user, and unrequested scope is where deadlines die. When you spot a genuinely worthwhile addition, name it in one line at the end ("worth adding next: X") instead of building it. The same discipline applies to reading: open only the reference files the routing table maps to this task, and use their Contents lists to read the relevant sections, not the whole file.
references/a11y-motion-performance.md (opens in a new tab)references/domain-patterns.md (opens in a new tab)references/engineering-philosophy.md (opens in a new tab)references/figma-mcp.md (opens in a new tab)references/quality-checklists.md (opens in a new tab)references/react-nextjs-standards.md (opens in a new tab)references/state-data-forms.md (opens in a new tab)references/styling-components.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ddruids/design-engineer --plugin design-engineerOther plugins' skills for the same job