Token导航 LogoToken导航

Agent Skill · 前端设计

design-system-generator(设计系统生成器)

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

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

总安装 753周安装 32GitHub Stars 56下载 264核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/thienanblog/awesome-ai-agent-skills --skill design-system-generator

这个 Skill 是做什么的

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

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

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/thienanblog/awesome-ai-agent-skills --skill de…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

design-system-generator 怎么安装?

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

design-system-generator 支持哪些 AI 工具?

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

design-system-generator 需要什么权限?

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

design-system-generator 是免费的吗?

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

design-system-generator 用的人多吗?

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

design-system-generator 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 同时适配 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-system-generator

设计系统生成器 · 本页

75356操作浏览器MIT通过

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

SKILL.md 原文

Design System Generator

Overview

This skill generates a project-specific DESIGN_SYSTEM.md that enforces consistent UI/UX across:

  • SPAs (React/Vue/Svelte/Angular)
  • Traditional server-rendered sites (Laravel, Rails, Django, WordPress, etc.)
  • Hybrid systems (admin + marketing + docs)

The design system must be component-based, portable, and practical for real implementation.

When to use this skill:

  • Setting up UI consistency rules for a new project
  • Standardizing component patterns across teams
  • Establishing design tokens (colors, typography, spacing)
  • Defining accessibility and performance requirements

Interactive Workflow

Required Questions

Ask these questions before generating the document:

1. Project type: SPA / Traditional / Hybrid

2. Primary framework(s): React/Vue/Svelte/Angular/None + backend/framework

3. Existing UI/template/design system already in use? (yes/no)

4. CSS approach preference:
   a) Tailwind/utility-first
   b) SCSS/SASS
   c) CSS Modules
   d) styled-components/emotion
   e) Component library (MUI/Ant/etc.)

5. Do you need light mode only, light+dark, or multi-theme?

6. Accessibility target (recommend WCAG AA) and keyboard support expectations

7. Browser/device support constraints

8. i18n/RTL requirements (if any)

9. Do you want design tokens exported? (CSS vars / JSON / both)

Reply examples:
- Short: `1a 2b 3no 4a 5b 6aa 7modern 8no 9both`
- Detailed: `SPA with Vue 3, no existing design system, using Tailwind, light+dark theme, WCAG AA, modern browsers only, no RTL, export both CSS vars and JSON`

Optional Questions (ask only if relevant)

  • Figma link or brand guide?
  • Multi-tenant theming?
  • Mobile app alignment?

Decision Policy

Rule 1: Prefer existing stack

If the project already uses a template or styling system, adapt to it.

Rule 2: Choose one best-fit direction

Do not provide 3-5 "options" unless the user requests comparison. Pick one approach and commit.

Safe Defaults

  • React SPA: TailwindCSS + shadcn/ui (Radix primitives) + CSS variables tokens
  • Vue SPA: TailwindCSS + headless components + CSS variables tokens
  • Angular: Angular Material OR Tailwind + CDK (based on preference)
  • Traditional: SCSS or PostCSS layered architecture (tokens/base/components/utilities), optional bundler

Output Files

Primary

  • DESIGN_SYSTEM.md

Optional (only if user wants)

  • design-tokens.json
  • tokens.css
  • Sample component snippets

Non-Negotiables (must appear in DESIGN_SYSTEM.md)

Accessibility

  • Visible focus states
  • Keyboard navigation for interactive elements
  • Contrast targets (WCAG AA recommended)
  • Reduced motion support
  • Semantic HTML first; ARIA only when necessary

Performance / Production

  • Hashed asset filenames + manifest mapping (cache busting)
  • Minify CSS/JS for production
  • Image optimization pipeline (including SVG optimization)
  • Font loading strategy (font-display: swap, limit weights)

Document Style

DESIGN_SYSTEM.md is a team artifact:

  • Do not mention "AI", "assistant", "model", or "prompt"
  • Use clear "Do/Don't" guidance
  • Keep readable in ~10-15 minutes

DESIGN_SYSTEM.md Required Structure

Generate a tailored document using this structure:

  1. Scope
  2. Design principles (3-5 bullet max)
  3. Supported platforms & constraints
  4. Design tokens

- Color system - Typography - Spacing/layout - Radius/borders/shadows - Motion

  1. UI foundations

- Base styles/reset - Focus/interaction states - Iconography

  1. Component architecture

- Portability across SPA + Traditional - Naming + folder conventions - Required states (hover/focus/disabled/loading/error)

  1. Component inventory (minimum viable list)
  2. CSS strategy & tooling

- SPA path vs Traditional path

  1. Production build & asset strategy

- dist structure - Manifest requirement - Optimization checklist

  1. Accessibility checklist (ship gate)
  2. Examples (token usage + one component example)

SPA vs Traditional Guidance

SPA guidance must include:

  • Recommended bundler (Vite/Webpack/Rollup) aligned with stack
  • CSS strategy (Tailwind/CSS Modules/SCSS)
  • Component library decision (if any)
  • Theming mechanism (CSS variables recommended)

Traditional guidance must include:

  • SCSS/PostCSS architecture:

- tokens layer - base layer - components layer - utilities layer

  • Recommendation for bundling (optional but encouraged)
  • Manifest strategy so server templates reference hashed assets

Required Manifest Guidance (Cache Busting)

Include an explicit section stating:

  • Build output must produce a manifest mapping logical asset names to hashed filenames
  • Server must read manifest to include assets
  • Avoid stale browser caches in production

Agent-Doc Patch Snippet (Required Output)

After generating DESIGN_SYSTEM.md, also output a short patch snippet to add to AGENTS.md and/or CLAUDE.md:

## Design System
All UI components and pages must follow `DESIGN_SYSTEM.md`:
- Use design tokens (no hardcoded colors/sizes).
- Implement component states (hover/focus/disabled/loading/error).
- Meet accessibility and performance requirements.

Reference Files

Before generating DESIGN_SYSTEM.md, read these reference files:

  • Template: TEMPLATE_DESIGN_SYSTEM.md - Use this as the base structure for generation
  • Example CSS tokens: examples/tokens.css - Reference for CSS variable token format
  • Example JSON tokens: examples/design-tokens.json - Reference for JSON token export format
  • Example manifest: examples/manifest.example.json - Reference for asset manifest structure
  • AGENTS.md patch: examples/AGENTS.patch.md - The exact snippet to add to AGENTS.md/CLAUDE.md

Acceptance Criteria

  • DESIGN_SYSTEM.md is tailored to the user's stack and constraints
  • Contains token rules, component state rules, accessibility gates, and production/manifest rules
  • Avoids "AI" language entirely in the generated docs
  • Recommends a single coherent approach (unless user asked for alternatives)
  • Includes an AGENTS.md / CLAUDE.md patch snippet referencing DESIGN_SYSTEM.md

*This skill is part of the awesome-ai-agent-skills community library.*

平台分布

Claude Code

26.87%
按下载量换算71

Antigravity

21.48%
按下载量换算57

Codex

18.63%
按下载量换算49

windsurf

12.11%
按下载量换算32

trae

8.33%
按下载量换算22

OpenCode

3.61%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills