用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/johnalbertini14-glitch/openclaw-skills --skill storybook命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | Storybook |
| description | Build component stories with proper args, controls, decorators, and testing patterns. |
| metadata | {"clawdbot":{"emoji":"📖","requires":{"bins":["npx"]},"os":["linux","darwin","win32"]}} |
satisfies Meta<typeof Component> for TypeScript type checkingexport const Primary = { args: {...} }args are actual prop values passed to component—args: { label: 'Click me' }argTypes configure controls UI—argTypes: { size: { control: 'select', options: ['sm', 'lg'] } }argTypes: { onClick: { action: 'clicked' } } logs events in Actions panelargTypes: { color: { control: 'color' } }argTypes: { children: { control: false } }control: { type: 'select' }, options: ['a', 'b', 'c']decorators: [(Story) => <Provider><Story /></Provider>].storybook/preview.js: applies to all storiesplay: async ({ canvasElement }) => {...}@storybook/testing-library for queries—within(canvasElement).getByRole()await userEvent.click(button) for interactionsexpect(element).toBeVisible() for assertions—tests run in browserargTypes: { onClick: { action: 'clicked' } } auto-logs to Actions panelimport { action } from '@storybook/addon-actions'fn() from @storybook/test in Storybook 8+ for spying in play functionstitle: 'Components/Forms/Button'tags: ['autodocs'] generates docs page automaticallyparameters: { docs: { description: { story: 'text' } } } adds story descriptionexport const Default = {}export const WithIcon = { args: { icon: <Icon /> } }render: (args) => <Wrapper><Component {...args} /></Wrapper>render: (args, { globals }) => ....storybook/main.js: addons, framework, stories glob patterns.storybook/preview.js: global decorators, parameters, argTypesstories: ['../src/**/*.stories.@(js|jsx|ts|tsx)']staticDirs: ['../public'] for images/fontsstoriesOf API—deprecated, use CSF exportsStory without calling it: (Story) => <Story /> not (Story) => Story