-
Notifications
You must be signed in to change notification settings - Fork 0
designmd
DESIGN.md is a single-file pattern for telling coding agents how UI should look. SpecUI is a multi-file, validated contract in .specui/. They coexist happily as long as one rule holds: SpecUI stays canonical, and DESIGN.md is an export.
| Approach | Best for |
|---|---|
| SpecUI only | Teams + CI + registry + multi-platform specs |
| DESIGN.md only | The smallest possible agent doc, no CLI |
| SpecUI → DESIGN.md | Agents/tools that only read DESIGN.md; SpecUI still gates in CI |
From an app with .specui/:
npx specui export --format designmd --to ./DESIGN.md --from .specuiFrom a flat design-system repo:
npx specui export --format designmd --to ./DESIGN.md --from .Re-run after every contract change. Whatever you do, don't start hand-editing the exported DESIGN.md — that's how you end up with two conflicting sources of truth.
- Register and document in
.specui/(add, numbered docs,TOKENS.yaml) -
specui validate .specui --strictin CI - Optional build step:
specui export --format designmd --to DESIGN.md - Point legacy agent prompts at
DESIGN.mdwhile you migrate them to.specui/+AGENTS.md
A DESIGN.md-oriented summary derived from SpecUI front matter and the token/component index. It's enough for an agent to orient itself, but it doesn't replace the per-component SPEC.md / STATES.md files in .specui/.
For the full agent protocol, use .specui/AGENT-DESIGN-RULES.md and AGENTS.md.
Easy to mix these up:
| Command | Output |
|---|---|
specui spec |
The normative SpecUI standard (tooling contract) |
specui export --format designmd |
Your product’s design summary for DESIGN.md consumers |
Getting started
How-to guides
- Scenarios
- Tokens And Components
- Agents And Mcp
- Agent Prompts
- Ci Cd
- Distribution
- Registries
- Interop
- Designmd
- Validation
- Troubleshooting
Reference
Community