/web-designer:design-system [--audit | --extend | --handoff] [focus or spec path]from web-designer
Build and maintain a product's interface guidelines, an internal HIG, by inferring the existing system from code and docs and then interviewing to settle every rule; also audit drift, extend the system, and hand off to engineering. Trigger with "design system", "design guidelines", "interface guidelines", "HIG", "document our design system", "design principles", "component library", "component docs", "when to use this component", "design tokens", "colour roles", "style guide", "audit our design system", "design drift", "add a component to the system", "handoff to engineering", "developer specs", "implementation notes", "design specs for developers", or requests to maintain consistency across designs or translate designs into implementation guidance. Flags --audit, --extend, and --handoff select the other actions. Use layout for page structure, design-review to evaluate a design, and frontend-design to build it.
Ships in web-designer. 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.
Produce and maintain the product's interface guidelines: the rules people and agents follow to decide which pattern to use, how it behaves, and what users can rely on. A component library provides building blocks; the guidelines decide which to use and why. Every pattern must answer: Why this pattern? What behaviour does it promise? How is that verified?
This skill owns principles, semantics, roles, governance and the guideline format. Other skills own generic defaults; name them when asking, never copy them:
--audit: compare the product with its guidelines and report.--extend: add one pattern or component to the guidelines.--handoff: turn a design into an implementation spec that cites the guidelines. If the request includes a .md path, write the spec there; otherwise reply in chat.A flag may appear anywhere in the request; any other text is the focus and scopes the action. Run one action per request: if two flags appear, ask which to run. For an unknown --flag, list the valid flags and ask.
Without a flag, a clear plain-language request still selects the action: "audit our design system" runs --audit, "add a date-range picker to the system" runs --extend, "write developer specs for this screen" runs --handoff. State the chosen action and its flag in the first line of the response. Anything else runs the default.
--extend with no focus asks what to extend, recommending the top Open item.
AGENTS.md or CLAUDE.md; docs/design/README.md; any other markdown guideline tree. Reuse whichever exists; otherwise use docs/design/.docs/glossary.md if it exists. Never write it.Locate and read.
Infer the system following inventory. Write the skeleton (README, page map, and every page that has an Inferred rule or Open item) before asking anything.
Show the gap map:
| Spine area | Confirmed | Inferred | Open | Pages missing required fields |
|---|
Interview along the spine in interview: context and principles → behavioural foundations → visual foundations → page and task patterns → components → governance. Skip Confirmed areas. A focus overrides the order.
After every answer, write the decision to its page before asking the next question.
Finish with the gap summary. Offer the agent pointer line once.
On a later run, rebuild the gap map from the pages alone and resume from the gaps. There is no state file.
Follow guidelines format. Each rule is one line plus Why, Evidence and Status:
**BTN-003 · Must not** use a Button for navigation. Instead, use Link.
- Why: Buttons act on the current page and links change location; assistive technology announces each role differently.
- Evidence: Accessibility · WAI-ARIA APG button pattern
- Status: Confirmed
## Guidelines Session: [date]
**Settled:** [rule IDs confirmed or written this session]
**Open:** | ID | Question | Owner |
**Missing required fields:** [page: fields]
**Next area:** [spine area, and the first question to ask]
--audit)governance.md defines.| Class | When |
|---|---|
| Defect | Violates a Requirement or Confirmed rule with no live exception, or relies on an expired exception |
| Sanctioned exception | A live register entry covers it |
| Drift: confirm or drop | Violates an Inferred rule |
| Rule gap | A recurring choice no rule covers, or competing treatments |
| Severity | Meaning |
|---|---|
| 🔴 Critical | Blocks or derails a primary task, blocks access for a disability group, or risks material harm; no reasonable workaround |
| 🟡 Major | Substantially impairs a task or causes serious confusion or repeated error; any workaround is burdensome |
| 🟢 Minor | Limited, local friction or isolated nonconformance that does not block the task |
Rate visual issues by their impact like any other. Report a rule's strength separately from severity. If governance.md defines another scale, use it.
## Design System Audit: [scope]
### Summary
**Findings:** [X] | **Critical:** [X] | **Major:** [X] | **Minor:** [X] | **Rule gaps:** [X]
### Findings
| Rule | Strength | Class | Severity | Layer | Evidence (path) | Root cause | Fix |
|---|---|---|---|---|---|---|---|
### Inventory
| Purpose | Treatment | Uses | Paths |
|---|---|---|---|
### Metrics
| Metric | Value | Decision rule triggered? |
|---|---|---|
### Proposed Guideline Edits (need approval)
1. [Confirm, drop, add or revise: rule ID and wording]
Layer is one of conceptual, navigational, structural, behavioural, state, visual or linguistic. Export findings to a tracker only with permission.
--extend)Interview one gap at a time:
Show the proposed page. On approval, write it with lifecycle Experimental and its rules Confirmed, then update the page map.
--handoff)Follow handoff. Read the guidelines first and cite rule IDs. List deviations as exception requests; a deviation from a Requirement is a fix, never an exception request. Never write feature specs into the guidelines.
--extend.--audit.--handoff.Treat every connector as read-only evidence:
references/governance-and-refactoring.md (opens in a new tab)references/guidelines-format.md (opens in a new tab)references/handoff.md (opens in a new tab)references/interview.md (opens in a new tab)references/inventory.md (opens in a new tab)references/tokens-and-foundations.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/design-reviewEvaluate existing designs and interfaces through expert critique or a WCAG 2.2 AA accessibility audit. Trigger with "what do you think of this design", "give me feedback on", "critique this", "review this mockup", "design feedback", "is this accessible", "accessibility check", "WCAG audit", "can screen readers use this", "color contrast", "accessibility audit", "is this ready to ship", or when a user shares a design and asks for opinions or asks to make it accessible to all users. Use for evaluating what exists; use layout to plan structure, design-system for system drift or component governance, and frontend-design for implementation./frontend-designCreate distinctive, production-grade web components, pages, applications, and landing-page designs. Trigger with requests to build frontend interfaces, "design a landing page", visual hierarchy, or visual design and implementation work. Use for visual design and implementation; use layout for page structure, wireframes, and surface choices, ux-copy when the deliverable is words or messaging, and design-review for broad review of an existing design.Other plugins' skills for the same job
/layoutPlan and review page layout, information structure, and interaction-surface choices for websites and web applications. Trigger with "lay out this page", "wireframe", "page structure", "information architecture", "navigation structure", "grid", "spacing", "responsive layout", "breakpoints", "dashboard layout", "form layout", "settings page", "list-detail", "modal or drawer", "modal or page", "which component should I use", "tabs or accordion", "table or cards", "pagination or infinite scroll", "landing page structure", "structure my homepage", "improve my page layout", "optimize my page for conversions", hero or above-the-fold layout, CTA placement, landing-page sections and content placement, or requests to make layouts and interactions consistent across screens. Use for structure and behavior decisions; use frontend-design to build the interface, ux-copy for the words, and design-review to evaluate an existing design.npx claudepluginhub jfa94/web-designer --plugin web-designer