Skip to main content

/jaan-to:detect-design

Detect real design system in code with drift findings and evidence blocks.


What It Does

Scans the repository for design system signals: brand definitions, design tokens (JSON, CSS variables, Tailwind config), component libraries, UI patterns, accessibility implementation, and governance processes. Identifies drift between token definitions and actual usage with paired evidence.


Usage

/jaan-to:detect-design
ArgumentRequiredDescription
repoNoTarget repository (defaults to current)

Output

FileContent
docs/current/design/brand.mdBrand signals (colors, typography, logos, font loading)
docs/current/design/tokens.mdDesign token inventory with drift findings
docs/current/design/components.mdComponent inventory (primitives, layout, navigation, feedback, data display, form)
docs/current/design/patterns.mdUI patterns, spacing scales, dark mode, theme switching
docs/current/design/accessibility.mdA11y implementation findings (ARIA, semantic HTML, a11y tests)
docs/current/design/governance.mdDesign system governance (CODEOWNERS, versioning, visual regression testing)

What It Scans

CategoryPatterns
Tokens**/tokens/**/*.{json,js,ts}, tailwind.config.*, **/theme.{js,ts,json}, **/*.tokens.json
CSS variables**/*.{css,scss,less} with -- prefix
Components**/components/**/*.{tsx,jsx,vue,svelte}
Storybook.storybook/**, **/*.stories.{tsx,jsx,ts,js,mdx}
Brand assets**/assets/brand/**, font configs, logo assets
GovernanceCODEOWNERS, changelogs, Chromatic/Percy/Backstop configs

Key Points

  • Evidence IDs use namespace E-DSN-NNN (prevents collisions in pack-detect aggregation)
  • Drift detection requires paired evidence per finding: token definition (E-DSN-001a) + conflicting usage (E-DSN-001b)
  • Token categories: colors, typography, spacing, shadows, border radius, breakpoints, animation
  • Component classification: primitives, layout, navigation, feedback, data display, form
  • Accessibility findings scoped to repo evidence only — use "Unknown" for runtime behavior
  • Governance signals: CODEOWNERS, design system changelogs, Storybook deployment, visual regression testing
  • 4-level confidence: Confirmed / Firm / Tentative / Uncertain

Back to Detect Skills | Back to All Skills