Audits Bricks design system for unused classes, orphan references, inconsistent palettes, and theme styles. Reports issues grouped by severity with suggested fixes.
Ships in bricks. 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.
Use this skill when the user says things like "review my design system", "clean up unused classes", "why are my colors inconsistent", or "audit my design tokens". For a generic whole-site audit, use bricks-site-audit instead. The entry point here is bricks/audit-design-system: read-only, safe to run without approval.
If a
bricks/*ability is not available as a direct tool: first check whether it is outside the fast path and call it throughmcp-adapter-execute-abilitywithability_name: "bricks/<name>". If the dispatcher also rejects it, callbricks-list-ability-statusto check whether a site admin disabled it under Bricks > AI.
bricks/audit-design-system (scope: "all")
Scope options:
all: everything (default; may take a few seconds on large sites)orphans: errors only: elements referencing classes/variables/components that no longer existunused: resources with no references found in the scan; check coverage before calling them unusedtheme-styles: theme styles with no conditions (silently ignored)palettes: duplicate raw values + palette entries whose raw value does not contain a CSS variable referenceFor a fast check without scanning posts: skipPostScan: true (skips unused + orphans, keeps theme-styles + palettes).
Every issue has:
severity: error, warning, or infocategory: orphans, unused, theme-styles, or palettesresourceType + resourceId: what to fixmessage: what's wrongsuggestion: recommended action (not auto-applied)Present issues grouped by severity. Explain rendering errors first, then configuration warnings and cleanup suggestions.
When any fix requires creating or renaming a design resource, apply the rules from the bricks-design-systems skill (naming conventions, uniqueness constraints, shade generation).
_cssGlobalClasses on affected elements.var(--foo) but --foo isn't defined anywhere. The rule will fall back to nothing (transparent, inherit, etc.) and render wrong. Fix path: create the variable, or rewrite the reference."cid":"..." points at a component that no longer exists. The builder shows a missing-component placeholder. Fix path: on Bricks 2.5+, restore the deleted component from global data revisions after user approval; otherwise recreate the component with the original id (rare, usually requires a backup) or use update-element / set-page-elements to remove the stale instance.conditions: [{ main: "any" }]) or they abandoned it mid-config. Ask which.raw: the color can still work, but it is only referenced by its stored value. If the site uses tokenized colors, set raw to a CSS variable reference such as var(--brand-primary). Leave literal values alone when that is intentional.For a review request, report findings and proposed repairs without mutating. For an authorized cleanup/fix request, apply a coherent batch within that scope; do not ask for approval again for every item. Clarify only unresolved intent, affected resources or destructive choices not covered by the request.
camelCase / kebab-case / snake_case across classes or variables. The audit does not check naming conventions. Scan list-global-classes / list-global-variables manually if the user asks..btn and .button are both used, defining similar styles. The audit can't infer intent. Suggest merging if you see it.list-global-variables and check for numeric/t-shirt continuity.get-design-context is empty): there's nothing to audit. Use the bricks-seed-design-system skill instead.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/bricks:bricks-audit-design-systemfrom bricks
npx claudepluginhub codeerhq/bricks-skills --plugin bricks46 skills in this plugin
/bricks-agent-repositoryHandle complex existing-site Bricks edits through advertised repository/workspace workflows when focused abilities cannot express the change./bricks-ai-tabDiagnose Bricks AI connection setup, ability toggles, dispatcher availability and disabled actions. Use for connection/availability problems./bricks-breakpointsRead or change Bricks responsive breakpoint definitions. Use for breakpoint configuration, not ordinary element styling at an existing breakpoint.Other plugins' skills for the same job