design-system-analyzer
Original:🇺🇸 English
Translated
Analyze any website's UI style using ChromeDevTools to extract precise CSS tokens, animations, and interaction states. Handles complex sites and anti-bot measures by guiding the user. Triggers on "analyze this site", "extract UI style", "create design system from [URL]", or "learn visual style".
2installs
Sourcenakanosanku/ohmyskills
Added on
NPX Install
npx skill4agent add nakanosanku/ohmyskills design-system-analyzerTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Design System Analyzer
Analyze websites via ChromeDevTools to extract deep CSS logic (keyframes, transitions, tokens) and generate comprehensive Design System System Prompts.
Critical Rules
- MUST output the final prompt using EXACTLY the structure in
references/design-system-template.md - MUST limit extraction data to prevent context overflow (see analysis-guide.md for limits)
- MUST fill ALL template placeholders with extracted or observed values
- 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:
(See references/setup-guide.md for details)
chrome.exe --remote-debugging-port=9222Workflow 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:
javascript
() => {
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:
- PAUSE all actions.
- Tell the user: "Bot protection detected. Please manually solve the CAPTCHA in the browser, then confirm here."
- Wait for user confirmation before proceeding.
Step 2: Deep CSS Extraction
Run the extraction scripts from in order:
references/analysis-guide.md| Order | Script | Purpose | Max Items |
|---|---|---|---|
| 1 | CSS Variables & Tokens | Colors, spacing, typography variables | 50 tokens |
| 2 | Animation & Keyframes | @keyframes, animation usage, transitions | 10 KF, 15 trans |
| 3 | Interaction States | :hover, :focus, :active rules | 15 rules |
| 4 | Typography | Font stacks from key elements | 7 elements |
| 5 | Layout & Spacing | Border radius, gaps, shadows | 5 each |
| 6 | Tech Stack | Framework 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.mdTemplate Mapping Table
| Extracted Data | Template Section | Notes |
|---|---|---|
| | Format as table |
| | Include radius values |
| | Include font stacks |
| Typography script | | Computed styles |
| | Full keyframe definitions |
| | Duration, easing |
| | Common patterns |
| | Hover/focus effects |
| Layout sampler | | Spacing system |
| Tech stack | | Tailwind/CSS notes |
Output Format Checklist
Before outputting, verify ALL these sections are present:
- block (copy exactly from template)
<role> - wrapper
<design-system> - with Core Principles, Vibe, Historical Context
## Design Philosophy - with Colors table, Typography, Spacing
## Design Token System - with Buttons, Cards, Form Inputs
## Component Styling Principles - with Spacing System, Grid, Responsive
## Layout Principles - with 3 mandatory elements
## The "Signature" Factor - with Philosophy, Timing, Key Animations
## Animation & Motion -
## Accessibility Constraints - with Visual and Interaction no-nos
## Anti-Patterns - with tech-specific guidance
## Implementation Notes - with 4 verification items
## Aesthetic Checklist - Closing
</design-system>
Resources
- references/design-system-template.md: The REQUIRED output template
- references/analysis-guide.md: Deep extraction scripts with context limits
- references/setup-guide.md: Guide for reusing user's Chrome