storybook
Skill7 starsChanged 2 months agoMITView on GitHub
Maintain the Storybook component catalog for the portal app. Use this skill when: (1) adding new stories for components, (2) updating existing stories after component changes, (3) running a full Storybook refresh/sync with AI assistance.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- mthines/agent-skillstheir own version, first seen Sep 25, 2026
- zeroasterisk/skillstheir own version, first seen Aug 24, 2026
- monegit/agent-skillstheir own version, first seen Aug 11, 2026
- Dragoon0x/dragoon-skillstheir own version, first seen Apr 28, 2026
- FelipeAngeli/skillstheir own version, first seen Apr 10, 2026
- DaleStudy/skillstheir own version, first seen Feb 21, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- Mindrally/skills★ 266same name
- dylantarre/design-system-skills★ 50same name
- mthines/agent-skills★ 13same name
- DaleStudy/skills★ 4same name
- Dragoon0x/dragoon-skills★ 4same name
- FelipeAngeli/skills★ 2same name
- zeroasterisk/skills★ 1same name
- monegit/agent-skills★ 0same name
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 repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- website/AGENTS.mdAGENTS.md
- cosmosdb-mongodbSkill
- documentationSkill
- resilienceSkill
- rust-best-practicesSkill
- scope-apiSkill
- scope-cliSkill
- typescriptSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 53
Import Meta and StoryObj from @storybook/react-vite
- Very specific: line 55
Use play functions for interaction testing
- Very specific: line 57
Create a fresh QueryClient inside decorators (not at module scope)
“Common” is measured: kept by at least 6 in 10 of the 5 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 Maintenance
This project uses Storybook 10 as a component catalog for the portal app (apps/portal/).
Updating the Storybook
To regenerate or update stories across the project, run the following command from the apps/portal/ directory:
cd apps/portal && npx storybook ai setupFollow its instructions precisely. The command analyzes the project's runtime providers, CSS setup, data-fetching patterns, and components, then produces updated stories with proper decorators, MSW handlers, and play functions.
Key Files
| File | Purpose |
apps/portal/.storybook/main.ts | Storybook config (framework, stories glob, Vite overrides) |
apps/portal/.storybook/preview.tsx | Shared decorators (QueryClient, MemoryRouter), mswLoader, CSS |
apps/portal/.storybook/msw-handlers.ts | Default MSW network handlers |
apps/portal/public/mockServiceWorker.js | MSW service worker (generated by npx msw init) |
Running Storybook
# From repo root (uses worktree port offset)
pnpm storybook
# From apps/portal directly
pnpm storybookThe dev server uses port ${STORYBOOK_PORT:-6100} and does not auto-open a browser.
Writing Stories Manually
Stories are co-located next to their components as <Component>.stories.tsx. Follow these conventions:
- Import
MetaandStoryObjfrom@storybook/react-vite - Tag AI-generated stories with
tags: ['ai-generated', 'needs-work'] - Use
playfunctions for interaction testing - Mock API calls with MSW handlers in
parameters.msw.handlers - Create a fresh
QueryClientinside decorators (not at module scope)
Building for CI
cd apps/portal && pnpm build-storybookThis produces a static build in storybook-static/ (git-ignored).
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.

