Token导航 LogoToken导航

Agent Skill · 前端设计

design-guide(设计指南)

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

design-guide 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证为 MIT,第三方扫描有提醒项,按安装量在前端设计类的 10,216 个 Skill 里排第 7,824。

总安装 339周安装 14GitHub Stars 40下载 111核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

深度解析任意网站的完整设计语言,包括动效、交互与组件库细节。适合逆向工程优秀案例,提取可复用的设计模式与实现技巧。超越基础样式提取,捕获 hover 状态、过渡动画等动态特征。输出像素级精准的还原方案,支持一键生成对应前端代码片段。design-guide 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/design-guide

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/tyrchen/claude-skills --skill design-guide;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

design-guide 怎么安装?

在终端执行 npx skills add https://github.com/tyrchen/claude-skills --skill design-guide。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

design-guide 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

design-guide 需要什么权限?

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

design-guide 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

design-guide 用的人多吗?

公开数据是累计安装 339 次,近一周安装 14 次,下载 111 次,GitHub 40 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

design-guide 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
design-guide

设计指南 · 本页

33940操作浏览器MIT有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

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)

平台分布

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 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills