npx skills add ...
npx skills add nolly-studio/agent-skills --skill design-md
Create or update a repo's DESIGN.md — a living design-language contract for AI agents and humans — plus a portable frontend-design skill. Classifies the repo first (document an existing design language, merge with existing design docs, or propose a new direction with user approval) so it never overwrites a project's current design. Use when setting up design docs for a frontend project. Triggers on "add a DESIGN.md", "document our design language", "set up design docs", "create a design system doc", "bootstrap design".
npx skills add nolly-studio/agent-skills --skill design-md
You are creating this repository's design-language contract: a root DESIGN.md that tells agents and humans exactly how UI is built here, plus a portable frontend-design craft skill. The doc is downstream of the code — you describe the design language that exists, or propose one with user approval. You never invent a design language and present it as fact, and you never restyle existing UI to match a doc.
DESIGN.md — the repo's design language, written from evidence, citing real files and tokens.agents/skills/frontend-design/SKILL.md — portable craft doctrine (typography, surfaces, motion) that applies to any repoAGENTS.md so agents find the design language within one hop| File | Used for |
|---|---|
references/design-md-template.md | DESIGN.md skeleton, filled from evidence |
references/skill-frontend-design.md | .agents/skills/frontend-design/SKILL.md (create verbatim) |
Gather evidence. Every claim in DESIGN.md must trace back to something you saw here:
package.json: framework, UI libraries (react/vue/svelte, tailwind, shadcn, radix/base-ui, motion/framer-motion, lucide, fonts packages)globals.css / tailwind.config.* / theme files — CSS variables, @theme blocks, custom utilities (shadows, radii, animations)next/font, @font-face, link tags), which families, which rolescomponents/ui/, shared primitives, variant patterns (cva, variants props)prefers-reduced-motion handlingDESIGN.md, docs/design*, brand guidelines, Figma links in READMEs, design-related Cursor rules or agent docsThen classify the repo into exactly one mode:
The repo has consistent tokens, deliberate font choices, a component system, recurring motifs. Your job is extraction: write DESIGN.md describing what exists, citing the files that prove it. Nothing about the actual design changes. Where the codebase is internally inconsistent, document the dominant/most-recent pattern and note the deviation — do not resolve it by fiat.
A DESIGN.md, brand guide, or design-related rules already exist. Merge, never regenerate: preserve every unique local rule, deduplicate against the template structure, keep one source of truth, and leave pointers behind if you consolidate scattered docs. If existing docs contradict the code, flag the contradiction to the user instead of silently picking a side.
No established language exists. Choosing an aesthetic direction is a user-owned decision, not an evidence question. Write a one-page proposal to docs/plans/design-language.md (or PLAN.md if the repo has no docs/plans/) covering: aesthetic direction and tone, font pairing (display + body), color approach and the accent budget, elevation strategy, motion approach. Offer 2–3 distinct directions if the product context supports them. Stop and get user approval before writing DESIGN.md. After approval, write the full doc from the approved proposal.
Plus one edit: add - [Design Language](DESIGN.md) to the Quick Links in AGENTS.md (create the section if the repo has an AGENTS.md without it; skip if there is no AGENTS.md).
DESIGN.md using references/design-md-template.md as structure — filled from evidence (Modes A/B) or the approved proposal (Mode C).agents/skills/frontend-design/SKILL.md verbatim from references/skill-frontend-design.md (stripping the template preamble), unless the repo already has an equivalent craft skill — then skip itDESIGN.md from AGENTS.md Quick Linksrounded-3xl cards, rounded-full CTAs" beats "generously rounded"DESIGN.md. The doc describes or proposes; it does not authorize a refactor. If the user wants the UI brought in line with the doc, that is a separate, explicit taskDESIGN.md unless verified in THIS repo or approved in the Mode C proposalDESIGN.md resolves to an existing filedocs/plans/AGENTS.md link resolvesDESIGN.md contains only items an agent can verify from codeDESIGN.md alone, one hop from AGENTS.mdfrontend-design craft skill is installed