DESIGN.md keeps Claude Code and Codex from shipping generic AI UI
dr_cintas · x · 2026-10-04
A practical trick to stop coding agents (Claude Code, Codex) from producing generic AI-style UI: write your design spec in Google's open DESIGN.md format. Stitch reads it natively; other agents just need one line in AGENTS.md: "Read DESIGN.md before any UI work."
Recommended structure: tokens on top, rules below — Overview, Colors, Typography, Layout, Elevation & Depth, Shapes, Components, Do's and Don'ts. The agent stops inventing new colors and spacing per screen, so every screen looks like the same product.
Extras:
- Claude Code users can install the official frontend plugin: /plugin install frontend-design@claude-plugins-official
- Validate your file with npx @google/design.md lint DESIGN.md
More from coding & agent
- Devs flag GPT's defensive programming for hiding bugs; OpenAI asks for /feedback cases — pvncher · 2026-11-19
- Flutter ships A2UI 1.0: agents respond with real interactive widgets, not chat text — rseroter · 2026-11-19
- Skills vs MCP vs RAG vs Memory: the four context mechanisms AI agents actually need — MaryamMiradi · 2026-11-19
- Anthropic details agent memory: 'dreaming' lets Claude organize its experience — daniel_mac8 · 2026-11-19
- The case for externalized memory as the real fix for continual learning — daniel_mac8 · 2026-11-19
- FT: US tech outages blamed on rush to fix bugs found by AI — nordicinst · 2026-11-19