You generated the spec — now make your AI coding agents actually follow it. This guide covers the file's anatomy, wiring it into Cline, Cursor, Claude Code and other agents, and the prompts that get perfectly on-brand output.
Anatomy
Every file has two layers: machine-readable YAML frontmatter (tokens an agent can parse programmatically) and richly detailed Markdown sections that explain how the design behaves.
# DESIGN.md (excerpt) --- name: Aurora Landing colors: primary: "#4F46E5" accent: "#06B6D4" surface: "#FFFFFF" typography: heading: "Inter, 800, -0.03em" body: "Inter, 400, 16px/1.6" radius: [8, 12, 16] --- ## Color System Primary #4F46E5 is reserved for CTAs… ## Motion All entrances use cubic-bezier(.16,1,.3,1)… ## Guardrails Never place accent text on primary bg…
Workflow
Paste your reference URL (or upload a screenshot) in the generator, review the live preview and full report, then download the .md file.
Save the file as DESIGN.md in the root of your project — next to your README. Agents that scan the workspace will find it naturally.
my-project/ ├── DESIGN.md ← the spec ├── README.md ├── src/ └── package.jsonMake reading the file non-optional by adding one rule to your agent configuration:
# .clinerules / .cursorrules / CLAUDE.md Before writing or changing any UI code, read DESIGN.md at the repo root and strictly follow its color tokens, typography scale, spacing, shadows, motion and guardrails. Never invent new colors or fonts.Reference the spec explicitly in your prompts for best results:
"Build a pricing page following DESIGN.md — use the documented card component style, primary color only on CTAs, and the standard entrance animation for section reveals."Whenever the live design changes, re-scan the site and replace the file. Because it's generated from real shipped CSS, your documentation can never silently drift from reality.
Compatibility
DESIGN.md is plain Markdown — any tool that reads project files can use it. Here's where to reference it for each agent:
Add a rule instructing Cline to read DESIGN.md before UI work. It will honor it in both Plan and Act modes.
Reference DESIGN.md in your project rules so every Composer and chat session applies the tokens.
Point to DESIGN.md from CLAUDE.md ("always follow DESIGN.md for styling") — it's read at session start.
Add the instruction to the repository custom-instructions file so Copilot Chat follows the spec.
Same pattern: one rule that mandates reading DESIGN.md before generating any component.
Add the file to the chat context explicitly, or mention it in your prompt — Markdown needs no special support.
Best practices
A marketing site and a dashboard usually deserve separate specs — different densities, different components.
Let the agent read the file itself. Re-typing tokens from memory reintroduces exactly the inconsistency the file solves.
Generate CSS custom properties or a Tailwind theme from the YAML block so the design system exists in code too, not just docs.
If you tweak colors or spacing manually, run the preview (or the Verify & Fix pass) to be sure the system still holds together.
Guardrails are the highest-leverage lines for AI agents — explicit "never do X" rules prevent the most common drift.
An outdated spec is worse than none — agents will confidently build to the wrong design. Re-scan after visual releases.
Any URL. Any screenshot. A complete, agent-ready design specification in minutes.
✨ Open the generator