design-system · affaan-m — Claude Code skill: tokens and UI audit
Builds a design system out of the styles already in your repo, or audits them: tokens, a ten-point UI score, and a check for generic AI styling.
npx skills add affaan-m/ECC --skill design-system -a claude-codeWhat design-system does
The skill reads the styles you already have. It scans CSS, Tailwind and styled-components, then pulls colors, type, spacing, radii, shadows and breakpoints into design-tokens.json and CSS custom properties. Two more files come with it: DESIGN.md explaining why each decision was made, and design-preview.html, a self-contained page for looking at the tokens without installing anything.
Audit mode scores the UI from 0 to 10 on ten dimensions: color consistency, type hierarchy, spacing rhythm, component consistency, responsive behavior, dark mode, animation, accessibility, information density, polish. Every score comes with an example and a fix pointing at a file:line. A third mode flags patterns that give away generated design: gradients with no reason, the purple-to-blue default, glassmorphism cards doing no job, rounding on things that should stay square, animation on scroll that earns nothing.
Install is the usual skill command. Competitor research in generate mode needs a browser MCP server; skip it and the rest still runs off your own codebase. Worth adding when styling grew by accident and nobody remembers where the fourth shade of grey came from. If one person owns a finished style guide, it adds little.
What it helps with
- extract colors and type from CSS into named tokens
- audit visual consistency before a redesign
- catch stray hex values that bypass the palette
- check whether dark mode is finished
- strip generic AI styling out of a layout
Example prompts for the agent
- Generate a design system from this repo with a minimal style and earth-tone palette.
- /design-system audit --pages / /pricing /docs
- Run a slop check and point out the generic AI patterns in the styling.
How to install design-system
1Skills CLI (Vercel)
npx skills add affaan-m/ECC --skill design-system -a claude-code2Manually: put the files in place
~/.claude/skills/design-system/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/design-system/
1Skills CLI (Vercel)
npx skills add affaan-m/ECC --skill design-system -a codex2Manually: put the files in place
.agents/skills/design-system/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add affaan-m/ECC --skill design-system -a cursor2Manually: put the files in place
.cursor/skills/design-system/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install affaan-m/ECC design-system2Manually: put the files in place
.github/skills/design-system/SKILL.md1Skills CLI (Vercel)
npx skills add affaan-m/ECC --skill design-system -a gemini-cli2Platform CLI
gemini skills install https://github.com/affaan-m/ECC --path skills/design-systemManually: put the files in place
.devin/skills/design-system/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add affaan-m/ECC --skill design-system -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set146
The whole set →Other versions of design-system
Similar
Questions about design-system
How do I install design-system in Claude Code?
Run npx skills add affaan-m/ECC --skill design-system -a claude-code. The skill lands in ~/.claude/skills/design-system/SKILL.md. For Codex, Cursor or OpenCode only the -a flag changes.
What does design-system do?
It either generates a design system from your codebase or audits an existing UI across ten dimensions, each scored from 0 to 10. You get tokens in JSON, CSS custom properties, DESIGN.md and an HTML preview.
What do I need for generate mode?
A browser MCP server if you want the competitor research step to run. Token extraction and pattern scanning work on your own repository without it.
Source text
SKILL.md · MIT
--- name: design-system description: "Generate a design system from an existing codebase or audit one for visual consistency: extract tokens (colors, typography, spacing, shadows) into design-tokens.json and CSS custom properties with DESIGN.md rationale and an interactive HTML preview, score the UI across 10 dimensions, and flag AI-slop patterns. Use when starting a design system, auditing visual consistency before a redesign, or reviewing a PR that touches styling." metadata: origin: ECC --- # Design System — Generate & Audit Visual Systems ## When to Use - Starting a new project that needs a design system - Auditing an existing codebase for visual consistency - Before a redesign — understand what you have - When the UI looks "off" but you can't pinpoint why - Reviewing PRs that touch styling ## How It Works ### Mode 1: Generate Design System Analyzes your codebase and generates a cohesive design system: ``` 1. Scan CSS/Tailwind/styled-components for existing patterns 2. Extract: colors, typography, spacing, border-radius, shadows, breakpoints 3. Research 3 competitor sites for inspiration (via browser MCP) 4. Propose a design token set (JSON + CSS custom properties) 5. Generate DESIGN.md with rationale for each decision 6. Create an interactive HTML preview page (self-contained, no deps) ``` Output: `DESIGN.md` + `design-tokens.json` + `design-preview.html` ### Mode 2: Visual Audit Scores your UI across 10 dimensions (0-10 each): ``` 1. Color consistency — are you using your palette or random hex values? 2. Typography hierarchy — clear h1 > h2 > h3 > body > caption? 3. Spacing rhythm — consistent scale (4px/8px/16px) or arbitrary? 4. Component consistency — do similar elements look similar? 5. Responsive behavior — fluid or broken at breakpoints? 6. Dark mode — complete or half-done? 7. Animation — purposeful or gratuitous? 8. Accessibility — contrast ratios, focus states, touch targets 9. Information density — cluttered or clean? 10. Polish — hover states, transitions, loading states, empty states ``` Each dimension gets a score, specific examples, and a fix with exact file:line. ### Mode 3: AI Slop Detection Identifies generic AI-generated design patterns: ``` - Gratuitous gradients on everything - Purple-to-blue defaults - "Glass morphism" cards with no purpose - Rounded corners on things that shouldn't be rounded - Excessive animations on scroll - Generic hero with centered text over stock gradient - Sans-serif font stack with no personality ``` ## Examples **Generate for a SaaS app:** ``` /design-system generate --style minimal --palette earth-tones ``` **Audit existing UI:** ``` /design-system audit --url http://localhost:3000 --pages / /pricing /docs ``` **Check for AI slop:** ``` /design-system slop-check ```
© affaan-m · MIT · affaan-m/ECC