design-system
affaan-m/everything-claude-code
Generate, audit, and maintain cohesive design systems; detect visual inconsistencies and AI-generated design patterns.
What is design-system?
This skill analyzes your codebase to generate design systems from scratch, audits existing UIs for visual consistency across 10 dimensions, and identifies generic AI-generated design patterns. Use it when starting a new project, redesigning, or troubleshooting why your UI feels off.
- Generate design token sets (JSON + CSS custom properties) by scanning existing CSS/Tailwind/styled-components patterns
- Audit UIs across 10 dimensions (color consistency, typography, spacing, responsiveness, accessibility, etc.) with specific file:line fixes
- Extract and document design decisions with rationale in DESIGN.md
- Create interactive HTML preview pages for design tokens
- Detect AI-generated design patterns (gratuitous gradients, glass morphism, excessive animations, etc.)
- Research competitor sites for design inspiration via browser integration
How to install design-system
npx skills add https://github.com/affaan-m/everything-claude-code --skill design-systemHow to use design-system
- 1.Run `/design-system generate --style [minimal|modern|bold] --palette [color-theme]` to create a new design system from your codebase
- 2.Run `/design-system audit --url [localhost:port] --pages [list of routes]` to score your UI across 10 consistency dimensions
- 3.Run `/design-system slop-check` to identify generic AI-generated design patterns in your codebase
- 4.Review the generated DESIGN.md, design-tokens.json, and design-preview.html outputs
- 5.Apply specific fixes listed in the audit report with exact file and line references
Use cases
- Starting a new project and need a cohesive design system foundation
- Auditing an existing codebase to identify visual inconsistencies and accessibility gaps
- Reviewing PRs that touch styling to ensure they align with design standards
- Understanding what design patterns exist before a major redesign
- Detecting and removing generic AI-generated design elements from your UI
- Product designers and design systems leads
- Frontend engineers building or maintaining design systems
- Teams doing UI audits or redesigns
- Developers reviewing style-related pull requests
design-system FAQ
10 dimensions: color consistency, typography hierarchy, spacing rhythm, component consistency, responsive behavior, dark mode completeness, animation purposefulness, accessibility (contrast/focus/touch targets), information density, and polish (hover/transitions/loading/empty states).
Yes. Mode 2 (Visual Audit) analyzes any codebase. Mode 1 (Generate) scans existing CSS/Tailwind/styled-components to extract and formalize patterns.
Three files: DESIGN.md (rationale for each decision), design-tokens.json (structured tokens), and design-preview.html (interactive self-contained preview).
It identifies common generic patterns like gratuitous gradients, purple-to-blue defaults, glass morphism with no purpose, excessive animations, and stock hero sections.
For audit mode, yes—it needs a URL to analyze. For generate mode, it scans your source files directly.
Full instructions (SKILL.md)
Source of truth, from affaan-m/everything-claude-code.
name: design-system description: Use this skill to generate or audit design systems, check visual consistency, and review PRs that touch 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
Related skills
More from affaan-m/everything-claude-code and the wider catalog.
security-review
Security checklist and patterns for authentication, input validation, secrets, and sensitive features.
golang-patterns
Idiomatic Go patterns, best practices, and conventions for building robust, efficient, and maintainable applications.
coding-standards
Baseline coding conventions for naming, readability, immutability, and quality across projects.
frontend-patterns
React and Next.js patterns for components, state management, performance, and modern frontend practices.
backend-patterns
REST/GraphQL API design, database optimization, and server-side patterns for Node.js, Express, and Next.js.
golang-testing
Go testing patterns: table-driven tests, subtests, benchmarks, fuzzing, and TDD methodology.