storybook-scaffolder

okgoogle13 的头像作者 okgoogle13

"搭建一个新的、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)

  1. Get component path.
  2. Generate .stories.tsx file from template.
  3. Prepend this line to the top of the generated file: import 'src/styles/design-tokens.css';
  4. Report success.