/design-system-ops:component-auditfrom design-system-ops
Audits a component library across usage, complexity, duplication, and coverage gaps. Produces inventory with tiered findings and prioritized action list.
Ships in design-system-ops. 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.
None: SKILL.md is the whole skill.
A skill for auditing a design system's component library across four dimensions: usage signals, complexity distribution, duplication, and coverage gaps. Produces an inventory with tiered findings and a prioritised action list.
Confirm that every path in this skill's frontmatter references: exists relative to this SKILL.md. If any is missing, stop: the install is incomplete, usually because a flattening installer (for example npx skills install) dropped the repo-root knowledge-notes/ directory. Tell the user to reinstall by a method in 1-INSTALL.md and run verify-install.sh from the install root. Proceed without the references only if the user explicitly says to, and then say in the output that it was produced without the pack's reference material.
Component libraries accumulate silently. New components arrive through contributions. Old components persist because nobody wants to be the one who removes them. Variants proliferate because each edge case adds one more. The result is a library that grows in mass without growing proportionally in value.
A component audit brings the library back into focus: what is there, what is used, what duplicates what, and what is missing that teams have been building around. It is the maintenance work that makes the next year of development faster.
If .ds-ops-config.yml exists, follow the configuration-and-recurring knowledge note (../../knowledge-notes/configuration-and-recurring.md) for loading, integration fallbacks and recurring runs. This skill reads:
system.framework — pre-selects framework-specific inventory guidancesystem.component_count — pre-populates the small-system gateseverity.* — finding severity overridesintegrations.* — component data sources (see below)recurring.* — comparison with the previous auditFigma MCP (integrations.figma.enabled: true):
integrations.figma.file_key via Figma MCPnpm registry (integrations.npm.enabled: true):
integrations.npm.package_name (or each package in integrations.npm.scoped_packages for monorepos) using npm view [package] --json or the npm registry APIStorybook (integrations.storybook.enabled: true):
integrations.storybook.url/index.jsonGitHub (integrations.github.enabled: true):
gh api search/code to find consuming repositories that import each component, then read or clone those repos to count (see the note's GitHub caution)Documentation platform (integrations.documentation.enabled: true):
zeroheight: use the Zeroheight API to pull page list and last-updated dates per componentsupernova: use the Supernova API to pull component documentation coveragestorybook: same as Storybook integration above (docs tab status)Before auditing components, determine what kind of shared UI this is. The library type changes which dimensions matter and how findings should be framed.
Classify from codebase signals:
Include the classification in the report header as "Library type: [Design system / Component library / Pattern library / Utility collection]" and skip dimensions that don't apply.
Ask for or confirm (skip questions already answered by auto-pull):
.vue), Twig/Fractal (.twig), Svelte (.svelte), or Web ComponentsIf usage data is not available, the audit focuses on structural assessment rather than usage analysis. Note in the output which findings are based on direct analysis and which are inferred from structure.
Small-system note (fewer than 5 components): With 1–4 components, the audit shifts from pattern detection to per-component deep dive. Skip complexity distribution analysis (Step 3, Dimension 2) — it is not meaningful at this scale. Instead, focus on: completeness of each component's API and state coverage, documentation status per component, and whether the system covers the team's highest-frequency needs. The coverage gaps dimension (Step 3, Dimension 4) becomes the most valuable — what common patterns are teams building locally because the system does not yet provide them? The answer to that question is the system's roadmap.
Don't ask the user to choose signals; record which ones are actually in reach, then say what the usage assessment can and can't claim:
If none is in reach, the audit is structural: every component's usage status is "Unknown", the report says so once at the top, and Dimension 1 is skipped rather than filled with inference. If no component source, Figma library or Storybook index is in reach either, stop and ask where the components live; an inventory can't be built from a description.
Monorepo handling:
Monorepo structures break standard usage signals. A component published as @system/button in its own package may show high npm downloads while @system/date-picker shows low — but the download count reflects bundling behaviour, not actual component usage by teams. Apply these adjustments:
-next or -v2 suffixes (e.g. button-next, DataTableV2) indicate in-flight migrations. Count both versions but flag the pair — the older version is a deprecation candidate, the newer is not yet fully adopted. Neither version's usage number is accurate in isolation._InternalBase, _LayoutHelper), components in directories named internal/, private/, or utils/, and components not re-exported from the package's public barrel file (index.ts) are internal implementation details. Exclude them from the public component count and from coverage gap analysis. Count them separately as "internal utilities."Box, Stack, Flex, Grid, VisuallyHidden, Portal) are infrastructure components, not user-facing UI. They should be counted in the inventory but categorised separately. A library with 30 components where 15 are layout utilities and 15 are UI components has a different health profile than one with 30 UI components.Framework-specific inventory notes:
.vue file in the components directory is typically one component. Check for <script setup> vs Options API — mixed patterns across the library are a consistency finding.01-atoms/, 02-molecules/, 03-organisms/). The Fractal config (fractal.config.js) defines the component engine and paths. Each .twig file with an associated .config.yml or .config.js is a component.Component.tsx + styles.ts). Count by exported component, not by file. Monorepo packages like @system/core may contain dozens of components in subdirectories.Create a working inventory of all components:
If the inventory does not yet exist, building it is Step 1 of the audit and may be the most valuable output in its own right.
Assess what usage data is available and what it suggests.
Direct signals (if available):
Indirect signals (structural inference):
For each component, assign a usage status: Actively used / Likely used / Unknown / Likely unused / Confirmed unused
"Confirmed unused" needs two things: a positive control (the same import search finds a component you know is used, including aliased and namespace imports), and coverage of every consuming repo — or usage data that spans them. If either is missing, the ceiling is "Likely unused", and the report says which consumers weren't checked. A design system repo with no in-repo consumers of a public component tells you nothing about product usage.
Flag all "Likely unused" and "Confirmed unused" for the action list.
Assess the distribution of component complexity across the library.
Foundational components — primitives that serve as building blocks. Buttons, inputs, checkboxes, typography elements, icons. These should make up the largest portion of the library.
Compound components — compositions of foundational components. Cards, modals, dropdowns, navigation bars. These should be fewer than foundational components.
Feature components — components with significant built-in logic or high specificity to a particular product context. These are the category most likely to proliferate and least likely to be reusable.
Report the count at each level. Then flag, with the numbers:
Find components that solve the same problem with different implementations.
Look for:
Toast, Snackbar, and Alert all in the same system without clear distinctions)Modal and Dialog, Popover and Tooltip — flag these for disambiguation even if they are genuinely distinct, because the distinction needs to be explicit)For each duplication finding: describe what overlaps, note whether the components are genuinely distinct or redundant, and recommend either documenting the distinction or deprecating the redundant one.
For each potential duplication finding, use this worksheet to make the decision systematically:
For each pair of overlapping components (Component A and Component B):
Problem definition:
If the problems are the same:
If the problems are different:
In the audit output, give only the decision per pair and the one or two reasons that decided it — not the worksheet itself.
Identify common patterns that teams regularly need but the system does not provide.
Sources for gap identification:
For each gap: assess whether it is a genuine system gap (the need is common enough to belong in the system) or a local need (one team's requirement that is appropriately local).
Coverage gaps identified in this dimension often correspond to Classification E (system gap) findings in drift-detection. If running both skills in the same session:
This connection improves prioritisation — gaps with drift evidence indicate teams are already solving the problem locally, which raises the urgency of system provision.
Build a dependency graph of component composition relationships. This is the blast-radius view for component changes.
Where the graph comes from. codebase-index is the graph's only producer; it writes uses/usedBy edges and token bindings to .ai/index/ with the commit they were computed at. If .ai/index/ exists and its commit matches HEAD, read it. If it's missing or stale, run codebase-index first (it is read-only and quick) and then read it. Don't build a second graph by hand here: two graphs built two ways disagree, and the reader can't tell which to trust. When the codebase isn't accessible at all (Figma-only or a manual inventory), say so, skip this step, and list it under "Not inspected". What this step adds is the analysis below.
For each component, identify:
Card composes Text, Button, Icon)Icon is composed in Button, Card, NavItem, Alert)Identify critical path components:
Token-to-component dependency:
Answering "if I change X, what breaks?" The graph should be queryable. For any component or token, the report should make it possible to trace: (1) direct consumers — components that import/compose this component, (2) indirect consumers — components that compose the direct consumers, and (3) product-level impact — if integration data is available, which products/teams are affected. Example: "Changing Icon directly affects 14 components (Button, Card, NavItem, Alert, ...). Indirectly affects 23 components through Button alone. Products affected: Checkout (12 Icon instances), Dashboard (34 instances), Mobile (8 instances)."
Include the composition graph as a section in the report. For systems with 20+ components, produce a summarised version (top 10 highest fan-in, all hub components, standalone components) with the full graph available as a supplementary output.
Neither is assessed here. AI readiness is system-health's sixth dimension, judged against the six-dimension checklist in the ai-readiness note; the maturity stage is inferred by system-health from evidence across all dimensions. If a system-health report exists, cite its AI-readiness status and stage in the summary. If not, list both under "Not inspected" and suggest system-health. One audit judging one slice of the system with a different yardstick is how the two reports came to disagree.
This audit doesn't assign a maturity stage — one dimension of the system isn't enough evidence. If the user asks, point them to system-health, which infers the stage from evidence across all dimensions.
Open with a headline sentence that tells the reader the overall state and where to focus.
Date: [date] Library type: [Design system / Component library / Pattern library / Utility collection] Library size: [total component count, public and internal counted separately] Audit method: [direct inspection / structural inference / combined] Usage signals used: [from Step 1b]
One paragraph. What is the library's overall condition? What is the most significant finding across the four dimensions?
| Category | Count | Actively used | Unknown | Likely/confirmed unused |
|---|---|---|---|---|
| Navigation | ||||
| Forms | ||||
| Feedback | ||||
| Layout | ||||
| Data display | ||||
| Other | ||||
| Total |
Findings formatted as: ID, severity, component or category, evidence (the export's file and line, or the component directory, plus the import count or signal the finding rests on), finding description, recommended action. For duplication, give the decision per pair (Step 3, Dimension 3).
Severity rubric:
A finding with no evidence column isn't a finding; it goes under "Not inspected" with what would be needed.
Top 10 by fan-in, hub components, standalone components, and shared token hotspots (Step 3b). State the method used to build the graph. Full graph as a supplementary output for 20+ components.
One line: cited from a system-health report if one exists, otherwise "not inspected here; run system-health".
Prioritised:
Immediate:
Planned:
Review:
Scope
End with the closing note below.
End the report with:
A note on context: This audit sees your component library — it does not see the product decisions, team constraints, or historical context behind it. Some findings may flag patterns your team chose deliberately. If any finding describes an intentional decision, let me know — I'll exclude it from future runs and learn your system's conventions. The goal is to surface problems you haven't seen yet, not to second-guess choices you've already made.
What SKILL.md sets; muted values are Claude Code's defaults
36 skills in this plugin
/accessibility-per-componentAudit one design system component's accessibility against WCAG 2.2 AA: keyboard, screen reader, contrast, focus, ARIA, target size. Trigger: a11y audit, is this accessible, WCAG check, screen reader support, keyboard navigation check. Not for page- or product-wide audits./adoption-reportAdoption report: coverage (what the system provides), reach (teams with access) and adoption (teams shipping with it), design vs engineering, trend and at-risk teams. Triggers: adoption report, usage metrics, which teams use the system. Not docs coverage — use docs-coverage./agent-instructionsWrite the AGENTS.md that tells coding agents how to use this design system: where things live, sourced rules, how to check work, what not to do; Claude, Cursor or Copilot pointers on request. Triggers: AGENTS.md for our system, make it AI-navigable, agent instructions. Inventory: codebase-index./ai-component-descriptionWrite a six-section prose description (purpose, props, anti-patterns, composition, accessibility, examples) for a Figma component's description field so LLMs read it via MCP. Triggers: describe this component for AI, Figma MCP description. JSON metadata files: use metadata-schema-generator./backlog-generatorTurn existing audit findings into sprint-ready tickets with T-shirt estimates, acceptance criteria, dependencies and phases. Triggers: tickets from audit, backlog from findings, sprint planning from report. Not for the contribution process (contribution-workflow)./change-communicationWrite release notes, a migration guide and a team announcement for a design system change that is already decided, scaled to its impact. Triggers: release notes, announce this change, tell teams about a breaking change. Semver call: version-bump-advisor. Deprecation plan: deprecation-process.Generated from the plugin's indexed repository (murphytrueman/design-system-ops) — no native marketplace selected
npx claudepluginhub p/murphytrueman-design-system-ops2 plugins ship this exact skill · first indexed Sep 25, 2026
Other plugins' skills for the same job