Catalog
affaan-m/design-system

affaan-m

design-system

Use this skill to generate or audit design systems, check visual consistency, and review PRs that touch styling. Use when generating or auditing a design system, checking visual consistency, or reviewing a PR that touches styling.

NewUpdated Sep 9, 2026

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
Files1
1 files · 1.0 KB

Select a file to preview

Overall Score

72/100

Grade

B

Good

Grades are signals, not a certification. Always review a skill yourself before use.

Safety

78

Quality

68

Clarity

82

Completeness

58

Summary

This skill guides AI agents to analyze and generate design systems by scanning codebases for visual patterns, auditing UI consistency across 10 dimensions, and detecting AI-generated design anti-patterns. It produces structured design tokens, audit reports, and interactive preview pages to help developers establish or improve visual systems.

Detected Capabilities

file read (css/tailwind/styled-components)code pattern analysisbrowser navigation (fetch competitor sites)JSON generationHTML generationfile write (DESIGN.md, design-tokens.json, design-preview.html)URL accessvisual analysis

Trigger Keywords

Phrases that agents use to match this skill to user intent.

audit design consistencygenerate design systemdesign token extractionvisual consistency checkdetect ai-generated patternsstyle review analysis

Risk Signals

INFO

Browser MCP access to external competitor websites for research

Mode 1, Step 3: 'Research 3 competitor sites for inspiration (via browser MCP)'
INFO

HTTP request to localhost during audit mode

Example: '/design-system audit --url http://localhost:3000'
INFO

File write operations to project directory (DESIGN.md, design-tokens.json, design-preview.html)

Mode 1 output section

Referenced Domains

External domains referenced in skill content, detected by static analysis.

localhost

Use Cases

  • Starting a new project with a cohesive design system
  • Auditing existing codebase for visual consistency violations
  • Understanding current UI before a redesign
  • Diagnosing why UI feels inconsistent or off
  • Reviewing PRs that modify styling or component appearance
  • Detecting generic AI-generated design patterns and anti-patterns

Quality Notes

  • Well-structured skill with clear purpose and three distinct modes (Generate, Audit, AI Slop Detection)
  • Each mode has explicit step-by-step instructions with numbered procedures
  • Audit mode provides concrete scoring across 10 meaningful dimensions with specific examples
  • AI Slop Detection mode identifies real anti-patterns (gradients, glass morphism, stock imagery) that are useful for developers
  • Examples show concrete command-line interface patterns for invocation
  • Output artifacts are well-defined and actionable (design tokens in JSON, documentation in Markdown, preview in HTML)
  • Lacks implementation detail on how to perform CSS pattern extraction or calculate contrast ratios
  • No error handling guidance (e.g., what if codebase has no CSS, or localhost is unreachable)
  • No security guardrails documented for browser access or external site research
  • Incomplete: examples use `/design-system` command syntax but no tool schema or allowed-tools field specified
  • No guidance on handling malformed or mixed style systems (vanilla CSS + Tailwind + styled-components in same project)
Model: claude-haiku-4-5-20251001Analyzed: Sep 9, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Version History

  1. v2.0

    Contract changed: description

    ✦ AISkill activation description expanded to clarify use cases (design system generation, visual consistency, styling PRs).

    triggering2026-09-09

    LATEST
  2. v1.2

    Content updated

    ✦ AINo behavioral changes detected.

    2026-07-14

    View This Version
  3. v1.1

    Content updated

    ✦ AIAdds LICENSE file.

    2026-04-20

    View This Version
  4. v1.0

    2026-04-12

    View This VersionInitial version

Use affaan-m/design-system in your dev environment

Command Palette

Search for a command to run...