FormingRulesclaude-codecursorcodexpublished fresh until

How do I give my agent a DESIGN.md so every screen matches?

Summary When you want an AI agent to follow consistent design tokens and prose across screens, use a DESIGN.md text file and Google's lint, diff, and export CLI; the claim that Claude Code and Codex read it with one line is unconfirmed by the repo.

Not for handing a Claude Design or Stitch mockup to Claude Code; see claude-design-or-stitch-export-to-claude-code

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
ARules · v1.0.0Atmospheric Glass DESIGN.md example (Google design.md)
How you use itAlways on in your project
What it can doinstalls software · writes files
What's inside
ARules · v1.0.0Atmospheric Glass DESIGN.md example (Google design.md)
How you use it
Always on in your project
What it can do
installs software · writes files
What's inside

What this thread does

The problem

Ask a coding agent for three screens and you often get three slightly different blues, button radii and spacing values, because nothing written down says what the product's look is. People are fixing this with a plain file, DESIGN.md, that the agent reads before any UI work.

What people shared

  • X user dr_cintas posted the idea on 3 October 2026. The claim in the post is that you keep one DESIGN.md in the project root and add a line to your agent's instructions file to read it before any UI work. I could not read the full post text, so treat that as the poster's claim.
  • X user shao__meng announced on 22 April 2026 that the format was now an open standard.
  • On Reddit, a r/ClaudeAI thread about making Claude's UI look less generic (28 September 2026) has commenters telling the poster to find a DESIGN.md or have Claude extract a design system from an image or site; the moderator summary of the thread says "Use a Design System".

What the format is

Google Labs publishes the spec and a CLI in google-labs-code/design.md (Apache-2.0; README read at commit 6e5da53, 16 October 2026). According to its README:

1. The file uses YAML design tokens, either in front matter or in interleaved YAML code blocks: name, colors, typography, rounded, spacing and components. Tokens can refer to each other, for example {colors.primary}. 2. The ## prose sections may be omitted, but those present follow a fixed order: Overview, Colors, Typography, Layout, Elevation & Depth, Shapes, Components, Do's and Don'ts. The tokens are the exact values; the prose says why and how to apply them. 3. npx @google/design.md lint DESIGN.md reports broken token references, WCAG contrast ratios and structural problems as JSON. diff compares two versions of a file, and export writes the tokens as a Tailwind theme (css-tailwind, json-tailwind) or as a DTCG token file. 4. The README marks the schema version as alpha, so expect changes.

A minimal way to try it

1. Write a short DESIGN.md for your product with real values: three to five colors, one or two fonts, a spacing scale, a corner radius, and a Do's and Don'ts list. 2. Add one line to AGENTS.md or CLAUDE.md: "Read DESIGN.md before any UI work and do not introduce colors or fonts that are not in it." 3. Run the lint once, since a broken token reference is a cheap error to catch.

The lint runs through npx, so it downloads and runs a package from npm; run it only if you accept that, and read what it prints.

Limits

I did not run the CLI or test the instructions-file line. The README is Stitch-oriented: it shows the format and the tools, and it does not say that Claude Code or Codex read the file on their own, which is why the one-line instruction matters. Social-media counts are from the scouting snapshot of 17 October 2026. For a ready-made starting file, see the separate thread on awesome-design-md.

Started from a post by @dr_cintas, packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in prompting

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I give my agent a DESIGN.md so every screen matches?
Summary: When you want an AI agent to follow consistent design tokens and prose across screens, use a DESIGN.md text file and Google's lint, diff, and export CLI; the claim that Claude Code and Codex read it with one line is unconfirmed by the repo.

## Options
- A · Atmospheric Glass DESIGN.md example (Google design.md) · early, no verdict yet · installs software · writes files
Copy for agent
get the whatworks thread design-md-spec-lint-export and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread design-md-spec-lint-export

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · Atmospheric Glass DESIGN.md example (Google design.md)

An example DESIGN.md from Google's open design.md spec repo: YAML front matter with named color, type and spacing tokens plus prose rationale, in the format the spec's lint and export CLI reads.

Format
Rules
Source
github:google-labs-code/design.md#examples/atmospheric-glass/DESIGN.md
Pinned
v1.0.0 · 6e5da5382f41
Content hash
6e5da5382f41edbb
Audit
scan passed
Can do
installs software · writes files
Works with
claude-code · cursor · codex
Check
DESIGN.md written; YAML front matter with name present; Color tokens block present
Author
@google-labs-code
Kudos
0
Are you @google-labs-code? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package atmospheric-glass-design-md before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package atmospheric-glass-design-md
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp