Extract reusable UI/UX design systems from frontend codebases: design tokens, global styles, components, interaction patterns, and page templates. Use when analyzing any frontend repo (React/Vue/Angular/Next/Vite/etc.) to document or migrate UI/UX for reuse across projects. Focus on UI/UX only; explicitly ignore business logic and domain workflows.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install frontend-design-extractor或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install frontend-design-extractor⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/frontend-design-extractor/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: frontend-design-extractor description: "Extract reusable UI/UX design systems from frontend codebases: design tokens, global styles, components, interaction patterns, and page templates. Use when analyzing any frontend repo (React/Vue/Angular/Next/Vite/etc.) to document or migrate UI/UX for reuse across projects. Focus on UI/UX only; explicitly ignore business logic and domain workflows." ---
Extract a reusable UI/UX design spec from a frontend codebase by inventorying UI sources, documenting foundations, cataloging components, and capturing page-level patterns and behaviors. Exclude business logic and domain-specific workflows. Framework-agnostic: adapt to the actual stack in the target repo.
1) Confirm mode: new project (greenfield) or refactor existing. Clarify that business logic is out of scope. 2) If existing repo: run scripts/scan_ui_sources.sh to scan the repo root (no directory layout assumptions). It uses common globs + keyword hits, and ignores common build/cache dirs and extraction output folders by default. 3) Optionally: scripts/scan_ui_sources.sh or --root/--out/--ignore for nonstandard layouts. 4) Create the output folder (default ./ui-ux-spec) via scripts/generate_output_skeleton.sh and write all extraction results inside it. 5) Produce outputs in the default structure (see "Output structure").
Goal: create a reusable UI/UX foundation and starter UI without business logic.
1) Define foundations: tokens (color/typography/spacing/radius/shadow/motion), global styles, breakpoints, layout shell. 2) Create a baseline component set: Button, Input, Select, Card, Modal, Table/List, Tabs, Toast, EmptyState. 3) Create page templates: list/detail/form/dashboard skeletons with placeholder data. 4) Provide implementation notes for the target framework (CSS architecture, theming mechanism, file structure). 5) Optionally run scripts/generate_output_skeleton.sh [out_root] to scaffold folders and empty templates. Default output root is ./ui-ux-spec.
Deliverables:
Goal: extract current UI/UX, normalize tokens, and plan safe, incremental improvements.
1) Inventory UI sources (scan script + manual inspection). 2) Normalize tokens and map existing styles to them. 3) Identify high-impact components/patterns for first pass. 4) Plan migration with minimal diffs (wrappers, theme adapters, gradual replacement). 5) Document behavioral and a11y gaps to fix progressively.
Deliverables:
Use this when applying an existing ui-ux-spec/ to a target project. Always work from a plan and execute step-by-step to avoid missing gaps.
- Tokens & global styles - Components (priority order) - Patterns & pages - A11y gaps
Use one of the templates below to keep requests precise and plan-driven.
Please refactor the existing project based on this UI/UX spec:
- Project path: /path/to/target-project
- Spec path: /path/to/ui-ux-spec
- Goal: UI/UX only (tokens, styles, components, layout), do not change business logic/APIs
- Scope: start with global styles + base components
- Constraints: minimal changes, small-step commits, reversible
- Deliverables: refactor plan + actual code changes + list of impacted files
Please refactor UI/UX in phases; only do Phase 1:
- Project path: /path/to/target-project
- Spec path: /path/to/ui-ux-spec
- Phase 1: align tokens + global styles (colors/typography/spacing/radius/shadows)
- Do not change: business logic/routing/APIs
- Deliverables: list of changed files + alignment diff notes
Please align the following components to the spec while keeping business logic unchanged:
- Project path: /path/to/target-project
- Spec path: /path/to/ui-ux-spec
- Component list: Button, Input, Modal, Table
- Goal: only change styling/structure/interaction details
- Deliverables: alignment notes per component + code changes
- tokens/themes, global styles, theme providers - component libraries and local wrappers - Storybook, docs, or visual regression tests - assets and i18n sources
- Design tokens doc - Component catalog - Page templates
ui-ux-spec/).This structure is a recommended documentation layout. It does not need to match the target project's directory structure, and it can be renamed or relocated (e.g., docs/ui-ux-spec/).
ui-ux-spec/
01_Foundation/
02_Components/
03_Patterns/
04_Pages/
05_A11y/
06_Assets/
07_Engineering_Constraints/
...
安装 Frontend Design Extractor 后,可以对 AI 说这些话来触发它
Help me get started with Frontend Design Extractor
Explains what Frontend Design Extractor does, walks through the setup, and runs a quick demo based on your current project
Use Frontend Design Extractor to extract reusable UI/UX design systems from frontend codebases: desi...
Invokes Frontend Design Extractor with the right parameters and returns the result directly in the conversation
What can I do with Frontend Design Extractor in my documents & notes workflow?
Lists the top use cases for Frontend Design Extractor, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/frontend-design-extractor/ 目录(个人级,所有项目可用),或 .claude/skills/frontend-design-extractor/(项目级)。重启 AI 客户端后,用 /frontend-design-extractor 主动调用,或让 AI 根据上下文自动发现并使用。
Frontend Design Extractor 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Frontend Design Extractor 可免费安装使用。请查阅仓库了解许可证信息。
Extract reusable UI/UX design systems from frontend codebases: design tokens, global styles, components, interaction patterns, and page templates. Use when analyzing any frontend repo (React/Vue/Angular/Next/Vite/etc.) to document or migrate UI/UX for reuse across projects. Focus on UI/UX only; explicitly ignore business logic and domain workflows.
Automate my documents & notes tasks using Frontend Design Extractor
Identifies repetitive steps in your workflow and sets up Frontend Design Extractor to handle them automatically
Frontend Design Extractor 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。