AI Skill StudioAI Skill Studio
Skill Library
Presets:

DESIGN.md generator: design tokens and UI rules for AI agents

Record colours, type, spacing, component patterns and what never to do, so generated UI matches your design system. Runs in your browser; nothing is uploaded.

Target Standard & File Format

AI Agent Rules & Skills
Context Shields & Privacy (Ignore Files)
Integrations & Machine Documentation
AI Governance & Multi-Agent Planning Suite

1. Visual Language & Semantic Tokens

Pitch-black canvas palette, elevated surfaces, border tokens, and monospace metrics:

2. Component Hierarchy & Single-Canvas Layout

Single-canvas layout rules, anti-nested card invariant, and mobile touch targets:

3. Core Architectural & UI Conventions

Component decoupling, controlled state contracts, and styling conventions:

4. Negative Design Guardrails

Forbidden UI anti-patterns (nested cards, arbitrary margin offsets, non-standard CSS):

5. StitchMCP Compatibility & Design QA Gate

StitchMCP schema integration, accessibility contrast, and visual QA checklist:

DESIGN.md: how it works

DESIGN.md describes your design system in Markdown: colour and spacing tokens, the type scale, component patterns, and the UI mistakes to avoid. Agents that generate UI tend to invent new colours, spacing and components; a DESIGN.md gives them the existing ones to reuse. Like the other planning docs it is a convention, so tell the agent in CLAUDE.md or AGENTS.md to read it before UI work.

Where the file goes

  • ./DESIGN.mdRepo rootRead before UI work, when your rules file says so.

What goes in it

Design tokensTokens named by role, with the values your CSS or theme uses.
## Tokens
- canvas: #09090B
- surface: #18181B
- border: #27272A
- accent: #EA580C
Component rulesWhich components to reuse, and the mistakes not to repeat.
## Components
- Buttons: <Button variant="primary|secondary|ghost"> from @/components/ui.
- Never nest a card inside another card.
- Icons: lucide-react, 16px in buttons, 20px in headings.

Tips

  • Name tokens by role (canvas, surface, border, accent), not by colour.
  • Point to existing components to reuse instead of describing new ones.
  • Write negative rules for mistakes you have seen agents make.
  • Keep it in sync with your actual CSS or theme file.

Not sure DESIGN.md is the file you need? Each AI coding tool reads its own file from its own place.

Which file do I need?

Frequently asked questions

What goes in a DESIGN.md?

Design tokens (colours, spacing, radii, type), the components to reuse and how, layout rules, and a short list of things never to do, such as nesting cards or adding new colours.

Do AI agents read DESIGN.md automatically?

No. Add 'Read DESIGN.md before UI work' to your CLAUDE.md or AGENTS.md.