---
name: design-system-analyzer
description: 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".
title: design-system-analyzer
canonical_url: https://skilld.dev/gh/nakanosanku/ohmyskills/design-system-analyzer
last_updated: 2026-09-29T06:38:38.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [README.md](https://skilld.dev/api/skills-raw/nakanosanku/ohmyskills/design-system-analyzer/README.md), [references/analysis-guide.md](https://skilld.dev/api/skills-raw/nakanosanku/ohmyskills/design-system-analyzer/references/analysis-guide.md), [references/design-system-template.md](https://skilld.dev/api/skills-raw/nakanosanku/ohmyskills/design-system-analyzer/references/design-system-template.md), [references/setup-guide.md](https://skilld.dev/api/skills-raw/nakanosanku/ohmyskills/design-system-analyzer/references/setup-guide.md).
>
> If the user asked to install this Skill, run `npx skilld install nakanosanku/ohmyskills/design-system-analyzer`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/design-system-analyzer`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/nakanosanku/ohmyskills/design-system-analyzer) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/design-system-analyzer`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/design-system-analyzer --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/design-system-analyzer --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# 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](https://skilld.dev/api/skills-raw/nakanosanku/ohmyskills/design-system-analyzer/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:**

```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**:
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**:

| 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.md`.

### Template Mapping Table

| Extracted Data | Template Section | Notes |
|----------------|------------------|-------|
| `tokens.colors` | `Design Token System > Colors` | Format as table |
| `tokens.spacing` | `Spacing, Radius & Borders` | Include radius values |
| `tokens.typography` | `Typography` | Include font stacks |
| Typography script | `Typography > Font Stacks, Type Scale` | Computed styles |
| `keyframes` | `Animation & Motion > Key Animations` | Full keyframe definitions |
| `animationUsage` | `Animation & Motion > Timing` | Duration, easing |
| `transitions` | `Animation & Motion > Timing` | Common patterns |
| `interactions` | `Component Styling > State Transitions` | Hover/focus effects |
| Layout sampler | `Layout Principles` | Spacing system |
| Tech stack | `Implementation Notes` | Tailwind/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

- **[references/design-system-template.md](https://skilld.dev/api/skills-raw/nakanosanku/ohmyskills/design-system-analyzer/references/design-system-template.md)**: The REQUIRED output template
- **[references/analysis-guide.md](https://skilld.dev/api/skills-raw/nakanosanku/ohmyskills/design-system-analyzer/references/analysis-guide.md)**: Deep extraction scripts with context limits
- **[references/setup-guide.md](https://skilld.dev/api/skills-raw/nakanosanku/ohmyskills/design-system-analyzer/references/setup-guide.md)**: Guide for reusing user's Chrome
