storybook-scaffolder
"搭建一个新的、M3令牌感知的Storybook文件(*.stories.tsx)。"
📖 中文导读:"搭建一个新的、M3令牌感知的Storybook文件(*.stories.tsx)。" 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: storybook-scaffolder description: "Generates a Storybook story file (*.stories.tsx) with M3 design token imports and interactive variant stories. Use when documenting React components for development and QA testing." version: 2.0.0
Storybook Scaffolder Workflow (v2)
- Get component path.
- Generate
.stories.tsxfile from template. - Prepend this line to the top of the generated file:
import 'src/styles/design-tokens.css'; - Report success.