[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B1GG84YCD7CZ9SR8WZAM82":3,"skill-same:01M7B1GG84YCD7CZ9SR8WZAM82":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7B1GG84YCD7CZ9SR8WZAM82","add-storybook-story",null,"Add new Storybook stories to an existing @grafana\u002Fcomponents component — CSF3 format, controlled wrappers for stateful components, emotion-based story layout styles.","torkelo\u002Fscenes2","torkelo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10999?v=4","01M7B1G6RRGVK2TZGTJ2813VJ4","Torkel Ödegaard","01M7B1G6SAYVTDC3NWMBPX16TB",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Ftorkelo\u002Fscenes2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fadd-storybook-story\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: add-storybook-story\ndescription: Add new Storybook stories to an existing @grafana\u002Fcomponents component — CSF3 format, controlled wrappers for stateful components, emotion-based story layout styles.\nmetadata:\n  generated: hatch@v1.2.0\n  source: .hatch\u002F_skills\u002Fadd-storybook-story\u002FSKILL.md\n---\n\n# Add Storybook stories\n\nAdd stories to the existing **$ARGUMENTS[0]** component in `@grafana\u002Fcomponents`.\n\nIf the user provided a description of what stories to add: **$ARGUMENTS**\n\n## Step 1 — Read existing files\n\n1. Read the component: `packages\u002Fcomponents\u002Fsrc\u002Fcomponents\u002F$ARGUMENTS[0]\u002F$ARGUMENTS[0].tsx`\n   — understand the props interface, variants, and interactive behavior\n2. Read existing stories (if any):\n   `packages\u002Fcomponents\u002Fsrc\u002Fcomponents\u002F$ARGUMENTS[0]\u002F$ARGUMENTS[0].stories.tsx`\n   — understand what's already covered\n3. Read existing styles:\n   `packages\u002Fcomponents\u002Fsrc\u002Fcomponents\u002F$ARGUMENTS[0]\u002F$ARGUMENTS[0].styles.ts`\n4. Scan a sibling component's stories (e.g. `StackedChart`, `ComparisonBadge`)\n   for the in-repo conventions before adding anything new.\n\n## Step 2 — Plan stories\n\nDetermine what stories to add. If the user described specific stories, create\nthose. Otherwise, ensure coverage of:\n\n- **Default** — typical usage with minimal props\n- **Each variant** — if the component has a `type`, `variant`, `size`, or\n  `mark` prop, show each option\n- **Interactive states** — disabled, loading, hovered, checked\u002Fselected\n- **With label \u002F without label** — if the component supports an optional label\n- **Edge cases** — long text, empty states, overflow behavior\n- **Combinations** — meaningful state combinations (e.g. disabled + checked)\n\n## Step 3 — Write stories\n\n### Format\n\nUse CSF3 with a typed meta. The in-repo convention is `const meta = { ... }` (let\nTS infer) rather than `Meta\u003Ctypeof Component>`:\n\n```tsx\nimport type { Meta, StoryObj } from '@storybook\u002Freact';\n\nimport { ComponentName } from '.\u002FComponentName';\n\nconst meta = {\n  title: 'Components\u002FComponentName',\n  component: ComponentName,\n  argTypes: {\u002F* controls *\u002F},\n} satisfies Meta\u003Ctypeof ComponentName>;\n\nexport default meta;\ntype Story = StoryObj\u003Ctypeof meta>;\n```\n\n### Title prefix\n\nUse a flat `Components\u002F\u003CName>` title. This repo does not currently subdivide\nthe sidebar into category folders — match the existing pattern.\n\n### Stateful components\n\nFor components with controlled state (popovers, toggles, modals), create a\nsmall wrapper rather than passing controlled props into `args`:\n\n```tsx\nconst ControlledComponentName = (\n  props: Omit\u003CComponentNameProps, 'onChange'>,\n) => {\n  const [value, setValue] = useState(props.initialValue ?? defaultValue);\n  return \u003CComponentName {...props} value={value} onChange={setValue} \u002F>;\n};\n```\n\n### Story layout styles\n\nStories that need layout (rows, columns, themed surfaces) use `@emotion\u002Fcss`\ninside the stories file, **not** a separate `.styles.ts`. Theme-aware surface\ncolors go through `@grafana\u002Fdesign-tokens`' CSS variables — refer to the\n`ComparisonBadge.stories.tsx` pattern using `GlobalCSSVariables` +\n`CSSVariablesByColorMode`:\n\n```tsx\nimport { css } from '@emotion\u002Fcss';\nimport {\n  GlobalCSSVariables,\n  type CSSVariablesByColorMode,\n} from '@grafana\u002Fdesign-tokens';\n\nconst cssVariables: CSSVariablesByColorMode = {\n  dark: { 'color-componentname-story-bg': '#181b1f' },\n  light: { 'color-componentname-story-bg': '#fbfbfb' },\n};\n\nconst getStyles = () =>\n  css({\n    backgroundColor: 'var(--color-componentname-story-bg)',\n    \u002F* layout *\u002F\n  });\n```\n\n### Render functions\n\nUse `render` functions (not `args` alone) when a story needs:\n\n- Multiple instances side by side\n- A wrapper component for controlled state\n- Custom layout or context\n\nUse `args` when a single instance with Storybook controls is sufficient.\n\n## Step 4 — Verify\n\n1. Lint:\n   ```\n   pnpm --filter @grafana\u002Fcomponents exec eslint --fix src\u002Fcomponents\u002F$ARGUMENTS[0]\u002F\n   ```\n2. Check the stories render. If Storybook is already running it will\n   hot-reload; otherwise start it with `pnpm storybook` and confirm visually.\n   \"Build passed\" is not enough for stories — verify in the browser.\n","# Add Storybook stories\n\nAdd stories to the existing **$ARGUMENTS[0]** component in `@grafana\u002Fcomponents`.\n\nIf the user provided a description of what stories to add: **$ARGUMENTS**\n\n## Step 1 — Read existing files\n\n1. Read the component: `packages\u002Fcomponents\u002Fsrc\u002Fcomponents\u002F$ARGUMENTS[0]\u002F$ARGUMENTS[0].tsx`\n   — understand the props interface, variants, and interactive behavior\n2. Read existing stories (if any):\n   `packages\u002Fcomponents\u002Fsrc\u002Fcomponents\u002F$ARGUMENTS[0]\u002F$ARGUMENTS[0].stories.tsx`\n   — understand what's already covered\n3. Read existing styles:\n   `packages\u002Fcomponents\u002Fsrc\u002Fcomponents\u002F$ARGUMENTS[0]\u002F$ARGUMENTS[0].styles.ts`\n4. Scan a sibling component's stories (e.g. `StackedChart`, `ComparisonBadge`)\n   for the in-repo conventions before adding anything new.\n\n## Step 2 — Plan stories\n\nDetermine what stories to add. If the user described specific stories, create\nthose. Otherwise, ensure coverage of:\n\n- **Default** — typical usage with minimal props\n- **Each variant** — if the component has a `type`, `variant`, `size`, or\n  `mark` prop, show each option\n- **Interactive states** — disabled, loading, hovered, checked\u002Fselected\n- **With label \u002F without label** — if the component supports an optional label\n- **Edge cases** — long text, empty states, overflow behavior\n- **Combinations** — meaningful state combinations (e.g. disabled + checked)\n\n## Step 3 — Write stories\n\n### Format\n\nUse CSF3 with a typed meta. The in-repo convention is `const meta = { ... }` (let\nTS infer) rather than `Meta\u003Ctypeof Component>`:\n\n```tsx\nimport type { Meta, StoryObj } from '@storybook\u002Freact';\n\nimport { ComponentName } from '.\u002FComponentName';\n\nconst meta = {\n  title: 'Components\u002FComponentName',\n  component: ComponentName,\n  argTypes: {\u002F* controls *\u002F},\n} satisfies Meta\u003Ctypeof ComponentName>;\n\nexport default meta;\ntype Story = StoryObj\u003Ctypeof meta>;\n```\n\n### Title prefix\n\nUse a flat `Components\u002F\u003CName>` title. This repo does not currently subdivide\nthe sidebar into category folders — match the existing pattern.\n\n### Stateful components\n\nFor components with controlled state (popovers, toggles, modals), create a\nsmall wrapper rather than passing controlled props into `args`:\n\n```tsx\nconst ControlledComponentName = (\n  props: Omit\u003CComponentNameProps, 'onChange'>,\n) => {\n  const [value, setValue] = useState(props.initialValue ?? defaultValue);\n  return \u003CComponentName {...props} value={value} onChange={setValue} \u002F>;\n};\n```\n\n### Story layout styles\n\nStories that need layout (rows, columns, themed surfaces) use `@emotion\u002Fcss`\ninside the stories file, **not** a separate `.styles.ts`. Theme-aware surface\ncolors go through `@grafana\u002Fdesign-tokens`' CSS variables — refer to the\n`ComparisonBadge.stories.tsx` pattern using `GlobalCSSVariables` +\n`CSSVariablesByColorMode`:\n\n```tsx\nimport { css } from '@emotion\u002Fcss';\nimport {\n  GlobalCSSVariables,\n  type CSSVariablesByColorMode,\n} from '@grafana\u002Fdesign-tokens';\n\nconst cssVariables: CSSVariablesByColorMode = {\n  dark: { 'color-componentname-story-bg': '#181b1f' },\n  light: { 'color-componentname-story-bg': '#fbfbfb' },\n};\n\nconst getStyles = () =>\n  css({\n    backgroundColor: 'var(--color-componentname-story-bg)',\n    \u002F* layout *\u002F\n  });\n```\n\n### Render functions\n\nUse `render` functions (not `args` alone) when a story needs:\n\n- Multiple instances side by side\n- A wrapper component for controlled state\n- Custom layout or context\n\nUse `args` when a single instance with Storybook controls is sufficient.\n\n## Step 4 — Verify\n\n1. Lint:\n   ```\n   pnpm --filter @grafana\u002Fcomponents exec eslint --fix src\u002Fcomponents\u002F$ARGUMENTS[0]\u002F\n   ```\n2. Check the stories render. If Storybook is already running it will\n   hot-reload; otherwise start it with `pnpm storybook` and confirm visually.\n   \"Build passed\" is not enough for stories — verify in the browser.\n",{"name":5,"metadata":24,"description":7},{"source":25,"generated":26},".hatch\u002F_skills\u002Fadd-storybook-story\u002FSKILL.md","hatch@v1.2.0","main","9b85ba995139627c15a6ef1cec1daec64659cf75",".agents\u002Fskills\u002Fadd-storybook-story","https:\u002F\u002Fgithub.com\u002Ftorkelo\u002Fscenes2","https:\u002F\u002Fgithub.com\u002Ftorkelo","https:\u002F\u002Fgrafana.com","Grafana Labs Co-Founder, Grafana Creator & product manager & lead architect.  ","2026-11-14 19:30:54",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add torkelo\u002Fscenes2 --skill add-storybook-story",{"tool":41,"command":42},"bunx","bunx skills add torkelo\u002Fscenes2 --skill add-storybook-story",{"tool":44,"command":45},"pnpm","pnpm dlx skills add torkelo\u002Fscenes2 --skill add-storybook-story","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftorkelo\u002Fscenes2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fadd-storybook-story\u002FSKILL.md",true,[],[50,57,64,69,74,81],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7B1QT196EFM12F7737ZFBJ3","validate-plugin","validate a Grafana plugin using the official Grafana plugin validator","https:\u002F\u002Fgithub.com\u002Ftorkelo\u002Fscenes2\u002Fblob\u002Fmain\u002Fapps\u002Fdemo-app\u002F.codex\u002Fskills\u002Fvalidate-plugin\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7B1QQGHG8JJ9MK4BY2V8879","build-plugin","build a Grafana plugin using the standard build process (frontend and backend if applicable)","https:\u002F\u002Fgithub.com\u002Ftorkelo\u002Fscenes2\u002Fblob\u002Fmain\u002Fapps\u002Fdemo-app\u002F.codex\u002Fskills\u002Fbuild-plugin\u002FSKILL.md",[],[],{"skillNo":65,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7B1QPP9RN7E1KNMRK9D8V6M","https:\u002F\u002Fgithub.com\u002Ftorkelo\u002Fscenes2\u002Fblob\u002Fmain\u002Fapps\u002Fdemo-app\u002F.claude\u002Fskills\u002Fvalidate-plugin\u002FSKILL.md",[],[],{"skillNo":70,"name":59,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7B1QN3V9SQ7H6WXNZDMQ57Q","https:\u002F\u002Fgithub.com\u002Ftorkelo\u002Fscenes2\u002Fblob\u002Fmain\u002Fapps\u002Fdemo-app\u002F.claude\u002Fskills\u002Fbuild-plugin\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7B1QJEW06858M7GC4EM46B5","stop-slop","Remove AI writing patterns from prose. Use when drafting, editing, or reviewing text to eliminate predictable AI tells.","https:\u002F\u002Fgithub.com\u002Ftorkelo\u002Fscenes2\u002Fblob\u002Fmain\u002F.hatch\u002F_skills\u002Fstop-slop\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7B1QGEPPZQQNRJRXTQVZAKC","snag-fixer","Lightweight agent for quick fixes, tweaks, and small improvements. Optimized for single-task focused work without bloating context. Used by snag workflow for sequential fix processing.","https:\u002F\u002Fgithub.com\u002Ftorkelo\u002Fscenes2\u002Fblob\u002Fmain\u002F.hatch\u002F_skills\u002Fsnag-fixer\u002FSKILL.md",[],[]]