skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
yonatangross/orchestkit148 installs

storybook-mcp-integration

Reference for the Storybook MCP server itself (@storybook/addon-mcp): 6 tools across 3 toolsets (dev, docs, testing), availability detection, and per-agent toolset filtering. Use when setting up the server or calling these tools directly against components that already exist. For the end-to-end pipeline that turns a mockup into a new component and consumes these tools as one stage, use design-to-code.

How do I install this agent skill?

npx skills add https://github.com/yonatangross/orchestkit --skill storybook-mcp-integration
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill facilitates integration between Storybook and an AI agent for component discovery and testing. It contains an attack surface for indirect prompt injection because it processes data from a local Storybook MCP server to drive code generation and 'self-healing' actions. While the external dependencies are from well-known sources, the agent's reliance on potentially untrusted component metadata without explicit sanitization introduces a low-level risk.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Storybook MCP Integration

Use the Storybook MCP server (@storybook/addon-mcp) to give agents awareness of a project's actual component library — props, stories, tests, and live previews.

When to Use

  • Component generation — check existing Storybook components before creating new ones
  • Component testing — run story tests + a11y audits via MCP instead of CLI
  • Visual verification — embed story previews in chat for user confirmation
  • Component auditing — inventory components with full metadata via MCP

Quick Reference — 6 Tools, 3 Toolsets

ToolsetToolPurposeKey Inputs
devget-storybook-story-instructionsGuidance on writing stories + interaction testsnone
devpreview-storiesReturns preview URLs for stories (embeddable)stories[]: {storyId} or {absoluteStoryPath, exportName}
docslist-all-documentationFull component + docs manifest indexnone
docsget-documentationProps, first 3 stories, story index, docsid (required), storybookId (optional)
docsget-documentation-for-storyFull story source + component docscomponentId, storyName (required)
testingrun-story-testsRun component + a11y tests, pass/fail + violationsstories[] (optional), a11y boolean (default true)

Prerequisites

# Storybook 10.3+ with Vite builder (no webpack)
npx storybook@latest upgrade

# Install the addon (current: @storybook/addon-mcp@0.6.0, Apr 2026)
npx storybook add @storybook/addon-mcp

# Enable docs toolset (required for component discovery)
# In .storybook/main.ts:
#   componentsManifest: true
# NOTE: the old `experimentalComponentsManifest` flag was renamed in
# Storybook 10.3; it is now `componentsManifest` and default-on. Any
# code still passing the `experimental` prefix will warn-then-ignore.

# For Chromatic remote setups, use the standalone package instead of
# the addon (same tool surface, no local Storybook required):
#   npm i -D @storybook/mcp
#   npx storybook-mcp --registry https://chromatic.storybook.cloud

# Enable testing toolset (requires addon-vitest)
# npx storybook add @storybook/addon-vitest

# Register with Claude Code
npx mcp-add --type http --url "http://localhost:6006/mcp" --scope project

Detection Pattern

Before using Storybook MCP tools, check availability:

# Probe for storybook-mcp tools
ToolSearch(query="+storybook list-all-documentation")

# If tools found → Storybook MCP is available
# If not found → fallback to filesystem-based component discovery

Rule Details

Load rules on demand with Read("rules/<file>"):

RuleImpactDescription
component-discoveryHIGHUse list-all-documentation + get-documentation before generating new components
story-preview-verificationHIGHEmbed preview-stories URLs for visual confirmation
mcp-test-runnerCRITICALRun run-story-tests with a11y:true after component generation

Toolset Selection

Filter toolsets via X-MCP-Toolsets header to reduce agent context:

Agent RoleToolsetsRationale
component-curatordocsInventory + props only, no testing
frontend-ui-developerdev,docs,testingFull access for gen → verify loop
design-system-architectdocsComponent metadata for governance

Chromatic Remote Publishing

For teams using Chromatic, the docs toolset is publishable remotely:

  • Published at https://<chromatic-storybook-url>/mcp
  • Only docs toolset available remotely (dev + testing need local Storybook)
  • Useful for cross-team design system discovery without running Storybook locally

Graceful Degradation

Storybook MCPFallbackBehavior
Available—Use MCP tools for component discovery, testing, previews
UnavailableFilesystemGlob("**/components/**/*.tsx") + Grep for component inventory
Unavailable21st.devSearch public registry via 21st-dev-magic MCP
UnavailableManualClaude multimodal analysis of screenshots

Related Skills

  • storybook-testing — CSF3 patterns, Vitest integration, Chromatic TurboSnap
  • component-search — 21st.dev registry search (external components)
  • design-to-code — Full mockup-to-component pipeline (uses this skill in Stage 2)
  • ui-components — shadcn/ui + Radix component patterns

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/yonatangross/orchestkit/storybook-mcp-integration">View storybook-mcp-integration on skillZs</a>