用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill design-system-audit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | design-system-audit |
| description | Design system audit — visual patterns, consistency; Design/Consultive. |
Before creating or modifying any UI, understand the existing visual language of the project. This audit produces a snapshot of the current design state that guides all subsequent UI work.
Look for:
# Config files
tailwind.config.js / tailwind.config.ts
theme.js / tokens.js
design-tokens.json
_variables.scss / variables.css
styles/theme.*
# Component libraries in package.json
"@mui/material", "@chakra-ui/react", "antd", "shadcn",
"mantine", "headlessui", "radix-ui", "bootstrap",
"daisyui", "flowbite", "primevue", "vuetify"
# Design files referenced in README
Figma links, Zeplin links, Storybook URL
# Existing component directory
src/components/ui/
src/components/base/
src/design-system/
Read 10–15 components/pages and extract the actual patterns in use:
Primary: [color value] usage: CTAs, links
Secondary: [color value] usage: secondary actions
Neutral: [scale] usage: text, borders, backgrounds
Semantic: success/warning/error/info [values]
Font family: [name]
Scale: xs / sm / base / lg / xl / 2xl / ...
Weight usage: regular for body, semibold for headings, bold for CTAs
Line height: [value]
Base unit: [4px / 8px / etc.]
Scale: [values used]
Pattern: [consistent use of spacing or chaotic?]
Buttons: [variants in use — primary, secondary, ghost, danger]
Inputs: [types — text, select, checkbox, radio]
Cards: [structure — has shadow? border? padding?]
Navigation: [top nav, sidebar, breadcrumbs]
Modals / Drawers: [exists? consistent behavior?]
Tables: [used? responsive?]
Feedback: [toast/snackbar, alerts, empty states, loading states]
Breakpoints: [values if defined]
Approach: [mobile-first or desktop-first]
Observed: [consistent or inconsistent across pages?]
Document explicitly:
CONSISTENT: [list of patterns used uniformly]
INCONSISTENT: [list of patterns with multiple competing implementations]
MISSING: [patterns needed but not present — e.g., empty states, error states]
PROBLEMATIC: [accessibility issues, low contrast, missing focus states]
This document is capped at 80 lines — see skills/shared/docs-sync/SKILL.md § docs/design/design-system.md for the enforced schema. Condense to that schema (UI Library / Color Tokens / Typography Scale / Component Inventory / Spacing Scale); do not emit every sub-section below verbatim on a mature project.
When in Design Mode (pre-build), generate docs/design/design-system.md:
# Design System — [Project Name]
## Status
[From scratch / Extending [library] / Audited existing]
## Color Tokens
| Token | Value | Usage |
|-------|-------|-------|
| --color-primary | #... | CTAs, links |
| --color-text | #... | Body text |
## Typography
| Style | Size | Weight | Usage |
|-------|------|--------|-------|
| Heading 1 | 2rem | 700 | Page titles |
## Spacing
Base: 4px. Scale: 4, 8, 12, 16, 24, 32, 48, 64px
## Components
[component list with variants]
## Patterns to Follow
[what to do]
## Patterns to Avoid
[what not to do — deviations, deprecated patterns]
When working alongside the frontend-developer, validate new UI against:
Suggest improvements when any of these are violated — but always check project-context first for existing guidelines.
When building a design system from scratch, produce docs/design/design-system.md — same 80-line schema as Step 4 above. Use the detail below to derive the values, but write only the condensed tables into the doc:
Primary: [value] — CTAs, interactive elements, brand color
Secondary: [value] — secondary actions, accents
Neutral scale: 50–950 — text, borders, backgrounds
Semantic: success (#...), warning (#...), error (#...), info (#...)
Ensure minimum contrast ratios: 4.5:1 for text, 3:1 for UI components (WCAG 2.1 AA).
Font: [name] — [why this font]
Scale: 12/14/16/18/20/24/30/36/48px
Weights: 400 (body), 500 (labels), 600 (subheadings), 700 (headings)
Line height: 1.5 (body), 1.2 (headings)
Base unit: 4px
Scale: 4, 8, 12, 16, 20, 24, 32, 40, 48, 64, 80, 96px
Document every reusable component with:
For each major flow: step-by-step description with screen transitions, decision points, and error paths.
anthropic-skills:frontend-design IntegrationThis skill is used alongside the frontend-design skill (installed automatically by scripts/install.sh), which provides component patterns, layout techniques, and visual design guidance. Load it at the start of every design session — it is required, not optional.
基于 SOC 职业分类