Use when: starting, checking, or using the Storybook dev server; looking up Primer React component stories, props, or documentation; previewing component variants; writing or verifying Storybook stories; using the primer-storybook MCP to explore components. Covers starting Storybook, checking if it is running, and using MCP tools (list-all-documentation, get-documentation, get-storybook-story-instructions, preview-stories) to look up components.
73
90%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
Storybook must be running before any MCP tool calls. The MCP server is served by Storybook at http://localhost:6006/mcp.
curl -s -o /dev/null -w "%{http_code}" http://localhost:6006Run from the workspace root (not packages/react):
npm startThis starts the Storybook dev server on http://localhost:6006. It takes ~3–10 seconds.
Run as a background process so the agent continues working.
Poll until the server responds:
until curl -s -o /dev/null -w "%{http_code}" http://localhost:6006 | grep -q "200\|301\|302"; do sleep 1; doneprimer-storybook MCPThe primer-storybook MCP is configured in .vscode/mcp.json as an HTTP server at http://localhost:6006/mcp.
Load deferred tools before calling them:
tool_search_tool_regex pattern: "mcp_primer-storyb"| Tool | When to Use |
|---|---|
mcp_primer-storyb_list-all-documentation | Discover all available component and documentation IDs — call once per task |
mcp_primer-storyb_get-documentation | Retrieve full docs, props, and examples for a component by id |
mcp_primer-storyb_get-documentation-for-story | Get docs for a specific story variant not covered by get-documentation |
mcp_primer-storyb_get-storybook-story-instructions | Get framework-specific imports and story patterns — always call before writing/editing stories |
mcp_primer-storyb_preview-stories | Get live preview URLs for stories — always include returned URLs in your response |
list-all-documentation to get the full list of valid IDs. Never call get-documentation without first obtaining an ID from this list. Do not guess or infer IDs from component names (e.g. "button" is wrong — the correct ID is "components-button").components-<componentname> (e.g. components-button, components-actionmenu).get-documentation with the exact id from the list (use storybookId to scope to one source when multiple are configured).get-storybook-story-instructions first — treat its output as the source of truth.preview-stories and include every returned URL in your response.list-all-documentation before get-documentation — never guess or derive an ID from a component name. Only use id values returned by this list.get-storybook-story-instructions — treat its output as the source of truth.b111781
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.