DESIGN.md
Собирает короткий DESIGN.md, по которому работает агент.
---
name: design-md
description: Use when a project needs a DESIGN.md so coding agents follow the design system.
---
DESIGN.md
Write a short file that tells agents how the UI should look.
Steps
- If the system lives in Figma, extract it:
npx figma-to-design-md extract --file <key> --token <token>
- Otherwise read the token files and 3 to 5 core components.
- Write
DESIGN.mdwith these sections: colors, type, spacing, radii, components, rules. - Every value must come from a token or a component in the code. Mark guesses as
unverified. - Keep it under 150 lines.
Done when
- Each rule points to a token or file
- An agent can build a new screen from this file alone