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

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

Agent Skill

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

总安装

753

周安装

32

GitHub Stars

56

下载量

264
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

简介

design-system-generator 用于辅助前端页面、组件、样式和交互逻辑的开发与维护。

  • 适合生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码。
  • 使用时需结合项目现有设计系统、路由和构建方式,避免生成孤立片段。
  • 涉及页面改动时应配合本地预览和构建检查确认视觉效果。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

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.*

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

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