storybook
Skill3.9k starsChanged 3 days agoMITView on GitHub
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.
We split this skill into the rules it gives an agent
10 rules. 0 are common, 3 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Run from the workspace root (not packages/react):
- Distinctive: line 39
Run as a background process so the agent continues working.
- Very specific: line 73
Always list first: Call list-all-documentation to get the full list of valid IDs.
- Very specific: line 75
Get by ID: Call get-documentation with the exact id from the list (use storybookId to scope to one source when multiple are configured).
- Distinctive: line 76
Verify props: Never invent props or variants not present in the documentation.
- Very specific: line 77
Before writing stories: Always call get-storybook-story-instructions first — treat its output as the source of truth.
- Very specific: line 78
After changing stories: Call preview-stories and include every returned URL in your response.
- Distinctive: line 84
Do not call MCP tools before Storybook is running — they will fail silently.
- Very specific: line 85
Always: call list-all-documentation before get-documentation — never guess or derive an ID from a component name.
- Very specific: line 87
Before writing or editing stories, always call get-storybook-story-instructions — treat its output as the source of truth.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Storybook — Start Server & Use MCP
When to Use
- You need to look up a component's stories, props, or usage examples
- You are writing or editing a Storybook story
- You want to preview a component variant at a URL
- Any task that benefits from live Storybook documentation
Step 1 — Ensure Storybook Is Running
Storybook must be running before any MCP tool calls. The MCP server is served by Storybook at http://localhost:6006/mcp.
Check if it is already running
curl -s -o /dev/null -w "%{http_code}" http://localhost:6006- 200 / 3xx → Storybook is already up. Skip to Step 2.
- 000 / connection refused → Start it now.
Start Storybook
Run 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.
Verify it is ready
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; doneStep 2 — Use the primer-storybook MCP
The 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"Available Tools
| 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 |
Workflow
- Always list first: Call
list-all-documentationto get the full list of valid IDs. Never callget-documentationwithout 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"). - Match the ID: Find the entry in the list that corresponds to the component you need. IDs follow the pattern
components-<componentname>(e.g.components-button,components-actionmenu). - Get by ID: Call
get-documentationwith the exactidfrom the list (usestorybookIdto scope to one source when multiple are configured). - Verify props: Never invent props or variants not present in the documentation.
- Before writing stories: Always call
get-storybook-story-instructionsfirst — treat its output as the source of truth. - After changing stories: Call
preview-storiesand include every returned URL in your response.
Rules
- Do not call MCP tools before Storybook is running — they will fail silently.
- Always call
list-all-documentationbeforeget-documentation— never guess or derive an ID from a component name. Only useidvalues returned by this list. - Never invent props or variants not present in the documentation. Only use properties explicitly documented or shown in example stories — do not assume properties based on naming conventions or patterns from other libraries. If a property isn't documented, report it as not found and check back with the user.
- Before writing or editing stories, always call
get-storybook-story-instructions— treat its output as the source of truth.
Trending
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about primer/react
- vercel/next.js“Turbopack Sass loader does not resolve imports correctly”GitHub · Jan 1, 2024 · 7 reactions
- mui/mui-design-kits“[figma] Support Figma Code Connect ”GitHub · Jun 28, 2024 · 5 reactions
- filipedeschamps/tabnews.com.br“feat(primer/react): update version”GitHub · Dec 20, 2023 · 2 reactions
- github/docs“Fix theme mismatch”GitHub · May 18, 2023 · 2 reactions
- primer/view_components“Component status page”GitHub · Nov 29, 2021 · 2 reactions
The biggest 5 of 36 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 36
Talked about on GitHub (36 times).
On GitHub · 36
- Jan 1, 2024Turbopack Sass loader does not resolve imports correctly — vercel/next.js7 reactions · 11 comments
- Jun 28, 2024[figma] Support Figma Code Connect — mui/mui-design-kits5 reactions · 5 comments
- Dec 20, 2023feat(primer/react): update version — filipedeschamps/tabnews.com.br2 reactions · 10 comments
- May 18, 2023Fix theme mismatch — github/docs2 reactions · 13 comments
- Nov 29, 2021Component status page — primer/view_components2 reactions · 7 comments
31 more on GitHub
- Mar 9, 2026Bump the app group with 8 updates — CRRU-UK/photo-id-app1 reaction · 2 comments
- Feb 12, 2026Add `AGENTS.md` — carbon-design-system/carbon1 reaction · 1 comment
- Feb 2, 2026Bump the app group with 13 updates — CRRU-UK/photo-id-app1 reaction · 2 comments
- Nov 10, 2025deps: bump @primer/react from 37.31.0 to 38.1.0 — npm/documentation1 reaction · 4 comments
- Mar 3, 2025Update release_conductor.yml — primer/.github1 reaction
- Oct 17, 2024Docs: add a11y guidance regarding required fields — primer/design1 reaction · 2 comments
- Oct 15, 2024Fix bug where checkboxes were broken with prefers-reduced-motion — primer/view_components1 reaction · 1 comment
- Aug 30, 2024Atualiza as propriedades do componente `Tooltip` para serem compatíveis com a nova versão (`Tooltip v2`) — filipedeschamps/tabnews.com.br1 reaction · 1 comment
- Mar 28, 2024Tooltip: Update the threshold value to match with the offset — primer/view_components1 reaction · 1 comment
- Feb 28, 2023Show source code in React component examples — primer/design1 reaction
- Dec 13, 2022Add a treatment for consistent appearance of content on focus — primer/design1 reaction · 1 comment
- Nov 9, 2022Using playwright to generate snapshots — primer/view_components1 reaction · 2 comments
- Oct 19, 2022Focus zone calls error in vitest + jsdom — primer/behaviors1 reaction · 2 comments
- Oct 11, 2022Atualiza todas as dependências possíveis — filipedeschamps/tabnews.com.br1 reaction · 2 comments
- Aug 19, 2022Add a CommonJS build to the package — github/combobox-nav1 reaction · 6 comments
- Feb 16, 2022ModuleNotFoundError: Could not find module in path "" relative to "" — codesandbox/codesandbox-client1 reaction · 9 comments
- Oct 29, 2026Create: Timeline in Figma — deboramoratalla-lab/ds-lab0 reactions
- Oct 26, 2026🐛 cheatcode_install registers an MCP server with its repo URL as the command and reports success — trustmybot/plugin0 reactions
- Oct 19, 2026Add named capture modes with mode-keyed baselines (bet) — ravidsrk/frontguard0 reactions
- Oct 15, 2026Rule proposal: Enforce consistency between documented jsDoc default and actual default values — typescript-eslint/typescript-eslint0 reactions · 2 comments
- Sep 26, 2026Refatorações e ajustes finais da Milestone 3 — jeancarlier/clone-tabnews0 reactions
- Jun 24, 2026This project is not maintained anymore 😢 — github/command0 reactions · 1 comment
- Jun 11, 2026WS2 · Regenerate primer-react through the corrected registry-scoped meta-skill (HITL) — vercel-labs/ds-skill-extraction-workshop0 reactions · 3 comments
- Feb 6, 2026Upgrade React to 19, additional major dependency updates (Primer, TanStack, tRPC) — github-community-projects/private-mirrors0 reactions · 3 comments
- Nov 21, 2025User interface — panodata/suraya0 reactions · 4 comments
- Apr 11, 2025✨ 이슈 상세 페이지 UI 개선 — Seono-Na/demo-issue-api-playground0 reactions
- Mar 21, 2025IconButton should include Tooltip by default — benbalter/alt-text-generator-action0 reactions
- Mar 21, 2024Improve SSR by removing Webpack dependency — github-community-projects/org-metrics-dashboard0 reactions
- Jan 11, 2024Other relevant component libraries/frameworks — crate/crate-ui-components0 reactions
- Jan 5, 2024Add a pull request template — deven-org/boiler0 reactions
- Sep 23, 2022Element should not auto-register itself unless a browser context is found — github/markdown-toolbar-element0 reactions · 8 comments
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- langfuse/langfuse★ 37ksame name
- humanlayer/humanlayer★ 13ksame name
- Mindrally/skills★ 275same name
- microsoft/scope★ 71same name
- dylantarre/design-system-skills★ 50same name
- mthines/agent-skills★ 20same name
- G1Joshi/Agent-Skills★ 15same name
- DaleStudy/skills★ 4same name
- gabriellst/codm★ 4same name
- FelipeAngeli/skills★ 2same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- agentic-workflowsSkill
- changesetsSkill
- component-testingSkill
- create-adr-migratorSkill
- deprecationsSkill
- feature-flagsSkill
- modular-ds-accessibility-contractSkill
- modular-ds-base-componentsSkill
- modular-ds-config-componentsSkill
- modular-ds-presentational-componentsSkill
- modular-ds-spectrum-modelSkill
- modular-ds-utilitiesSkill
- slotsSkill
- style-guideSkill
- turborepoSkill
- write-skillSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

