design-md-author
Skill9 starsChanged 6 months agoMITView on GitHub
Read or write a Google-spec DESIGN.md at the project root — the cross-tool aesthetic spec that grounds every prompt in this project. Use when the user asks to capture, update, or import a design system, or when starting a project that should have a documented aesthetic direction.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- n-n-code/n-n-code-skillstheir own version, first seen Nov 1, 2026
- liuhean2021/anan-agent-skillstheir own version, first seen Apr 11, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- n-n-code/n-n-code-skills★ 4same name
- liuhean2021/anan-agent-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- canvas-syncSkill
- cuj-guardianSkill
- frontend-designSkill
- grill-meSkill
- pr-evidenceSkill
- semantic-commitSkill
- ship-taskSkill
- verify-with-playwrightSkill
- animated-videoSkill
- create-design-systemSkill
- design-aesthetic-presetsSkill
- design-critiqueSkill
- exportSkill
- frontend-designSkill
- handoff-to-claude-codeSkill
- interactive-prototypeSkill
- make-tweakableSkill
- save-as-standalone-htmlSkill
- send-to-canvaSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 10 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 79
Ask the user for the aesthetic direction — name a tone (or invoke design-aesthetic-presets to pick one).
- Distinctive: line 80
Ask for any constraints — required brand colors, fonts the user is licensed for, accessibility targets.
- Very specific: line 83
Update the project manifest's design.design_md field to "DESIGN.md" so the API picks it up.
- Distinctive: line 87
Read the imported file. Validate it has the 8 required sections.
- Distinctive: line 88
If sections are missing, list them and ask the user whether to fill in defaults or stop.
- Distinctive: line 90
Run a contrast check on the color tokens (WCAG AA: 4.5:1 body, 3:1 large) and surface any failures before declaring done.
- Very specific: line 101
Read the current DESIGN.md.
- Distinctive: line 103
Update only those sections.
- Very specific: line 104
If a token is renamed or removed, scan the codebase for var(--<token>) references and surface them — the user may need to refactor before …
- Distinctive: line 110
If you do need to read it manually (for an audit, an export, or a critique):
- Very specific: line 113
Use the front-matter tokens as the source of truth for color/type/spacing values.
- Distinctive: line 114
Use the markdown sections as the source of truth for *how* tokens combine into components and layouts.
- Very specific: line 138
After writing, validate via npx @google/design.md lint <path>.
- Distinctive: line 139
All required sections present in the right order
- Very specific: line 140
All token references resolvable (no {colors.foo} where foo isn't defined)
- Distinctive: line 144
If the lint fails, fix before declaring done.
- Very specific: line 150
Re-deriving values per component: If three components all need a 12px radius, that's --radius-md in the front-matter, not three …
- Distinctive: line 151
Editing component values without updating the spec: If you change a button's primary fill in code, update the spec or the spec is now lying.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
DESIGN.md author
Read, write, or update a DESIGN.md at the project root. DESIGN.md is the Google-Labs-published cross-tool spec for documenting a design system: tokens, typography, components, motion, do's-and-don'ts. When present, it grounds every subsequent prompt in this project — the agent reads it as project-context before generating UI.
When to use
- The user asks to "set up the design system", "create a DESIGN.md", "import this design system", "capture our look".
- A project doesn't have a
DESIGN.mdyet and the user wants to commit to a direction once instead of re-deciding per prompt. - The user wants to import a DESIGN.md from elsewhere (a Stitch export, a community gallery, another project).
- The user wants to update tokens, typography rules, or component specs declared in the project's existing
DESIGN.md.
Skip when:
- The user is generating a one-off design —
DESIGN.mdis for projects with continuity, not single artifacts. - The change is implementation, not specification. (Component code changes go through
frontend-design; the DESIGN.md only changes when the spec shifts.)
The schema (Google spec)
A valid DESIGN.md has YAML front-matter and a fixed set of markdown sections in order. Every section is required.
---
version: "0.1.0"
name: "Project name"
description: "One-sentence aesthetic direction."
colors:
bg: "#hex"
surface: "#hex"
ink: "#hex"
brand: "#hex"
# … semantic tokens, named by purpose
typography:
display: "Font Name, fallback"
body: "Font Name, fallback"
mono: "Font Name, fallback"
rounded:
none: "0"
sm: "4px"
md: "8px"
lg: "16px"
spacing:
unit: "4px"
scale: [0, 1, 2, 3, 4, 6, 8, 12, 16, 24]
components:
button:
primary:
bg: "{colors.brand}"
ink: "{colors.bg}"
# … per-component variants
---Token references use {path.to.token} so semantic relationships survive when individual values change.
Required markdown sections, in this order:
## Overview— the aesthetic direction in 2–4 paragraphs. What feeling, what posture, what's the differentiation.## Colors— semantic role per color, with hex and a one-line use-case. Reference front-matter tokens.## Typography— display vs body vs mono roles, the type scale, tracking rules, letter-spacing floors.## Layout— grid system, spacing scale, breakpoints, content max-widths.## Elevation & Depth— shadow tokens, when to use which.## Shapes— radii, border weights, decorative elements.## Components— per-component spec: button, card, input, dialog, navigation, etc. Each with state variants (default, hover, active, disabled, error).## Do's and Don'ts— the project-specific anti-patterns, paired with what to do instead.
Authoring flows
From scratch
- Ask the user for the aesthetic direction — name a tone (or invoke
design-aesthetic-presetsto pick one). - Ask for any constraints — required brand colors, fonts the user is licensed for, accessibility targets.
- Generate a complete
DESIGN.mdwith all 8 sections filled in. Use the chosen aesthetic to drive concrete values, not placeholders. - Save to
DESIGN.mdat the project root. - Update the project manifest's
design.design_mdfield to"DESIGN.md"so the API picks it up.
From an imported spec
- Read the imported file. Validate it has the 8 required sections.
- If sections are missing, list them and ask the user whether to fill in defaults or stop.
- Save the validated content to
DESIGN.mdat the project root. - Run a contrast check on the color tokens (WCAG AA: 4.5:1 body, 3:1 large) and surface any failures before declaring done.
From a codebase (reverse engineer)
- Scan the project's existing CSS for tokens, fonts, and components.
- Cluster related values (e.g. all the colors used → propose semantic roles; all the radii → propose
none/sm/md/lg). - Generate a draft
DESIGN.mdand present it for user review BEFORE writing. - Iterate on the user's feedback, then commit.
Updating an existing DESIGN.md
- Read the current
DESIGN.md. - Identify which section(s) the user wants to change.
- Update only those sections; leave the rest untouched.
- If a token is renamed or removed, scan the codebase for
var(--<token>)references and surface them — the user may need to refactor before the new spec ships.
Reading flows
When DESIGN.md is present at the project root, the API prepends its content to the system prompt automatically (see api/src/services/promptBuilder.ts). So if you're generating UI inside the canvas, you'll already have the spec in context — your job is to follow it, not to read it again.
If you do need to read it manually (for an audit, an export, or a critique):
- Read the file.
- Use the front-matter tokens as the source of truth for color/type/spacing values.
- Use the markdown sections as the source of truth for how tokens combine into components and layouts.
Hard rules
- Never silently modify
DESIGN.md. It's the project's contract with the user. Show the diff and confirm before writing. - Tokens MUST be semantic.
--brand, not--orange-500.--surface-elevated, not--white-2. Names by purpose lock in re-skinning later. - Every color must pass WCAG AA against its companions. Body text on background ≥ 4.5:1. Large text ≥ 3:1. Re-check after any color change.
- The 8 required sections are not optional. A spec missing one is incomplete — don't ship it as valid.
- Reference tokens, don't inline values, in the components section.
bg: "{colors.brand}", notbg: "#d97757". The whole point of the spec is that values can change without touching components.
Compatibility
A Google-spec DESIGN.md is consumed by:
- AI Atelie (this project, via
api/src/services/promptBuilder.ts) - Claude Code (anywhere
clauderuns in a project root) - Cursor (via
.cursor/rulesadapter) - Kiro (via
.kiro/steering/) - Windsurf (via
global_rules.md) - Stitch (Google Labs)
So a DESIGN.md written here travels — the project's aesthetic direction is portable.
Lint & validate
After writing, validate via npx @google/design.md lint <path>. The CLI checks:
- All required sections present in the right order
- All token references resolvable (no
{colors.foo}wherefooisn't defined) - WCAG AA contrast on color pairs
- YAML front-matter parses cleanly
If the lint fails, fix before declaring done.
Anti-patterns
- A
DESIGN.mdfilled with TODOs or placeholders. Either the spec is real or it's noise. Ship a complete one with simple values, not an aspirational one with gaps. - Aesthetic prose in the spec. "Modern, minimalist, bold." Words like that are vibes, not specs. The Overview section can be evocative, but the rest is concrete tokens and rules.
- Re-deriving values per component. If three components all need a 12px radius, that's
--radius-mdin the front-matter, not three component-level decisions. - Editing component values without updating the spec. If you change a button's primary fill in code, update the spec or the spec is now lying.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

