/synthex:design-system-audit/synthex:design-system-audit has the Design System Agent check your frontend
against your design system spec: hardcoded values that should be tokens, wrong component usage, and
accessibility violations. It's advisory — it never edits files.
Loads config for the spec path, scan paths, and review-loop settings.
Reads the design system spec — tokens (colors, spacing, typography, breakpoints), the
component catalog, and the pattern library. If there's no spec, it stops and offers ways to
create one (have the Design System Agent generate one from your code, write it yourself, or
point design_system.spec_path elsewhere) instead of producing an empty audit.
Collects files from scope, or from design_system.scan_paths when no scope is given,
keeping only frontend files: .tsx, .jsx, .vue, .svelte, .css, .scss, .less,
.module.css.
Runs the Design System Agent in Compliance Review mode with the spec, the file list, and
your CLAUDE.md.
Compliance loop. On a FAIL verdict (any CRITICAL or HIGH finding) it presents what
must be fixed and waits for you to make the changes. Then it spawns a fresh Design System
Agent to re-audit, passing only a one-line summary of each unresolved finding. It repeats
until the verdict is PASS or WARN, or max_cycles is reached. WARN (MEDIUM-only) never
triggers the loop.
Review-loop settings resolve from design_system.review_loops first, then the global
review_loops, then the hardcoded defaults.
Output
A Design System Compliance Review with a PASS / WARN / FAIL verdict and:
Token Violations table — file:line, the violation, the current value (e.g. #3b82f6),
and the token it should be (e.g. var(--color-primary)). Every hardcoded value that has a
matching token is flagged.
Component Usage Issues — location, problem, and the design system component to use.
Accessibility Findings — severity, location, the specific WCAG 2.1 criterion, and the fix.
Recommendations.
The closing summary gives the verdict, files audited, counts of token violations, component
issues, and accessibility findings by severity, and the top three fixes.