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-systemwhen UI work needs both creative direction and a durable source-of-truth file. - Auto-load when
frontend-specialistis active and the task needs persistent design-system artifacts.
Decision Flow
- If no
DESIGN.mdexists, scaffold one first withscripts/design_contract.py scaffold. - Use
references/spec-essentials.mdto keep tokens and sections inside the canonical format. - Validate with
scripts/design_contract.py lintbefore relying on the contract. - Compare revisions with
scripts/design_contract.py diffwhen the contract changes. - Export to Tailwind or DTCG with
scripts/design_contract.py exportonly after lint is clean.
Rules
- Treat
DESIGN.mdas 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-systemfor palettes, typography, layouts, and motion vocabulary. - Prefer validation and diff evidence over aesthetic claims.
Reference Files
references/spec-essentials.mdreferences/cli-commands.mdreferences/integration-playbook.md