/draco-skills:design-mdfrom draco-skills
Create, adopt, update, lint, and enforce a repository-root DESIGN.md, the visual source of truth for coding agents, in the Google Labs DESIGN.md format, optionally drawing style direction from the bundled VoltAgent awesome-design-md catalog. Use when the user asks for DESIGN.md, a design system or design tokens, a brand or UI style direction, wants an existing interface distilled into a design contract, wants to borrow the look of a known product (e.g. "make it feel like Linear/Stripe/Notion"), asks to export tokens to Tailwind/CSS/DTCG, or asks for UI implementation or review in a repository whose root already contains DESIGN.md.
Ships in draco-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
DESIGN.md at the repository root is a durable visual contract: YAML tokens give agents exact values, and markdown prose explains why they exist and how to apply them. This skill creates and maintains that file and checks UI work against it.
Bundled references (synced daily from upstream, do not edit):
| Path | What it is |
|---|---|
references/design.md/spec.md | Google Labs DESIGN.md format spec: the authority on structure, token schema, and lint rules |
references/awesome-design-md/<slug>/DESIGN.md | VoltAgent catalog: DESIGN.md files reverse-engineered from public product sites |
assets/DESIGN.template.md | Minimal valid starting file |
Paths are relative to this skill's directory. If a reference is missing, use the upstream instead: https://github.com/google-labs-code/design.md/blob/main/docs/spec.md and https://raw.githubusercontent.com/VoltAgent/awesome-design-md/main/design-md/<slug>/DESIGN.md.
references/design.md/spec.md (or run npx @google/design.md spec --rules) before writing tokens.| User intent | Mode |
|---|---|
| "Make a DESIGN.md", no existing file | Create |
| "Make it look like X", "pick a style" | Adopt (then Create or Update) |
| Change colors/type/components in the contract | Update |
| "Does this UI follow DESIGN.md?" / review UI | Audit |
| Build UI in a repo with DESIGN.md | Implement |
| Tailwind / CSS variables / design tokens file | Export |
references/design.md/spec.md. Copy assets/DESIGN.template.md to the repo root as DESIGN.md.colors (must include primary), typography, rounded, spacing, and components that reference other tokens via {colors.primary}-style references. Wire every color into at least one component, otherwise lint flags it as orphaned.grep -m1 '^description:' references/awesome-design-md/*/DESIGN.md to get a one-paragraph summary per product (most entries have one; for the rest, read the first ## Overview paragraph). Slugs are product names, e.g. linear.app, stripe, notion, vercel, apple.## Overview and ## Colors sections.diff against the baseline (see Validate) and report added, removed, and modified tokens and any regression.file:line → expected token → actual value, grouped by severity. Do not edit.Read DESIGN.md before writing UI. Use the project's token layer (CSS variables, Tailwind theme, or theme object) instead of literal values. If the task needs a value the contract lacks, stop and propose a contract update rather than inventing one silently.
npx @google/design.md export --format css-tailwind DESIGN.md > <tmp>/theme.css # Tailwind v4 @theme
npx @google/design.md export --format json-tailwind DESIGN.md > <tmp>/tailwind.json # Tailwind v3 theme.extend
npx @google/design.md export --format dtcg DESIGN.md > <tmp>/tokens.json # W3C design tokens
Export to a temp path first, inspect it, then move it over the project file only when that replacement was authorized.
npx @google/design.md lint DESIGN.md # exit 1 on errors
npx @google/design.md diff before.DESIGN.md DESIGN.md # exit 1 on regression
npx @google/design.md spec --rules # current rules, if unsure
npx -p @google/design.md designmd lint DESIGN.md. The .md in the binary name collides with the file association.package.json has one. Don't add a dependency just to lint.broken-ref, duplicate sections or keys) must be fixed. Warnings (missing-primary, contrast-ratio, orphaned-tokens) must be fixed or explicitly justified.End with: what changed in DESIGN.md (or the audit findings), the lint summary (errors, warnings), which catalog references were adopted, if any, and anything left unverified.
agents/openai.yaml (opens in a new tab)assets/DESIGN.template.md (opens in a new tab)references/awesome-design-md/1win/DESIGN.md (opens in a new tab)references/awesome-design-md/LICENSE (opens in a new tab)references/awesome-design-md/airbnb/DESIGN.md (opens in a new tab)references/awesome-design-md/airtable/DESIGN.md (opens in a new tab)references/awesome-design-md/algolia/DESIGN.md (opens in a new tab)references/awesome-design-md/aljazeera/DESIGN.md (opens in a new tab)references/awesome-design-md/anthropic/DESIGN.md (opens in a new tab)references/awesome-design-md/apple/DESIGN.md (opens in a new tab)references/awesome-design-md/arc/DESIGN.md (opens in a new tab)references/awesome-design-md/basecamp/DESIGN.md (opens in a new tab)references/awesome-design-md/binance/DESIGN.md (opens in a new tab)references/awesome-design-md/bitbucket/DESIGN.md (opens in a new tab)references/awesome-design-md/bmw-m/DESIGN.md (opens in a new tab)references/awesome-design-md/bmw/DESIGN.md (opens in a new tab)references/awesome-design-md/bugatti/DESIGN.md (opens in a new tab)references/awesome-design-md/cal/DESIGN.md (opens in a new tab)references/awesome-design-md/character/DESIGN.md (opens in a new tab)references/awesome-design-md/chase/DESIGN.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub draco-china/skills --plugin draco-skills10 skills in this plugin
/archifyCreate validated architecture, workflow, sequence, data-flow, lifecycle/state, ERD, class, tree, timeline, and waterfall diagrams as explorable standalone HTML with dark/light themes, motion and image/SVG/WebM export. Accept requirements or Mermaid and trace repository evidence for code-backed diagrams. Use when visualizing systems, API calls, pipelines, schemas, histories, timings, or everyday steps and relationships. Investigate repository architecture, coupling and refactoring scope with Code Analysis. Add guided stories and video to native diagrams. For page or explainer requests (做成一页, 用页面讲), turn the answer into a one-page Explainer with the conclusion first, structured panels, native diagrams and charts. By default, briefly offer a page for a complex flow, diagnosis, comparison or test/review report and generate only on request. Set [archify explainer: on-demand] to silence offers or [archify explainer: proactive] to generate for eligible answers unasked. Not for dashboards./brooks-auditArchitecture audit that maps module dependencies, checks layering integrity, and flags structural decay across a codebase, drawing on twelve classic engineering books. Triggers when: user asks to audit architecture, review folder/module structure, check for circular imports, understand how the codebase is organized, or asks "does this follow clean architecture?" or "why does everything depend on everything?". Also triggers for onboarding requests: "explain this codebase to a new developer" or "give me a codebase tour" (use onboarding mode). Do NOT trigger for: PR-level code review (use brooks-review) or line-level refactoring questions — this skill analyzes structural/module-level concerns, not individual functions.
/brooks-debtTech debt assessment that identifies, classifies, and prioritizes maintainability problems — helping teams build a refactoring roadmap — drawing on twelve classic engineering books. Triggers when: user asks about tech debt, refactoring priorities, what to clean up first, or asks "why is this so hard to change?", "what should we fix first?", or "how do I justify refactoring to management?". Do NOT trigger for: server health checks, HTTP /health endpoints, Kubernetes probes, database health, or application uptime — "health" in those contexts is infrastructure, not code quality. Also not for single-function refactoring questions.
/brooks-healthCombined codebase health dashboard that scores a project across all four quality dimensions — PR quality, architecture, tech debt, and test quality — in a single pass, drawing on twelve classic engineering books. Triggers when: user wants an overall quality assessment, asks "how healthy is this codebase?", "run all the checks", "I need a health score before the release", or wants to onboard a new team with a quality overview. Do NOT trigger for: server health checks, HTTP health endpoints, Kubernetes liveness/readiness probes, database health, or application uptime. Also do not trigger when the user specifically requests only one dimension — use the corresponding focused skill instead (brooks-review / brooks-audit / brooks-debt / brooks-test).
/brooks-reviewPR code review that surfaces decay risks, design smells, and maintainability issues with concrete Symptom → Source → Consequence → Remedy findings, drawing on twelve classic engineering books. Triggers when: user asks to review code, check a PR, shares a diff or pastes code asking "does this look right?" / "any issues here?" / "ready to merge?", or asks for feedback on a function, class, or file. Also triggers when user mentions: code smells / refactoring / clean architecture / DDD / SOLID principles / Hyrum's Law / deep modules / tactical programming / conceptual integrity / Brooks's Law / Mythical Man-Month / second system effect. Do NOT trigger for: questions about how to write code from scratch, language syntax questions, framework/tool questions where no existing code is shared, or a standalone request to formally verify a function against a stated contract.
/brooks-sweepFull-sweep mode: runs a unified analysis across all quality dimensions — code decay, architecture, tech debt, and test quality — then applies fixes directly to the codebase. Safe changes are auto-applied; risky changes are confirmed before execution. Drawing on twelve classic engineering books. Triggers when: user wants to "fix everything", "sweep the codebase", "auto-fix all issues", "clean up the whole project", or asks for a single command that both diagnoses and remediates quality problems. Do NOT trigger for: read-only audits or health reports where the user only wants findings without code changes; single-dimension reviews (use the focused skill instead: brooks-review / brooks-audit / brooks-debt / brooks-test); server health checks, HTTP /health endpoints, Kubernetes probes, database health, or application uptime.