一键导入
create-design-system
Extract or build a design system (tokens, components, style guide). Use for "design system", "style guide", "tokens", "UI kit".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Extract or build a design system (tokens, components, style guide). Use for "design system", "style guide", "tokens", "UI kit".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Build an HTML slide deck (1920×1080, keyboard nav, exportable) when user asks for a presentation, pitch deck, slides, or keynote. Uses deck_stage.js starter and Claude Design taste rules.
Screenshot + console sweep + visual inspection of an artifact for layout/color/typography regressions. Silent on pass, reports only on issues. Use after /done reports clean and before end-of-turn.
Build animated motion design (explainer, transition reel, product intro). Uses Stage/Sprite timeline from animations.jsx for in-browser compositions or Remotion for full video/MP4 workflows.
Apply buffered tweaks from pending.yaml to the source HTML file. Invoked when user says "save tweaks", "apply tweaks", "persist panel changes", or runs /apply-tweaks.
Generate a working demo artifact on dummy content so the user can see a reference implementation. Use when user says "show me an example deck", "what does a prototype look like", "give me a starter", "I want to see an example of X". Generates live — not from a static gallery.
First-run setup + health check. Verifies Chrome DevTools MCP, installs optional deps (monolith, pptxgenjs, puppeteer), creates working dirs, runs smoke test. Use on fresh clone or when things feel broken.
| name | create-design-system |
| description | Extract or build a design system (tokens, components, style guide). Use for "design system", "style guide", "tokens", "UI kit". |
Produce a living HTML style guide with colors, typography, spacing, radii, shadows, and components. Uses register-asset to feed assets.html.
Before anything else:
Bash(ls ~/.claude/design-systems/ 2>/dev/null) — list existing org-level design systemsRead ~/.claude/design-systems/<name>/tokens.json, report "Using from registry."AskUserQuestion: "Use existing system (list them) / Extract new / Decide for me"Skip Phase 0 only if user explicitly said "create new".
Four sources, in order of preference:
0. Existing registry — handled in Phase 0. If loaded, jump to Phase 2 (Build) directly.
1. Local codebase (path provided):
Glob: **/theme.{ts,js,json}, **/tokens.{css,scss}, **/tailwind.config.*, **/_variables.*, **/colors.*, **/styles.cssRead each; extract:
Read a few component files to understand patterns2. GitHub URL — delegate to /ingest-github first, then continue here with the resulting artifacts/ingested/*-tokens.json
3. From scratch / screenshot / brand — invoke Skill: frontend-design; AskUserQuestion about vibe, reference brands, emotional register
Create artifacts/design-system.html with a section per group. Use data-design-group attrs so register-asset can pick them up.
<section data-design-group="Colors">
<h2>Colors</h2>
<div class="swatch-grid">
<!-- each swatch has name + hex + role -->
</div>
</section>
<section data-design-group="Type">
<h2>Typography</h2>
<!-- sample text at each level: display, H1, H2, body, small -->
</section>
<section data-design-group="Spacing">
<!-- visual bars for 4, 8, 12, 16, 24, 32... -->
</section>
<section data-design-group="Components">
<!-- live-rendered buttons, form elements, cards, badges -->
</section>
<section data-design-group="Brand">
<!-- logo usage, tone of voice, example composition -->
</section>
Use real values from source, not invented ones. Every component is live HTML+CSS, not screenshots.
For each section:
/register-asset artifacts/design-system.html --group Colors --asset "Brand palette" --subtitle "7 colors, semantic roles"
Runs once per group. assets.html will show each as a card.
Write .claude/design-tokens.json for future skills in THIS project to reference:
{
"name": "brand-slug",
"colors": { "primary": "#D97757", ... },
"fonts": { "display": "...", "body": "..." },
"spacing": [4, 8, 12, 16, 24, 32, 48],
"radii": { "sm": 4, "md": 8, "lg": 16 }
}
Subsequent /make-deck, /interactive-prototype skills should Read this file to auto-apply.
If the system is brand-specific (not generic "minimal monochrome" but e.g. "Acme Corp"), ask:
"Save to
~/.claude/design-systems/<slug>/for reuse across projects?"
If yes:
Bash(mkdir -p ~/.claude/design-systems/<slug>)tokens.json and artifacts/design-system.html → ~/.claude/design-systems/<slug>//use-design-system <slug> or auto-detect via brand keyword in brief."The registry format:
~/.claude/design-systems/
├── acme/
│ ├── tokens.json
│ └── preview.html # (optional) visual reference
├── company-x/
│ └── tokens.json
└── minimal-mono/
└── tokens.json
Any Claude Code session in any project sees this registry via Phase 0 of workflow skills.