用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/UitbreidenOS/UitKit --skill claude-design命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Guidelines and instructions for Agent execution state rollback rules
Guidelines and instructions for Agent execution step counters limits
Guidelines and instructions for Agent execution timeout limits setups
基于 SOC 职业分类
正在显示 SKILL.md
| name | claude-design |
| description | Build production-ready UIs and prototypes with Claude Design |
Ask the user to confirm the bundle contents before starting implementation:
unzip design-handoffs/checkout.bundle -d design-handoffs/checkout/
ls design-handoffs/checkout/
# Expect: layout.json, tokens.json, components.md, preview.png
If the bundle contains tokens.json, load it first. Design tokens define the entire visual contract — colors, spacing, font sizes, border radii. Never hardcode values that appear in the token file.
Standardize on this location to avoid path drift across projects:
project-root/
└── design-handoffs/
└── <feature-name>/
├── layout.json
├── tokens.json
├── components.md
└── preview.png
Never place bundle files inside src/ or alongside application code.
Convert tokens.json into the project's token format before writing components:
// tokens.json (Claude Design output)
{
"color": {
"primary": "#1A56DB",
"surface": "#F9FAFB",
"text-primary": "#111928"
},
"spacing": {
"4": "1rem",
"6": "1.5rem"
},
"radius": {
"md": "0.5rem"
}
}
Mapping examples:
| Claude Design token | Tailwind class | CSS variable | shadcn/ui token |
|---|---|---|---|
color.primary | bg-blue-600 | --color-primary | --primary |
spacing.4 | p-4 | --spacing-4 | direct value |
radius.md | rounded-md | --radius-md | --radius |
When the project uses Tailwind, extend tailwind.config.js with extracted tokens rather than applying them inline.
Open components.md before writing component code. It lists:
Button/primary, Card/elevated)Prompt pattern for component implementation:
"Implement the [ComponentName] described in design-handoffs/checkout/components.md.
Use shadcn/ui as the base. Match the token values in tokens.json exactly.
The layout spec is in layout.json — use it for spacing and positioning only,
not as a pixel-perfect constraint."
Claude Design bundles include breakpoint annotations in layout.json. Map them:
// layout.json breakpoint section
"breakpoints": {
"mobile": "< 768px",
"tablet": "768px – 1024px",
"desktop": "> 1024px"
}
In Tailwind: sm: maps to tablet, lg: maps to desktop. Verify this against the project's tailwind.config.js — custom breakpoints may differ.
Use explicit prompt language to set the implementation contract:
| Intent | Prompt phrasing |
|---|---|
| Exact match | "Implement this design as close to pixel-perfect as the component library allows. Flag any deviations." |
| Inspired by | "Use this design as a reference for layout and color direction. Adapt as needed for our component library conventions." |
| Token-only | "Ignore the layout; apply only the design tokens from tokens.json to our existing components." |
Default to "inspired by" unless the user specifies otherwise — exact matches are rarely achievable across design tools and UI libraries and often produce brittle CSS.
After generating the component, ask Claude to compare against preview.png:
"Compare the generated component against design-handoffs/checkout/preview.png.
List any visual differences — layout, color, spacing, or typography — and fix them."
User: "I exported a checkout page from Claude Design. The bundle is at
design-handoffs/checkout-v2.bundle. Generate the React component using
shadcn/ui to match it."
Claude Code workflow:
1. Unzip bundle to design-handoffs/checkout-v2/
2. Read tokens.json → extend tailwind.config.js with extracted tokens
3. Read components.md → identify: CheckoutForm, OrderSummary, PaymentInput components
4. Read layout.json → note two-column layout collapses to single column at mobile
5. Generate CheckoutPage.tsx using Card, Input, Button from shadcn/ui
6. Apply token classes (bg-primary, text-primary, rounded-md) from Tailwind extension
7. Verify against preview.png, fix spacing deviation in OrderSummary padding