Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
broomva avatar

Design Engineering

  • 1 installs
  • 2 repo stars
  • Updated March 19, 2026
  • broomva/design-engineering

Design Engineering is a Claude Code skill that produces high-end UI designs using DESIGN.md as a portable contract across Pencil, Figma and Google Stitch, then generates validated production frontend code.

About

This skill drives a multi-tool UI design pipeline using a DESIGN.md contract shared across Google Stitch, Pencil MCP and Figma MCP, then generates production React and Tailwind code. A developer uses it to keep agent-generated interfaces from looking generic and to enforce accessibility and design-token consistency. It validates each step with screenshots and layout inspection.

  • Uses DESIGN.md as a portable contract across Pencil, Figma and Google Stitch
  • Enforces WCAG 2.2 AA, OKLCH color and tiered animation timing on AI-generated UI
  • Screenshot-driven visual validation after every major design step

Design Engineering by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #1,609 of 1,880 Design & UI/UX skills by installs in the Skillselion catalog
  • Data as of Jul 8, 2026 (Skillselion catalog sync)
At a glance

design-engineering capabilities & compatibility

Requires a Figma API key for the Framelink MCP and optionally a Stitch API key; Pencil and Stitch skills installed via npx

Capabilities
ui design · design system · figma to code · accessibility audit
Works with
figma
Use cases
ui design · frontend · web design
IDEs
vscode · cursor ide
Pricing
Bring your own API key
From the docs

What design-engineering says it does

produces high-end, distinctive UI designs using DESIGN.md as the portable contract across Pencil MCP (in-IDE canvas),
SKILL.md
These are **non-negotiable** in every design:
SKILL.md
Never animate `width`, `height`, `top`, `left` — use `transform` and `opacity` only
SKILL.md
DESIGN.md is a **portable, agent-friendly markdown file** following Google Stitch's five-section format.
SKILL.md
npx skills add https://github.com/broomva/design-engineering --skill design-engineering

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
repo stars2
Last updatedMarch 19, 2026
Repositorybroomva/design-engineering

What it does

Use it to design distinctive, accessible UIs across Pencil, Figma and Stitch and turn them into production React/Tailwind code.

Who is it for?

Creating or reviewing distinctive UI from an agent, generating DESIGN.md, and enforcing visual quality on AI-generated interfaces

Skip if: Backend logic, data or API work; it is scoped to visual design and frontend output

When should I use this skill?

Creating or reviewing UI designs, setting up a design pipeline, or converting Pencil/Figma designs to code

What you get

Distinctive, WCAG 2.2 AA-compliant UI and production React/Tailwind code validated against a DESIGN.md contract

  • DESIGN.md contract
  • production React + Tailwind components
  • design tokens

By the numbers

  • 6 DESIGN.md sections
  • 6 timing tiers
  • 3-layer token architecture

Files

SKILL.mdMarkdownGitHub ↗

Design Engineering

Premium design engineering for agentic workflows. Produce distinctive, high-end interfaces — not generic AI output — using DESIGN.md as the portable design contract across three complementary tools.

DESIGN.md (contract) ─────────────────────────────────────────────────
    │                         │                        │
    ▼                         ▼                        ▼
  Stitch                   Pencil                    Figma
  (explore)              (design in IDE)         (refine + handoff)
    │                         │                        │
    └─────────────────────────┴────────────────────────┘
                              │
                              ▼
                    Production Code
                 (validated via screenshots)

Quick Start

1. Create or Load DESIGN.md

Every project needs a DESIGN.md at its root. Generate one from an existing project:

# From existing code (read globals.css, extract tokens)
# Agent analyzes CSS → generates DESIGN.md in Stitch spec format

# From a reference website (via Stitch)
# Use stitch-design skill → extract_design_context → synthesize DESIGN.md

# From a Figma file
# Use Figma MCP → get_variable_defs + get_design_context → synthesize DESIGN.md

2. Design Pipeline

StageToolAction
ExploreStitchVibe-design multiple directions from a goal/feeling/inspiration
DesignPencil MCPCreate .pen files in IDE — batch_design, get_style_guide, set_variables
RefineFigma MCPTeam review, design token management, Code Connect mapping
BuildCoding AgentGenerate production code referencing DESIGN.md tokens
ValidateScreenshotsget_screenshot (Pencil), visual diff, layout inspection

3. Validate Design Quality

After every major design step, run the Premium Design Checklist:

  • [ ] No generic AI aesthetic (purple gradients on white, stock photos, identical cards)
  • [ ] Consistent atmospheric hue across all neutral surfaces (never pure gray)
  • [ ] Maximum 2-3 saturated brand colors + semantic states
  • [ ] Custom typography (not Inter/Roboto/Arial defaults)
  • [ ] Glass/material metaphor with deliberate restraint (3-5 glass surfaces per viewport)
  • [ ] Tiered animation timing (150ms hover → 250ms transition → 500ms morph → 1500ms ambient)
  • [ ] WCAG 2.2 AA: 4.5:1 text contrast, visible focus indicators, 24x24px touch targets
  • [ ] Reduced motion: prefers-reduced-motion disables all animation
  • [ ] Mobile-first: 16px min font on inputs, responsive breakpoints tested

The DESIGN.md Specification

DESIGN.md is a portable, agent-friendly markdown file following Google Stitch's five-section format. It captures a project's visual identity in terms readable by both humans and AI agents.

Required Sections

#SectionContent
1Visual Theme & AtmosphereEvocative mood descriptors, density, aesthetic philosophy
2Color Palette & RolesDescriptive Name + color value + functional purpose for every color
3Typography RulesFont families, weight/size hierarchy, rendering settings
4Component StylingsButtons, cards, navigation, inputs — shape, color, behavior, states
5Layout PrinciplesSpacing system, grid, whitespace, responsive behavior, animation
6Generation Notes (optional)Prompt templates, iteration constraints, tool-specific guidance

Writing Rules

  • Evocative names: "Resonant AI Blue" not "blue"; "Abyssal Indigo" not "dark background"
  • Precise values in parens: oklch(0.55 0.25 260) / #0066ff after every descriptive name
  • Functional purpose: Every color/component explains what it's used for
  • Physical descriptions: "Pill-shaped" not rounded-full; "Whisper-soft shadows" not shadow-sm
  • Never raw CSS class names: Translate all technical values into design language

How Agents Use DESIGN.md

1. Read DESIGN.md at the start of every design or frontend task 2. Apply tokens — use the exact color values, font stacks, spacing units, and animation timings 3. Follow component patterns — buttons, cards, inputs should match the described styling 4. Validate against it — every generated component should pass a visual audit against the spec 5. Update it — when the design system evolves, keep DESIGN.md current

Multi-Tool Pipeline

Pencil MCP (Design in IDE)

Agent-native vector design on an infinite canvas. .pen files are JSON, live in Git, and are read/written via MCP tools.

Core workflow: 1. get_editor_state() — understand current context 2. get_guidelines("web-app") — load design rules for your project type 3. get_style_guide_tagsget_style_guide(tags) — choose aesthetic direction 4. set_variables(...) — set design tokens from DESIGN.md 5. find_empty_space_on_canvas(...) — locate placement for new frames 6. batch_design(operations) — create/modify design (max 25 ops per call) 7. get_screenshot(nodeId) — validate visually after every major step 8. snapshot_layout() — verify computed positions, detect clipping/overflow

Design-to-code: Agent reads .pen tree via batch_get, extracts layout/styling, generates React + Tailwind components referencing DESIGN.md tokens.

Key rules:

  • Always take screenshots after major design steps
  • Keep batch_design to max 25 operations per call
  • Use realistic content, never "Lorem ipsum"
  • Name layers semantically ("UserAvatarImage" not "Rectangle 12")
  • Desktop-first at 1440px unless mobile-first specified
  • Mark reusable patterns with reusable: true

Figma MCP (Refine + Handoff)

Industry-standard design tool with official MCP server for agent integration.

Setup:

# Official Figma MCP (hosted, OAuth)
claude mcp add --transport http figma https://mcp.figma.com/mcp

# Framelink (community, most popular, 90% payload compression)
claude mcp add figma-framelink -- npx figma-developer-mcp --figma-api-key=YOUR_KEY

Core workflow: 1. get_design_context(url) — extract layout/styling for a frame (React + Tailwind default) 2. get_variable_defs(url) — read design tokens (colors, spacing, typography) 3. get_code_connect_map(url) — map Figma components → codebase components 4. get_screenshot(url) — visual snapshot for fidelity validation 5. create_design_system_rules(url) — generate agent-readable rules file

Design tokens pipeline:

Figma Variables → REST API / plugin → DTCG JSON → Style Dictionary → CSS / iOS / Android

Google Stitch (Vibe Exploration)

AI-native design platform for rapid UI exploration from natural language.

Setup:

# Install skills (already done globally)
npx skills add google-labs-code/stitch-skills --yes --global

# MCP server
npx @_davideast/stitch-mcp init
# or set STITCH_API_KEY and configure manually

Core workflow: 1. Describe a goal, feeling, or inspiration — not a wireframe 2. Stitch generates multiple high-fidelity UI directions 3. Extract design DNA via extract_design_context 4. Synthesize into DESIGN.md via the design-md skill 5. Export to Figma (with Auto Layout) or download HTML/CSS

DESIGN.md generation pipeline (5 stages): Retrieval → Extraction → Translation → Synthesis → Alignment

Premium Design Principles

What Makes Design Look Premium

1. Deliberate restraint — every element earns its place; nothing is there by default 2. Material metaphor — surfaces feel like glass, paper, stone, or metal — not flat rectangles 3. Atmospheric hue — never pure gray; always a subtle color tint in neutrals (e.g., 275-hue blue-purple) 4. Micro-detail precision — kerning, line spacing ratios, shadow angles, border opacities all consciously chosen 5. Custom typography — distinctive font pairing that immediately separates from generic defaults 6. Interaction choreography — tiered animation timing creates rhythm and hierarchy 7. Light simulation — top-edge gradient highlights on glass surfaces simulate physical light 8. Dominant + accent — one strong brand color with sharp accents, never evenly distributed

What Makes Design Look Generic AI (Avoid These)

Anti-PatternFix
Purple gradients on whiteCommit to one atmospheric hue throughout
Inter/Roboto/Arial defaultsUse distinctive font pairing (e.g., CalSans + Geist)
3-column identical card gridsVary card treatment, use asymmetry, break the grid
Even color distributionDominant/accent hierarchy with 2-3 saturated colors max
Stock team photosAI-generated contextual imagery or abstract patterns
Identical component treatmentVary emphasis with glass tiers, shadow depth, border weight
Over-detailed maximalismOne effect per surface, not stacked gradients + shadows + blur
Missing atmospheric coherenceShared hue undertone + consistent token usage across all components

Color System Principles

  • Define all colors in OKLCH (perceptually uniform lightness)
  • Provide hex fallbacks via @supports not (color: oklch())
  • Enhance brand colors on P3 displays via @media (color-gamut: p3)
  • Limit saturated colors to 2-3 brand + 4 semantic (success, warning, error, info)
  • Maintain a consistent hue undertone across all neutral surfaces

Typography Principles

  • Pair a confident display face (headings) with a precise body face
  • Establish explicit weight hierarchy: Display (SemiBold), Body (Regular), UI Labels (Medium)
  • Set text-rendering: optimizeLegibility, antialiased smoothing
  • Use text-wrap: balance for headlines
  • Minimum 16px font on mobile inputs to prevent iOS Safari zoom

Accessibility Enforcement (WCAG 2.2 AA)

These are non-negotiable in every design:

Color Contrast

  • Normal text: 4.5:1 minimum contrast ratio
  • Large text (18pt+ or 14pt+ bold): 3:1 minimum
  • UI components and graphics: 3:1 minimum

Focus Indicators

  • Visible focus on all interactive elements (2px solid outline, 2px offset)
  • 3:1 contrast between focused and unfocused states
  • Never trap or hide focus

Keyboard & Navigation

  • All functionality available via keyboard
  • Logical tab order
  • Skip navigation links on content-heavy pages

Touch Targets

  • Minimum 24x24 CSS pixels (WCAG 2.2 AA)
  • Recommended 44x44px (Apple HIG) / 48x48dp (Material)

Motion

  • Comprehensive prefers-reduced-motion support
  • Collapse all animation to 0.01ms duration
  • Disable hover transforms in reduced motion mode

Semantic HTML

  • aria-invalid for error identification
  • required / aria-required for required fields
  • ARIA live regions for status messages

Visual Validation Workflow

After Every Major Design Step:

1. Screenshot — use Pencil get_screenshot or browser screenshot tools 2. Layout inspection — use Pencil snapshot_layout(problemsOnly: true) to detect clipping/overflow 3. Token audit — use search_all_unique_properties to find raw hex values that should be tokenized 4. Contrast check — verify all text/background combinations meet WCAG ratios 5. Responsive test — validate at 375px (mobile), 768px (tablet), 1440px (desktop) 6. Dark/light mode — verify both themes maintain contrast and readability

Design Token Audit

search_all_unique_properties → find leaked raw values
replace_all_matching_properties → tokenize to variable references
get_variables → verify all tokens are defined

Animation System

Timing Tiers

TierDurationEasingUse Case
Instant0msReduced motion fallback
Fast150mseaseButton hover, link color, focus ring
Normal250mseaseCard lift, border change, surface shift
Slow350mseasePanel expand, content reveal
Morph500mscubic-bezier(0.4, 0, 0.2, 1)Shape/size transformation
Ambient1500msease-in-outPulsing glow, loading state

Rules

  • Every animation must serve navigation, feedback, or attention — no decorative-only motion
  • Use CSS transitions for standard elements; Motion library for React orchestration
  • Never animate width, height, top, left — use transform and opacity only
  • Use will-change sparingly and remove after animation completes
  • Stagger entrance animations by 50-100ms per element for cascading reveals

Design Token Architecture

Three-layer token structure (Martin Fowler's framework):

LayerNameExample
Option (what)Available choices--color-blue-500: oklch(0.55 0.25 260)
Decision (how)Semantic mapping--ag-ai-blue: var(--color-blue-500)
Component (where)Usage binding--button-primary-bg: var(--ag-ai-blue)

Token Flow

DESIGN.md (specification)
    ↓
globals.css (CSS custom properties)
    ↓
@theme inline (Tailwind v4 mapping)
    ↓
Component code (utility classes + cva variants)

Cross-Tool Sync

DirectionFlow
DESIGN.md → Pencilset_variables with tokens from DESIGN.md
DESIGN.md → CodeCSS custom properties in globals.css
Pencil → Codeget_variables → generate CSS
Figma → Codeget_variable_defs → Style Dictionary → CSS
Code → DESIGN.mdExtract tokens from globals.css → regenerate DESIGN.md
Code → Figmagenerate_figma_design captures rendered UI

Resources

references/

  • design-md-spec.md — Full DESIGN.md specification with examples and writing rules
  • pencil-mcp-reference.md — Complete Pencil MCP tool reference, batch_design syntax, .pen format
  • figma-mcp-reference.md — Figma MCP ecosystem (official + community), Code Connect, Variables API
  • stitch-integration.md — Stitch MCP server, SDK, skills, vibe design methodology
  • premium-design-principles.md — Anti-generic patterns, material metaphors, atmospheric coherence
  • accessibility-enforcement.md — WCAG 2.2 AA checklist, automated enforcement strategies
  • visual-validation.md — Screenshot workflows, layout inspection, token auditing, responsive testing

Related skills

FAQ

What is DESIGN.md?

A portable, agent-friendly markdown file following Google Stitch's five-section format that captures a project's visual identity for humans and agents.

Which tools does it integrate?

Google Stitch for exploration, Pencil MCP for in-IDE design, and Figma MCP for refinement and handoff, all bound by DESIGN.md.

What accessibility standard does it enforce?

WCAG 2.2 AA, including 4.5:1 text contrast, visible focus indicators, 24x24px touch targets and prefers-reduced-motion support.

Design & UI/UXuiuxbranding

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.