mcpField
D
design-system-analyzer

design-system-analyzer

github.com/nakanosankuDesign & UI16241 installsUpdated 42w ago
Repository

About design-system-analyzer

design-system-analyzer uses ChromeDevTools to inspect a website’s CSS and extract tokens, animations, interaction states, and layout details. It turns those observations into a design-system prompt using a required template, for design and development workflows.

Key features

  1. 01Extracts CSS variables and design tokens
  2. 02Inspects keyframes, animations, and transitions
  3. 03Analyzes interaction states, typography, and layout
  4. 04Fills a design-system prompt template

Use cases

  1. 01Document colors, spacing, and typography from an existing site
  2. 02Create an implementation prompt covering motion and component styling

MCP support

The workflow uses Chrome DevTools MCP to navigate to and inspect websites; it does not describe providing an MCP server.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/nakanosanku/ohmyskills --skill design-system-analyzer

After installing, type/design-system-analyzerin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
references/
analysis-guide.md
design-system-template.md
setup-guide.md

Details

From the project README

Design System Analyzer

Analyze websites via ChromeDevTools to extract deep CSS logic (keyframes, transitions, tokens) and generate comprehensive Design System System Prompts.

Critical Rules

  1. MUST output the final prompt using EXACTLY the structure in references/design-system-template.md
  2. MUST limit extraction data to prevent context overflow (see analysis-guide.md for limits)
  3. MUST fill ALL template placeholders with extracted or observed values
  4. NEVER skip sections - use "Not observed" if data unavailable

Best Practice: Use Your Own Chrome

For the best experience (no CAPTCHAs, shared login cookies), advise the user to run Chrome with: chrome.exe --remote-debugging-port=9222 (See references/setup-guide.md for details)


Workflow Overview

[1. Navigate] → [2. Anti-Bot Check] → [3. Deep Extraction] → [4. Synthesize to Template]

IMPORTANT: Do NOT take screenshots. Screenshots consume excessive context and are unnecessary - all visual data is extracted from CSS.


Step 1: Navigate & Anti-Bot Check

mcp__chrome-devtools__navigate_page (url: "<target-url>")

Immediately check for bot challenges:

() => {
  const text = document.body.innerText.toLowerCase();
  const title = document.title.toLowerCase();
  if (text.includes('cloudflare') || text.includes('verify you are human') || title.includes('just a moment')) {
    return 'CHALLENGE_DETECTED';
  }
  return 'OK';
}

IF CHALLENGE_DETECTED:

  1. PAUSE all actions.
  2. Tell the user: "Bot protection detected. Please manually solve the CAPTCHA in the browser, then confirm here."
  3. Wait for user confirmation before proceeding.

Step 2: Deep CSS Extraction

Run the extraction scripts from references/analysis-guide.md in order:

OrderScriptPurposeMax Items
1CSS Variables & TokensColors, spacing, typography variables50 tokens
2Animation & Keyframes@keyframes, animation usage, transitions10 KF, 15 trans
3Interaction States:hover, :focus, :active rules15 rules
4TypographyFont stacks from key elements7 elements
5Layout & SpacingBorder radius, gaps, shadows5 each
6Tech StackFramework detection-

IMPORTANT: Each script has built-in limits. Do NOT modify to extract more data.


Step 3: Synthesize to Template

MANDATORY: Generate output using EXACTLY the template structure from references/design-system-template.md.

Template Mapping Table
Extracted DataTemplate SectionNotes
tokens.colorsDesign Token System > ColorsFormat as table
tokens.spacingSpacing, Radius & BordersInclude radius values
tokens.typographyTypographyInclude font stacks
Typography scriptTypography > Font Stacks, Type ScaleComputed styles
keyframesAnimation & Motion > Key AnimationsFull keyframe definitions
animationUsageAnimation & Motion > TimingDuration, easing
transitionsAnimation & Motion > TimingCommon patterns
interactionsComponent Styling > State TransitionsHover/focus effects
Layout samplerLayout PrinciplesSpacing system
Tech stackImplementation NotesTailwind/CSS notes
Output Format Checklist

Before outputting, verify ALL these sections are present:

  • <role> block (copy exactly from template)
  • <design-system> wrapper
  • ## Design Philosophy with Core Principles, Vibe, Historical Context
  • ## Design Token System with Colors table, Typography, Spacing
  • ## Component Styling Principles with Buttons, Cards, Form Inputs
  • ## Layout Principles with Spacing System, Grid, Responsive
  • ## The "Signature" Factor with 3 mandatory elements
  • ## Animation & Motion with Philosophy, Timing, Key Animations
  • ## Accessibility Constraints
  • ## Anti-Patterns with Visual and Interaction no-nos
  • ## Implementation Notes with tech-specific guidance
  • ## Aesthetic Checklist with 4 verification items
  • Closing </design-system>

Resources

Comments

Markdown supported