storybook
Skill1 starsChanged 3 months agoMITView on GitHub
Build, review, debug, configure, migrate, or plan Storybook 10 UI workshops with current docs. Use for storybook, create storybook, CSF3, CSF Next, Meta, StoryObj, definePreview, preview.meta, args, argTypes, decorators, parameters, tags, autodocs, play functions, storybook/test, @storybook/react-vite, @storybook/nextjs-vite, @storybook/addon-docs, @storybook/addon-a11y, @storybook/addon-vitest, portable stories, composeStories, main.ts, preview.ts, ESM config, Chromatic, and upgrades from Storybook 8/9.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- primer/reacttheir own version, first seen Nov 1, 2026
- DaleStudy/skillstheir own version, first seen Nov 1, 2026
- mthines/agent-skillstheir own version, first seen Oct 30, 2026
- humanlayer/humanlayertheir own version, first seen Oct 25, 2026
- monegit/agent-skillstheir own version, first seen Oct 13, 2026
- G1Joshi/Agent-Skillstheir own version, first seen Oct 13, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- langfuse/langfuse★ 38ksame name
- humanlayer/humanlayer★ 13ksame name
- primer/react★ 3.9ksame name
- Mindrally/skills★ 275same name
- microsoft/scope★ 93same name
- dylantarre/design-system-skills★ 50same name
- mthines/agent-skills★ 22same name
- G1Joshi/Agent-Skills★ 15same name
- gabriellst/codm★ 5same name
- DaleStudy/skills★ 4same name
2 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 repository81 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agents-mdSkill
- base-uiSkill
- better-authSkill
- brainstormSkill
- bullmqSkill
- bunSkill
- clickhouseSkill
- clone-to-tempSkill
- compound-uiSkill
- copywritingSkill
- create-durable-planSkill
- d3Skill
- date-fnsSkill
- decimal-jsSkill
- deduplicateSkill
- design-engineerSkill
- designSkill
- drizzle-ormSkill
- effectSkill
- elysia-architectureSkill
- elysiaSkill
- evlogSkill
- feedsmithSkill
- grokSkill
- handoffSkill
- heyapiSkill
- impitSkill
- intlayerSkill
- jsdocSkill
- kafkaSkill
- kill-legacySkill
- legend-stateSkill
- loopSkill
- mantine-hooksSkill
- mobbinSkill
- motionSkill
- oxfmtSkill
- oxlintSkill
- permixSkill
- plain-languageSkill
- playwrightSkill
- react-boundariesSkill
- react-emailSkill
- reactSkill
- reorganizeSkill
- researchSkill
- schema-dtsSkill
- sentrySkill
- seoSkill
- setup-competitors-mdSkill
- setup-copywriting-mdSkill
- setup-icp-mdSkill
- setup-project-mdSkill
- simplify-layoutSkill
- subagentsSkill
- tailwindSkill
- tailwind-variantsSkill
- takumiSkill
- tanstack-chartsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 1 is distinctive, and 6 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill when work touches Storybook 10 (or upgrades into it): stories, CSF, config, docs, interaction/a11y/visual tests, Vitest …
- Very specific: line 26
Write CSF3 by default (satisfies Meta, StoryObj).
- Very specific: line 27
Import test utilities from storybook/test (and manager/preview APIs from storybook/manager-api / storybook/preview-api).
- Very specific: line 29
Prefer @storybook/addon-vitest over @storybook/test-runner for Vite React/Vue/Svelte projects.
- Very specific: line 30
Keep stories colocated with components.
- Very specific: line 31
Use tags deliberately (autodocs, !autodocs, !test, custom filters).
- Distinctive: line 36
Prefer the repo's existing checks.
“Common” is measured: kept by at least 6 in 10 of the 10 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
Use this skill when work touches Storybook 10 (or upgrades into it): stories, CSF, config, docs, interaction/a11y/visual tests, Vitest addon, portable stories, framework packages, or migrations from 8.x/9.x.
Workflow
- Inspect the local Storybook surface before changing code:
- Package versions for
storybook, framework package (e.g.@storybook/react-vite,@storybook/nextjs-vite),@storybook/addon-docs,@storybook/addon-a11y,@storybook/addon-vitest, Node, Vite/Vitest, and React/Vue/Svelte peers. - Config:
.storybook/main.ts|js(must be ESM),preview.ts|tsx, optionalmanager.ts,vitest.setup.ts, story globs,staticDirs. - Story style: CSF3
Meta/StoryObj, experimental CSF Next (definePreview/preview.meta/meta.story), MDX docs, tags. - Testing path: Vitest addon, legacy test-runner, portable
composeStories, Chromatic/visual, a11y.
- Package versions for
- Refresh current docs when versions are unclear or work touches upgrades, ESM, CSF Next, or Vitest browser mode. Start from source-map.md.
- For install, frameworks,
main/preview, core features vs addons, and CLI, use setup-core.md. - For CSF3/CSF Next, args, render, decorators, parameters, tags, and docs, use writing-stories.md.
- For
play,storybook/test, Vitest addon, portable stories, and a11y, use testing.md. - For builds, CI, doctor/upgrade, 8→9→10 package moves, and common failures, use production-migration.md.
Implementation Judgment
- Target Storybook 10 unless the repo is intentionally pinned. Prefer framework packages for types/imports (
@storybook/react-vite), not orphaned renderer-only packages. - Write CSF3 by default (
satisfies Meta,StoryObj). Treat CSF Next as experimental opt-in; do not rewrite a stable CSF3 codebase without approval. - Import test utilities from
storybook/test(and manager/preview APIs fromstorybook/manager-api/storybook/preview-api). Do not reintroduce@storybook/test,@storybook/addon-interactions, or@storybook/addon-essentials. - Controls, actions, viewport, and interactions live in core. Install
@storybook/addon-docs,@storybook/addon-a11y, and@storybook/addon-vitestwhen those features are needed. - Prefer
@storybook/addon-vitestover@storybook/test-runnerfor Vite React/Vue/Svelte projects. Next.js needs@storybook/nextjs-vitefor the Vitest addon. - Keep stories colocated with components. Prefer
args+ Controls over story-local React state; useplayfor interactions and assertions. - Use tags deliberately (
autodocs,!autodocs,!test, custom filters). Titles/componenton meta must be statically analyzable. .storybook/main.*must be valid ESM (norequire/__dirname). Useimport.meta.urlfor path math.
Verification
Prefer the repo's existing checks. For meaningful Storybook changes, include the relevant subset:
bun run storybook(or project script) smoke that stories compile and render.bunx storybook buildwhen changingmainconfig, framework, Vite aliases, or ESM boundaries.bunx storybook doctorafter upgrades or mismatched@storybook/*versions.- Focused Vitest story project (
vitest --project=storybook) or UI testing widget when changingplay/a11y/coverage. - Typecheck for
Meta/StoryObj, framework imports, andstorybook/testusage. - Visual/Chromatic or a11y smoke when those pipelines are in the repo.
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.

