用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/InugamiDev/ultrathink-oss --skill storybook命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Unified design foundations — design system architecture, tokens, component specs, visual principles, creative vision, figma integration, plus brand design system loader (66 real brands via DESIGN.md). Absorbs design, design-system, design-systems, design-principles, design-router, creative-vision, figma, design-md.
Render, summarize, and present markdown documents and structured content in multiple output modes
Ultra UI skill - combines Google's DESIGN.md spec (machine-readable design tokens) with the ui-ux-pro-max knowledge base (91 styles, 161 palettes, 73 font pairings, 161 products, 104 UX guidelines, 25 chart types). Generates lint-clean DESIGN.md files, validates token references and WCAG contrast, exports Tailwind/DTCG tokens, and diffs design systems version-over-version.
基于 SOC 职业分类
| name | storybook |
| description | UI component development environment for building, testing, and documenting components in isolation |
| layer | domain |
| category | documentation |
| triggers | ["storybook","component story","CSF","visual testing","chromatic"] |
| linksTo | ["react","design-systems","testing-patterns","tailwindcss"] |
| linkedFrom | ["code-writer","code-reviewer"] |
| riskLevel | low |
| memoryReadPolicy | selective |
| memoryWritePolicy | none |
| sideEffects | [] |
UI component development environment for building, testing, and documenting components in isolation. Enables interactive exploration via args/controls, interaction testing with play functions, and visual regression via Chromatic.
CSF3 — Default export for metadata, named exports for stories:
const meta = { component: Button, tags: ['autodocs'] } satisfies Meta<typeof Button>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Primary: Story = { args: { variant: 'primary', children: 'Click me' } };
Args & Controls — Expose props as interactive knobs via argTypes.
Decorators — Wrap with providers/theme: decorators: [(Story) => <Provider><Story /></Provider>]
Play Functions — Interaction tests using @storybook/test:
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
await userEvent.type(canvas.getByRole(), );
(canvas.()).();
}
Autodocs — tags: ['autodocs'] on meta for automatic documentation pages.
Add-ons — addon-a11y, addon-viewport, addon-backgrounds, addon-actions.
Chromatic — Visual regression in CI. Exclude with chromatic: { disableSnapshot: true }.
MSW — Mock APIs per-story via parameters.msw.handlers.
Composition — Import from other Storybook instances via refs in .storybook/main.ts.
| Anti-Pattern | Fix |
|---|---|
| Implementation details in play functions | Query by role/label, assert visible behavior |
| One mega-story with all variants | One story per meaningful state |
| Skipping autodocs tags | Add tags: ['autodocs'] by default |
| Hardcoded data without args | Define args and argTypes on meta |
| App-level providers imported globally | Scope decorators per-story or per-meta |
react | design-systems | testing-patterns | tailwindcss