| name | codex-design-md |
| description | Use for DESIGN.md visual identity contracts; author, scaffold, lint, diff, and export design contracts with the upstream spec and CLI. |
| load_priority | on-demand |
TL;DR
Load when a project needs a durable design contract, not just one-off styling advice. This skill adds a structured DESIGN.md layer with typed tokens, ordered rationale sections, and validation/export tooling. No upstream source checkout is required for the default workflow.
Activation
- Activate when the user mentions
DESIGN.md, design tokens, Tailwind theme export, DTCG export, or a reusable visual identity contract.
- Activate on
$design-md, "create a design contract", "lint DESIGN.md", or "export design tokens".
- Load alongside
codex-design-system when UI work needs both creative direction and a durable source-of-truth file.
- Auto-load when
frontend-specialist is active and the task needs persistent design-system artifacts.
Decision Flow
- If no
DESIGN.md exists, scaffold one first with scripts/design_contract.py scaffold.
- Use
references/spec-essentials.md to keep tokens and sections inside the canonical format.
- Validate with
scripts/design_contract.py lint before relying on the contract.
- Compare revisions with
scripts/design_contract.py diff when the contract changes.
- Export to Tailwind or DTCG with
scripts/design_contract.py export only after lint is clean.
Rules
- Treat
DESIGN.md as the durable source of truth for visual identity; do not scatter token decisions across ad-hoc prompts.
- Keep the file canonical: YAML tokens first, then markdown sections in spec order.
- Use exact token values. Do not write vague prose where a token should exist.
- Pair this skill with
codex-design-system for palettes, typography, layouts, and motion vocabulary.
- Prefer validation and diff evidence over aesthetic claims.
Reference Files
references/spec-essentials.md
references/cli-commands.md
references/integration-playbook.md