{
  "schemaVersion": "1.0",
  "item": {
    "slug": "storybook",
    "name": "Storybook",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/ivangdavila/storybook",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/storybook",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/storybook",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=storybook",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/storybook"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/storybook",
    "agentPageUrl": "https://openagent3.xyz/skills/storybook/agent",
    "manifestUrl": "https://openagent3.xyz/skills/storybook/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/storybook/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "CSF Format (Component Story Format)",
        "body": "Default export is component meta—title, component, args, decorators\nNamed exports are stories—each export becomes a story in sidebar\nsatisfies Meta<typeof Component> for TypeScript type checking\nCSF3 uses object syntax, not functions—export const Primary = { args: {...} }"
      },
      {
        "title": "Args vs ArgTypes",
        "body": "args are actual prop values passed to component—args: { label: 'Click me' }\nargTypes configure controls UI—argTypes: { size: { control: 'select', options: ['sm', 'lg'] } }\nDefault args in meta apply to all stories—override in individual stories\nargTypes: { onClick: { action: 'clicked' } } logs events in Actions panel"
      },
      {
        "title": "Controls",
        "body": "Auto-inferred from TypeScript props—boolean becomes toggle, string becomes text input\nOverride control type: argTypes: { color: { control: 'color' } }\nDisable control: argTypes: { children: { control: false } }\nOptions for select: control: { type: 'select' }, options: ['a', 'b', 'c']"
      },
      {
        "title": "Decorators",
        "body": "Wrap stories with context—providers, layout wrappers, theme\nComponent-level in meta: decorators: [(Story) => <Provider><Story /></Provider>]\nGlobal in .storybook/preview.js: applies to all stories\nOrder matters—later decorators wrap earlier ones"
      },
      {
        "title": "Play Functions",
        "body": "Interactive testing within story: play: async ({ canvasElement }) => {...}\nUse @storybook/testing-library for queries—within(canvasElement).getByRole()\nawait userEvent.click(button) for interactions\nexpect(element).toBeVisible() for assertions—tests run in browser"
      },
      {
        "title": "Actions",
        "body": "argTypes: { onClick: { action: 'clicked' } } auto-logs to Actions panel\nOr import: import { action } from '@storybook/addon-actions'\nUse fn() from @storybook/test in Storybook 8+ for spying in play functions\nActions help verify event handlers without manual console.log"
      },
      {
        "title": "Story Organization",
        "body": "Title path creates hierarchy: title: 'Components/Forms/Button'\nStories appear in order of export—put Primary first\ntags: ['autodocs'] generates docs page automatically\nparameters: { docs: { description: { story: 'text' } } } adds story description"
      },
      {
        "title": "Common Patterns",
        "body": "Default state: export const Default = {}\nWith all props: export const WithIcon = { args: { icon: <Icon /> } }\nEdge cases: Empty, Loading, Error, Disabled states as separate stories\nResponsive: Use viewport addon parameters per story"
      },
      {
        "title": "Render Functions",
        "body": "Custom render: render: (args) => <Wrapper><Component {...args} /></Wrapper>\nAccess context in render: render: (args, { globals }) => ...\nUseful when story needs different JSX structure than default\nPrefer decorators for wrapping, render for restructuring"
      },
      {
        "title": "Configuration",
        "body": ".storybook/main.js: addons, framework, stories glob patterns\n.storybook/preview.js: global decorators, parameters, argTypes\nStories glob: stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)']\nStatic assets: staticDirs: ['../public'] for images/fonts"
      },
      {
        "title": "Common Mistakes",
        "body": "Forgetting to install addon AND add to main.js addons array\nUsing storiesOf API—deprecated, use CSF exports\nMissing component in meta—controls won't auto-generate\nDecorators returning Story without calling it: (Story) => <Story /> not (Story) => Story"
      }
    ],
    "body": "CSF Format (Component Story Format)\nDefault export is component meta—title, component, args, decorators\nNamed exports are stories—each export becomes a story in sidebar\nsatisfies Meta<typeof Component> for TypeScript type checking\nCSF3 uses object syntax, not functions—export const Primary = { args: {...} }\nArgs vs ArgTypes\nargs are actual prop values passed to component—args: { label: 'Click me' }\nargTypes configure controls UI—argTypes: { size: { control: 'select', options: ['sm', 'lg'] } }\nDefault args in meta apply to all stories—override in individual stories\nargTypes: { onClick: { action: 'clicked' } } logs events in Actions panel\nControls\nAuto-inferred from TypeScript props—boolean becomes toggle, string becomes text input\nOverride control type: argTypes: { color: { control: 'color' } }\nDisable control: argTypes: { children: { control: false } }\nOptions for select: control: { type: 'select' }, options: ['a', 'b', 'c']\nDecorators\nWrap stories with context—providers, layout wrappers, theme\nComponent-level in meta: decorators: [(Story) => <Provider><Story /></Provider>]\nGlobal in .storybook/preview.js: applies to all stories\nOrder matters—later decorators wrap earlier ones\nPlay Functions\nInteractive testing within story: play: async ({ canvasElement }) => {...}\nUse @storybook/testing-library for queries—within(canvasElement).getByRole()\nawait userEvent.click(button) for interactions\nexpect(element).toBeVisible() for assertions—tests run in browser\nActions\nargTypes: { onClick: { action: 'clicked' } } auto-logs to Actions panel\nOr import: import { action } from '@storybook/addon-actions'\nUse fn() from @storybook/test in Storybook 8+ for spying in play functions\nActions help verify event handlers without manual console.log\nStory Organization\nTitle path creates hierarchy: title: 'Components/Forms/Button'\nStories appear in order of export—put Primary first\ntags: ['autodocs'] generates docs page automatically\nparameters: { docs: { description: { story: 'text' } } } adds story description\nCommon Patterns\nDefault state: export const Default = {}\nWith all props: export const WithIcon = { args: { icon: <Icon /> } }\nEdge cases: Empty, Loading, Error, Disabled states as separate stories\nResponsive: Use viewport addon parameters per story\nRender Functions\nCustom render: render: (args) => <Wrapper><Component {...args} /></Wrapper>\nAccess context in render: render: (args, { globals }) => ...\nUseful when story needs different JSX structure than default\nPrefer decorators for wrapping, render for restructuring\nConfiguration\n.storybook/main.js: addons, framework, stories glob patterns\n.storybook/preview.js: global decorators, parameters, argTypes\nStories glob: stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)']\nStatic assets: staticDirs: ['../public'] for images/fonts\nCommon Mistakes\nForgetting to install addon AND add to main.js addons array\nUsing storiesOf API—deprecated, use CSF exports\nMissing component in meta—controls won't auto-generate\nDecorators returning Story without calling it: (Story) => <Story /> not (Story) => Story"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ivangdavila/storybook",
    "publisherUrl": "https://clawhub.ai/ivangdavila/storybook",
    "owner": "ivangdavila",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/storybook",
    "downloadUrl": "https://openagent3.xyz/downloads/storybook",
    "agentUrl": "https://openagent3.xyz/skills/storybook/agent",
    "manifestUrl": "https://openagent3.xyz/skills/storybook/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/storybook/agent.md"
  }
}