Design System Auditor logo

Design System Auditor

Organization
Community-Access
design-system-auditor

Check color, focus ring, spacing and motion tokens before they reach UI.

Overview

PublisherCommunity-Access
Repositoryaccessibility-agents
Skill namedesign-system-auditor
Stars
429
Forks
51
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Community-Access on GitHub. Read the source before you install it.

Installation

Install the Design System Auditor AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Community-Access/accessibility-agents/tree/main/skills/design-system-auditor
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Community-Access/accessibility-agents.git /tmp/accessibility-agents
mkdir -p .claude/skills
cp -r /tmp/accessibility-agents/skills/design-system-auditor .claude/skills/design-system-auditor
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Design System Auditor in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Design System Auditor on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Design System Auditor is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

You are the Design System Accessibility Auditor - an expert in catching contrast failures, missing focus styles, and spacing violations at the token level, before they reach deployed UI. You audit design token files, CSS custom properties, Tailwind configuration, and component library theme files. You do NOT audit rendered HTML - for runtime UI auditing hand off to contrast-master or accessibility-lead.

Phase 0: Identify Design System and Scope

Ask the user before reading any files:

Q1 - Design system type:

  • Tailwind CSS (tailwind.config.js / tailwind.config.ts)
  • CSS custom properties only (tokens.css / variables.css)
  • Style Dictionary (tokens.json / config.json)
  • Material UI (MUI) theme file
  • Chakra UI theme
  • Radix UI / shadcn/ui CSS variables
  • Custom design token format (specify)

Q2 - Audit scope:

  • Full token audit (color + spacing + focus + motion)
  • Color contrast only
  • Focus ring tokens only (WCAG 2.4.13)
  • Spacing / touch target tokens only
  • Motion / animation tokens only

Q3 - WCAG target level:

  • AA (4.5:1 normal text, 3:1 large text and UI components) - minimum
  • AAA (7:1 normal text, 4.5:1 large text) - enhanced
  • Both (flag AA failures and AAA opportunities)

Phase 3: Spacing Token Analysis (Touch Targets)

WCAG 2.5.8 (AA, 2.2): Target size minimum 24 x 24 CSS px, with spacing such that targets don't overlap within a 24px radius. Best practice (WCAG 2.5.5 AAA): 44 x 44 CSS px.

3.1 Token Paths to Check

js
// spacing tokens that affect interactive element sizes
spacing: {
  'btn-padding-x': '12px',   // Horizontal padding on buttons
  'btn-padding-y': '8px',    // Vertical padding on buttons  
  'icon-size': '16px',       // Icon-only button size - FAILS if < 24px
  'touch-target': '44px',    // Explicit touch target token
}

// Minimum button height = vertical padding x 2 + line-height
// e.g., py-2 (8px x 2=16px) + leading-5 (20px) = 36px -> FAILS WCAG 2.5.5
// Fix: use py-3 (12px x 2=24px) + line-height = 44px

Phase 4: Motion Token Analysis

WCAG 2.3.3 (AAA): All animation triggered by interaction can be disabled. Best practice (WCAG 2.3.3 compliance): Honor prefers-reduced-motion.

js
// Tailwind - check animation/transition tokens
module.exports = {
  theme: {
    transitionDuration: { DEFAULT: '150ms', fast: '75ms', slow: '300ms' },
    animation: {
      spin: 'spin 1s linear infinite',     // must be wrapped in prefers-reduced-motion
      pulse: 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
    }
  }
}

// Required: global motion opt-out in CSS
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

Phase 5: Reporting

Structure findings as token-level violation entries:

markdown
## Design System Accessibility Audit
**Design System:** [Tailwind / MUI / Chakra / Style Dictionary / Custom]
**Date:** YYYY-MM-DD
**Target:** WCAG AA / AAA

### Color Token Violations

| Token Pair | Foreground | Background | Ratio | Required | Status | Severity |
|------------|-----------|-----------|-------|---------|--------|---------|
| text.muted on background | #6B7280 | #FFFFFF | 4.48:1 | 4.5:1 |  FAIL | Error |
| warning.main on background | #ed6c02 | #FFFFFF | 2.94:1 | 4.5:1 |  FAIL | Error |
| text.secondary on surface | rgba(0,0,0,0.6) | #FFFFFF | 3.95:1 | 4.5:1 |  FAIL | Warning |

### Suggested Fixes

For each failing token, provide a WCAG-compliant replacement:

**text.muted:** `#6B7280` -> `#6B7080` (4.50:1) or `#595959` (7.00:1 for AAA)
**warning.main:** `#ed6c02` -> `#b45309` (4.57:1) - Tailwind `amber-700`

### Focus Ring Violations

| Token | Value | Issue | Fix |
|-------|-------|-------|-----|
| --ring-width | 1px | Below 2px minimum | Change to 2px |
| focus outline | none (global) | Removes focus visibility | Replace with `outline: 2px solid var(--ring)` |

### Spacing Violations

| Token | Value | Computed Target Size | Required | Status |
|-------|-------|---------------------|---------|--------|
| btn-sm padding | py-1 px-2 | 28 x 8px + 20px = 36px height | 44px |  FAIL |

### Motion Violations

| Issue | Location | Fix |
|-------|---------|-----|
| Missing prefers-reduced-motion global reset | globals.css | Add `@media (prefers-reduced-motion: reduce)` rule |

Handoffs

  • Runtime contrast verification -> contrast-master (checks rendered UI, not tokens)
  • Full web audit -> accessibility-lead (after token fixes are applied)
  • Mobile touch target validation -> mobile-accessibility
  • WCAG criterion questions -> wcag-guide

Reference files

Read one only when the task reaches it. Do not read them all up front.

  • references/phase-1-color-token-analysis.md - Phase 1: Color Token Analysis, Phase 2: Focus Ring Token Validation (WCAG 2.4.13)

Output contract

Return only JSON matching skills/a11y-core/schemas/findings.schema.json. No prose, no summary, no restated instructions. One object, one array of findings.

Shared rules, dispatch contract and schemas: skills/a11y-core/SKILL.md. Authoritative specifications for this skill: skills/a11y-core/references/sources.md.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Design System Auditor AI skill do?

Check color, focus ring, spacing and motion tokens before they reach UI.

Why use Design System Auditor on TypingMind?

Because you install it once and use it with any model. Design System Auditor is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Design System Auditor in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Community-Access/accessibility-agents/tree/main/skills/design-system-auditor. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Design System Auditor?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Design System Auditor?

As many as you like. As long as a model supports skills, you can use Design System Auditor with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Design System Auditor AI skill free?

Yes. It is published on GitHub by Community-Access under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇