design-md-enforcer
Installation
SKILL.md
Design MD Enforcer
Purpose
The design-md-enforcer skill ensures that both human developers and AI agents follow a unified design system specification called DESIGN.md.
It serves two primary functions:
- Extraction: Analyzing the visible design language of a public URL and converting it into an AI-agent-friendly design system package.
- Enforcement: Enforcing a system where design reasoning and raw values (hex codes, sizes) are bound together using token roles, preventing drift between style guides and code.
Core Philosophy: Logic Meets Values
-
Tokens are Roles, Not Just Variables: A token is not just a hex code; it represents a specific purpose or role in the design system.
- Example:
primaryis not just#0A1F1C; it is the "main ink, text color" role. - Example:
body_mainis not just18px; it is the "default body copy" role.
- Example:
-
Components Reference Roles: UI components must never hardcode static hex values. They must reference the token roles. If the role's value changes, all components referencing it are automatically updated.