Home / Prompts / Design System Extraction Prompt Kit

Design System Extraction Prompt Kit

Text promptDesignPublic domain (CC0)
51score

Install the skill first

This prompt works best with vercel-react-best-practices installed, so your agent knows Next.js's best practices.

mkdir -p .claude/skills/vercel-react-best-practices
curl -sL https://codeload.github.com/vercel-labs/agent-skills/tar.gz/063bee94c3f4df8453406c830b0a7df0f2860278 | tar -xz -C .claude/skills/vercel-react-best-practices --strip-components=3 "agent-skills-063bee94c3f4df8453406c830b0a7df0f2860278/skills/react-best-practices"

Claude Code, pinned to commit 063bee94c3f4. Other agents: see the skill page.

Prompt

You are a senior design systems engineer conducting a forensic audit of an existing codebase. Your task is to extract every design decision embedded in the code — explicit or implicit.

## Project Context
- **Framework:** [Next.js / React / etc.]
- **Styling approach:** [Tailwind / CSS Modules / Styled Components / etc.]
- **Component library:** [shadcn/ui / custom / MUI / etc.]
- **Codebase location:** [path or "uploaded files"]

## Extraction Scope

Analyze the entire codebase and extract the following into a structured JSON report:

### 1. Color System
- Every color value used (hex, rgb, hsl, css variables, Tailwind classes)
- Group by: primary, secondary, accent, neutral, semantic (success/warning/error/info)
- Flag inconsistencies (e.g., 3 different grays used for borders)
- Note opacity variations and dark mode mappings if present
- Extract the actual CSS variable definitions and their fallback values

### 2. Typography
- Font families (loaded fonts, fallback stacks, Google Fonts imports)
- Font sizes (every unique size used, in px/rem/Tailwind classes)
- Font weights used per font family
- Line heights paired with each font size
- Letter spacing values
- Text styles as used combinations (e.g., "heading-large" = Inter 32px/700/1.2)
- Responsive typography rules (mobile vs desktop sizes)

### 3. Spacing & Layout
- Spacing scale (every margin/padding/gap value used)
- Container widths and max-widths
- Grid system (columns, gutters, breakpoints)
- Breakpoint definitions
- Z-index layers and their purpose
- Border radius values

### 4. Components Inventory
For each reusable component found:
- Component name and file path
- Props interface (TypeScript types if available)
- Visual variants (size, color, state)
- Internal spacing and sizing tokens used
- Dependencies on other components
- Usage count across the codebase (approximate)

### 5. Motion & Animation
- Transition durations and timing functions
- Animation keyframes
- Hover/focus/active state transitions
- Page transition patterns
- Scroll-based animations (if any library like Framer Motion, GSAP is used)

### 6. Iconography & Assets
- Icon system (Lucide, Heroicons, custom SVGs, etc.)
- Icon sizes used
- Favicon and logo variants

### 7. Inconsistencies Report
- Duplicate values that should be tokens (e.g., `#1a1a1a` used 47 times but not a variable)
- Conflicting patterns (e.g., some buttons use padding-based sizing, others use fixed height)
- Missing states (components without hover/focus/disabled states)
- Accessibility gaps (missing focus rings, insufficient color contrast)

## Output Format

Return a single JSON object with this structure:
{
  "colors": { "primary": [], "secondary": [], ... },
  "typography": { "families": [], "scale": [], "styles": [] },
  "spacing": { "scale": [], "containers": [], "breakpoints": [] },
  "components": [ { "name": "", "path": "", "props": {}, "variants": [] } ],
  "motion": { "durations": [], "easings": [], "animations": [] },
  "icons": { "system": "", "sizes": [], "count": 0 },
  "inconsistencies": [ { "type": "", "description": "", "severity": "high|medium|low" } ]
}

Do NOT attempt to organize or improve anything yet.
Do NOT suggest token names or restructuring.
Just extract what exists, exactly as it is.

Context cost: ≈817 tokens when used.

Why this score

Quality checklist40/40
Community votes11/30
Editor pick0/15
Fill-in fields0/10
Discussion0/5

Quality checklist

  • Sets a role: yes
  • States a clear task: yes
  • Gives context: yes
  • Sets constraints: yes
  • Defines the output: yes
  • Breaks work into steps: yes

The checklist is automatic and applies the same rules to every prompt. It checks structure, not whether the output is good. Prompt scores aren't comparable with tool scores. How we rank

Security

Scanned Nov 4, 2026 at the text shown on this page, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Similar prompts

Prompts that do the same job, most voted first.

NameVotesScore
This oneDesign System Extraction Prompt Kit Design ▲ 251
"Explain It Like I Built It" Technical Documentation for Non-Technical Founders Coding Same job: documentation, also for Tailwind CSS ▲ 466
Create STYLE_GUIDE.md Coding Same job: ui design, also for Tailwind CSS ▲ 451
Architecture & UI/UX Audit Design Same job: ui design, also for Next.js ▲ 354
Rapid Prototyper Business & career Same job: ui design, also for Next.js ▲ 244
Product Image Highlight Extraction Marketing Both about extraction and extract ▲ 361