Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问clear审计提醒

design-guide设计指南

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

339

周安装

14

GitHub Stars

40

下载量

111
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:design-guide(设计指南)
来源仓库:https://github.com/tyrchen/claude-skills
仓库路径:skills/design-guide
安装命令:
npx skills add https://github.com/tyrchen/claude-skills --skill design-guide
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/tyrchen/claude-skills --skill design-guide

简介

深度解析任意网站的完整设计语言,包括动效、交互与组件库细节。

  • 适合逆向工程优秀案例,提取可复用的设计模式与实现技巧。
  • 超越基础样式提取,捕获 hover 状态、过渡动画等动态特征。
  • 输出像素级精准的还原方案,支持一键生成对应前端代码片段。
  • design-guide 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Comprehensive Design Guide Generator

Extract the complete design language from any website with automated analysis of colors, typography, animations, interactions, and UX patterns. Goes far beyond basic CSS extraction to capture the full design system.

When to Use This Skill

Use this skill when you want to:

  • Analyze a website's complete design system - Not just colors and fonts, but the entire design language
  • Extract interactive design patterns - Hover states, transitions, animations, micro-interactions
  • Document component libraries - Buttons, cards, forms, navigation patterns
  • Create pixel-perfect recreations - Comprehensive data for exact replicas
  • Build design systems - Complete token systems with all design decisions documented
  • Understand UX patterns - Interaction patterns, accessibility features, responsive behavior
  • Reverse-engineer designs - Full extraction of design decisions from live websites

What This Skill Extracts

🎨 Visual Design

Colors & Gradients

  • Text colors (all variations)
  • Background colors
  • Border colors
  • Shadow colors (extracted from box-shadow)
  • Linear and radial gradients
  • Complete color palette with CSS custom properties

Typography System

  • Font families and fallback stacks
  • Complete type scale (all font sizes used)
  • Font weights (100-900)
  • Line heights
  • Letter spacing
  • Text transforms
  • Heading hierarchy (H1-H6) with exact styles
  • Body text specifications

Visual Effects

  • Box shadows (all variations)
  • Text shadows
  • CSS filters (blur, brightness, contrast, etc.)
  • Transform properties
  • Opacity values
  • Border radius values

⚡ Interactive Design

Interactive States

  • Hover effects (color, transform, shadow changes)
  • Focus states
  • Active states
  • Transition properties
  • Before/after comparisons for hover states
  • Screenshots of interactive elements in hover state

Animations

  • CSS transitions (timing, easing, duration)
  • Keyframe animations
  • Animated element detection
  • Animation names and rules

📐 Layout & Spacing

Spacing System

  • Margin values (sorted scale)
  • Padding values (sorted scale)
  • Gap values (Flexbox/Grid)
  • Complete spacing token system

Layout Patterns

  • Container max-widths
  • Centered container patterns
  • Flexbox configurations
  • Grid layouts
  • Sticky/fixed positioning

🧩 Component Patterns

UI Components Identified

  • Buttons (with exact styling)
  • Cards (background, shadow, radius, padding)
  • Navigation bars
  • Forms and inputs
  • Modals
  • Badges
  • Alerts

Component Documentation

  • Exact CSS for each component variant
  • Component text content
  • Visual hierarchy

🎭 UX & Behavior

Interaction Patterns

  • Scroll behavior
  • Cursor styles used
  • Interactive element count
  • Sticky/fixed element patterns

Accessibility Features

  • ARIA labels count
  • ARIA descriptions count
  • Role attributes count
  • Image alt text usage

📱 Responsive Design

Multi-Device Analysis

  • Mobile screenshots (375x812)
  • Tablet screenshots (768x1024)
  • Desktop screenshots (1920x1080)
  • Layout metrics at each breakpoint
  • Viewport-specific behaviors

Instructions for Claude

Step 1: Verify Setup

Navigate to the skill directory:

cd /Users/tchen/projects/mycode/claude-skills/design-guide

Ensure dependencies are installed (first time only):

uv sync
playwright install chromium

Step 2: Gather Requirements

Ask the user for:

  • URL (required): The website to analyze
  • Output directory (optional): Where to save results (default: ./output)
  • Viewport size (optional): Custom viewport dimensions (default: 1600x1200)

Step 3: Run the Enhanced Extractor

Execute the comprehensive extraction:

uv run main.py --url <URL> [OPTIONS]

Available Options:

  • --url, -u: Website URL to analyze (required)
  • --output, -o: Output directory (default: ./output)
  • --viewport-width: Viewport width in pixels (default: 1600)
  • --viewport-height: Viewport height in pixels (default: 1200)

What happens during extraction:

The tool will:

  1. 📄 Load the page and wait for network idle
  2. 📸 Take viewport and full-page screenshots
  3. 🔍 Extract HTML structure
  4. 💅 Extract all CSS (linked and inline)
  5. 🎯 Compute styles for every element
  6. ⚡ Capture interactive states (hover 10 elements)
  7. 🎨 Analyze complete color palette
  8. 📝 Extract typography system
  9. 📐 Analyze layout and spacing
  10. ✨ Detect animations and transitions
  11. 🌟 Extract shadows and visual effects
  12. 🧩 Identify component patterns
  13. 🎭 Analyze UX patterns
  14. 📱 Test responsive behavior (3 breakpoints)
  15. 💾 Save all data and generate design guide

Step 4: Review Generated Assets

After extraction, the output directory contains:

Documentation

  • design-guide.md - Comprehensive design guide (main deliverable)
  • design_data.json - Complete structured data

Visual Assets

  • viewport_screenshot.png - Desktop viewport capture
  • fullpage_screenshot.png - Complete page capture
  • interactive_hover.png - Hover state demonstrations
  • responsive_mobile.png - Mobile view (375x812)
  • responsive_tablet.png - Tablet view (768x1024)
  • responsive_desktop.png - Large desktop view (1920x1080)

Source Code

  • extracted.html - Original HTML
  • extracted.css - All CSS (can be 2-3MB for complex sites)
  • computed_styles.json - Computed styles for every element (can be large)

Step 5: Explore the Design Guide

The generated design-guide.md contains:

  1. Visual Assets - All screenshots with descriptions
  2. Color System - Complete palette with CSS variables
  3. Typography System - Font stacks, type scale, heading hierarchy
  4. Spacing & Layout - Complete spacing tokens and container patterns
  5. Visual Effects - Shadows, filters, transforms, opacity
  6. Animations & Transitions - All transitions and keyframe animations
  7. Interactive States - Hover effects with before/after comparisons
  8. Component Patterns - Button, card, form, nav styling
  9. UX Patterns - Accessibility, cursor styles, sticky elements
  10. Responsive Design - Breakpoint analysis
  11. Implementation Guide - Step-by-step recreation instructions

Step 6: Analyze Design Patterns

Use the extracted data to understand:

Design System Maturity

  • Consistent spacing scale? (Check margin/padding variations)
  • Defined type scale? (Check font size progression)
  • Component library? (Check identified components)
  • Accessibility? (Check ARIA features)

Design Decisions

  • Color choices and usage patterns
  • Typography hierarchy clarity
  • Animation smoothness (check transition timings)
  • Shadow depth system
  • Border radius consistency

Step 7: Pixel-Perfect Recreation (Advanced)

For recreating the design:

  1. Use Design Tokens: Copy CSS variables from design guide
  2. Match Typography: Use exact font stacks and sizes
  3. Implement Spacing: Follow extracted spacing scale
  4. Apply Effects: Use exact shadow and border-radius values
  5. Add Interactions: Implement hover/focus states as documented
  6. Test Responsive: Match layouts at all breakpoints
  7. Verify Visually: Compare with extracted screenshots

Step 8: Interactive Exploration with Playwright MCP (Optional)

If you need deeper interaction analysis:

# Use Playwright MCP to:
1. Navigate to specific pages/states
2. Test form interactions
3. Trigger modals/dropdowns
4. Capture specific UI states
5. Test animations manually
6. Explore navigation flows

Usage Examples

Basic Usage - Any Website

uv run main.py --url https://stripe.com

E-commerce Site Analysis

uv run main.py --url https://shopify.com --output ./shopify-design

Custom Viewport

uv run main.py --url https://github.com --viewport-width 1920 --viewport-height 1080

Design System Extraction

# Extract from design system documentation
uv run main.py --url https://primer.style --output ./primer-system

Example Output

After analyzing GitHub.com, you get:

Colors:

  • 100+ unique colors cataloged
  • Dark theme palette (rgb(13, 17, 23) backgrounds)
  • Brand colors (rgb(31, 111, 235))
  • 5+ gradient variations
  • Shadow color system

Typography:

  • Mona Sans font family
  • 10-level type scale (12px to 72px)
  • 5 font weights (400, 450, 500, 600, 700)
  • Heading hierarchy

Components:

  • 5+ button variations
  • Card patterns with exact shadows
  • Navigation bar styles
  • Form input specifications

Interactive:

  • Hover state transitions
  • Animation keyframes
  • Transform effects

Responsive:

  • Mobile, tablet, desktop screenshots
  • Layout adaptations documented

Advanced Features

Component Pattern Recognition

The skill automatically identifies:

  • Buttons: Searches for button, [role="button"],.btn, input[type="button"]
  • Cards: Searches for [class*="card"], article, [class*="post"]
  • Nav: Searches for nav, [role="navigation"], header nav
  • Forms: Extracts input, select, textarea styling

Interactive State Capture

  • Hovers over first 10 interactive elements
  • Captures computed styles before and after hover
  • Takes screenshot in hover state
  • Documents changes in design guide

Responsive Testing

Automatically tests at:

  • Mobile: 375x812 (iPhone X/11/12/13/14 size)
  • Tablet: 768x1024 (iPad portrait)
  • Desktop: 1920x1080 (Full HD)

Animation Detection

  • Scans all elements for CSS animations
  • Extracts keyframe rules from stylesheets
  • Identifies animated elements
  • Documents transition properties

Tips for Best Results

Choosing the Right URL

Good URLs:

  • Homepage (comprehensive overview)
  • Marketing pages (best design work)
  • Component libraries (design system docs)
  • Login/signup pages (form patterns)

Challenging URLs:

  • Authenticated content (may redirect)
  • Dynamic SPAs (may need extra wait time)
  • Sites with aggressive anti-bot measures

Viewport Selection

  • 1600x1200 - Default, good for most sites
  • 1920x1080 - Large desktop analysis
  • 1280x720 - Smaller desktop
  • Custom - Match specific design requirements

Multiple Page Analysis

For complete design systems, run on multiple pages:

# Homepage
uv run main.py --url https://example.com -o ./design/home

# Product page
uv run main.py --url https://example.com/product -o ./design/product

# About page
uv run main.py --url https://example.com/about -o ./design/about

# Then compare to find:
# - Consistent design tokens
# - Page-specific variations
# - Component reuse patterns

Performance Notes

Extraction Time:

  • Simple sites: 30-60 seconds
  • Complex sites (GitHub, Stripe): 60-120 seconds
  • Includes responsive testing at 3 breakpoints

Output Size:

  • Design guide: 5-20KB (markdown)
  • Screenshots: 500KB - 3MB total
  • CSS file: 10KB - 5MB (complex sites)
  • Computed styles: 100KB - 10MB
  • Design data JSON: 50KB - 500KB

Troubleshooting

Browser Not Installed

playwright install chromium

Page Load Timeout

  • Increase timeout in code if needed
  • Some SPAs may need extra wait time
  • Check network connectivity

Missing Interactive States

  • Some sites block mouse events
  • Screenshot may capture only first few hovers
  • Manual Playwright MCP can capture more

Empty Design Guide Sections

  • Page may not use certain features (animations, shadows, etc.)
  • This is normal for minimalist designs
  • Check design_data.json for raw data

CORS Errors for CSS

  • External stylesheets may be blocked
  • Tool extracts what it can access
  • Check extracted.css for completeness
  • Use browser DevTools to manually inspect

Cost Considerations

Resource Usage:

  • Local Playwright (free)
  • No external APIs (free)
  • CPU: Moderate (page rendering)
  • Memory: 500MB-2GB (complex sites)
  • Disk: 5-50MB per extraction

No API Keys Required!

Design Guide Quality

The generated design guide is:

  • Comprehensive - Covers all design aspects
  • Actionable - Ready to use for implementation
  • Organized - Clear sections and categories
  • Visual - References screenshots throughout
  • Technical - Exact CSS values and code
  • Accessible - Documents accessibility features

Integration with Claude Code Workflow

Typical Usage Flow

  1. User Request: "Analyze the design of stripe.com"
  2. Claude Uses Skill: cd /Users/tchen/projects/mycode/claude-skills/design-guide uv run main.py --url https://stripe.com --output./stripe-design
  3. Claude Reviews Output: Reads design-guide.md
  4. Claude Presents Findings:

- Color system overview - Typography hierarchy - Key components identified - Interactive patterns found - Accessibility score

  1. User Follow-up: "Recreate the hero section"
  2. Claude Implements: Uses extracted design tokens to build pixel-perfect HTML/CSS

Example User Interactions

User: "What design system does Shopify use?"

Claude:

# Runs extraction
uv run main.py --url https://shopify.com -o ./shopify-design

# Analyzes output
# Reports findings:

"Shopify uses:

  • Polaris design system
  • Typography: Inter font family
  • Colors: Green primary (rgb(0, 128, 96))
  • Spacing: 4px base unit
  • Components: Identified 12 button variants, card system, navigation
  • Shadows: 3-level depth system
  • Responsive: Mobile-first approach"

User: "Extract the button styles from GitHub"

Claude:

uv run main.py --url https://github.com -o ./github-design

"Found 5 button variants on GitHub:

  1. Primary Button:

- Background: rgb(31, 111, 235) - Color: white - Padding: 5px 16px - Border-radius: 6px - Hover: Transforms darker

[Shows exact CSS from design guide]"


Advanced: Claude-Driven Analysis

When using this skill, Claude should:

  1. Run extraction automatically
  2. Read design-guide.md to understand design
  3. Analyze patterns for insights
  4. Present findings in structured format
  5. Offer to recreate components if requested
  6. Use Playwright MCP for deeper interaction testing if needed

Deliverables

After running this skill, deliver to user:

design-guide.md - Main comprehensive guide ✅ All screenshots - Visual reference ✅ design_data.json - Structured data for programmatic use ✅ Source files - HTML, CSS, computed styles

Optional: ✅ Recreated components - If requested ✅ Comparison analysis - If analyzing multiple sites ✅ Token library - CSS/SCSS variables file


Skill Version: 2.0 (Enhanced - Full Design Language Extraction) Last Updated: 2025-11-16 Extraction Depth: Comprehensive (11+ analysis types)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.86%
按下载量换算32

windsurf

20.86%
按下载量换算23

OpenCode

15.93%
按下载量换算18

Codex

12.42%
按下载量换算14

Antigravity

7.19%
按下载量换算8

Gemini CLI

3.31%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills