Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add strongeron/storybook-workbench/plugin install storybook-workbenchWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/strongeron/storybook-workbench/sb-stories)<a href="https://agentmods.dev/skills/strongeron/storybook-workbench/sb-stories"><img src="https://agentmods.dev/badge/skills/strongeron/storybook-workbench/sb-stories/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/strongeron/storybook-workbench/sb-stories"><img src="https://agentmods.dev/badge/skills/strongeron/storybook-workbench/sb-stories.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00059 | $0.03217 |
| Opus 5 | $0.00030 | $0.01608 |
| Sonnet 5 | $0.00012 | $0.00643 |
| Haiku 4.5 | $0.00006 | $0.00322 |
Grade A, and why
sb-stories scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.
sb-stories — one component, its real states
The default Build mode. The component exists in src/components/; you write its visible-states story.
Before authoring (ask yourself)
- Is it actually used? Check
components.real[]in.storybook/project-inventory.json. If it's indead[], remove it — don't write a story. If it'svendor(shadcnui/), deprioritize. - Which states change behavior/appearance materially? Refuse Cartesian combinations. Per-primitive
minimum tables in
references/anti-patterns.md(Button 8, Input 8, Modal 5, Form 6). Read.storybook/component-states.jsoninstead of guessing — if it's missing, generate it first:scripts/extract-states.sh. (Bigger extraction context:references/extraction-workflow.md.) To render all those states on one canvas, use theStateGridwrapper (variants × states →StateMatrix) fromsb-wrappers— don't hand-roll the grid. These are the component-time wrappers; the data wrappers (ProjectInventory / DesignSystemHealth / AppFlowGraph …) come after their own steps. - Which states does THIS app actually ship? Read
.storybook/component-usage.json(sb-inventory'sextract-component-usage.sh— generate it if missing). Useprops.<prop>.valuesto prioritize the variants real call sites pass; for anything indeclaredButUnused(e.g.variant=dangernever used), still author the state for completeness but tag it['usage:unused']and note "not used in this app" — don't pad the catalog with states prod never renders. - You don't author per-component docs by hand — they're composed once. Every component's autodocs
page already gains a "Real usage in this app" band: the
UsageSectionblock (wired once intopreview.tsdocs.pagebysb-setup) renders a "Where it's used" map per component — the pages it lands on, what nests it, what it renders, the tokens it pulls — read from the usage graph (component-pages.json). So when you add a story, don't hand-add a usage block; just runrefresh-usage.shso the graph is current and the band populates. To explore the whole graph interactively (any token / component / page → everywhere it's used, clickable), scaffold theUsageExplorerwrapper (sb-wrappers). Details + the docs.page composition live insb-inventory(§ "Real usage in autodocs") andsb-setup(docs-page composition). - Factory? YES if 3+ stories share a data shape. Read
.storybook/prop-shapes.json(candidates flagged withliveUsages) — if missing, runscripts/extract-prop-shapes.shfirst. Thenscripts/scaffold-factory.sh <Type> <import-path>and fill the deterministic stub (references/factory-patterns.md); otherwise inlineargs. - Title taxonomy? Match
storySort.order; if the project has none, pick one viareferences/directory-structure.md. - Does a
playactually earn its place? Only write one for an interaction, async data, a portal, a CSS-driven state, or accessibility — never a baretoBeVisible()(anti-pattern 34). And the project needs exactly oneCssCheck(anti-pattern 33): one story asserting a realgetComputedStyletoken value, the only proof the shared preview loaded the app's CSS. Both come fromnpx storybook ai setup's prompt;validate-stories.shcheck 13 + the project tally enforce them. - A "playground" / showcase story is Controls-driven, not click/hover. If a reviewer asks "what is
this playground story — can I click or hover it?": a playground is the default story with its Controls
panel — you change
args(variant, size, state) in the Controls tab and the canvas re-renders. It is NOT canvas interaction; hover/focus/active live in aStateGridinteraction matrix (addon-pseudo-states), and scripted click→assert flows live in aplayfunction. So: Controls = try props · pseudo-states = hover/focus columns ·play= a real interaction. Say which one the story is. - Is the Controls panel wired? A component story must expose a usable Controls panel — it's the
reviewer's prop sandbox and powers the autodocs ArgTypes table. The react-vite default
(
react-docgen) does NOT infer TS unions into selects, so declareargTypesfor every enum/union prop (control: 'select'|'inline-radio'+options), group withtable.category, hide escape-hatch / non-serializable props (className, refs, icon / callback / data props), and disable controls on render-only showcase stories (parameters: { controls: { disable: true } }). Full pattern + the docgen gotcha:references/without-mcp.md§13. (The panel itself must be visible —sb-setupwrites amanager.tswithshowPanel: true;sb-audit'saudit-controls.shflags any component story missing this wiring.)
What ships with it
20 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 799 B
- CONTEXT.md 14 KB
- references/anti-patterns.md 15 KB
- references/composition-patterns.md 12 KB
- references/directory-structure.md 9.3 KB
- references/extraction-workflow.md 21 KB
- references/factory-patterns.md 26 KB
- references/test-wiring.md 6.9 KB
- references/validate-workflow.md 10 KB
- references/with-mcp.md 5.9 KB
- references/without-mcp.md 15 KB
- scripts/check-story-ready.sh 6.1 KB runs code
- scripts/discover-runtime.py 6.6 KB runs code
- scripts/extract-prop-shapes.sh 9.5 KB runs code
- scripts/extract-states.sh 9.0 KB runs code
- scripts/page-patterns.py 5.9 KB runs code
- scripts/scaffold-factory.sh 5.0 KB runs code
- scripts/scaffold-page-story.py 4.1 KB runs code
- scripts/validate-stories.sh 13 KB runs code
- templates/controlled-component-story.tsx 3.0 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 178 lines · 59 tokens per session scan A 5f73a9ea5084
sb-stories is a skill published in the GitHub repository strongeron/storybook-workbench (33 stars, last pushed 2mo ago), licensed MIT. It adds 59 tokens to every session and 3,217 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
skillshare-ui-website-style
Skillshare frontend design system for the React dashboard (ui/) and Docusaurus website (website/). Use this skill whenever you: build or modify a dashboard page or component in ui/src/, style or layout website pages or custom CSS in website/, create new React components for the dashboard, add pages to the dashboard…
21st-ui
Find, install, and generate UI with 21st.dev. Use when the user asks for a UI component (pricing table, hero, navbar, dashboard, form, etc.), wants design inspiration, needs a brand logo as an SVG component, or wants to generate new UI from a prompt.
vercel-react-view-transitions
Guide for implementing smooth, native-feeling animations using React's View Transition API ( component, addTransitionType, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components…
extract-source-sample
Given the path to a finished content-goose ad-run folder, extract everything that defines that ad — recipe shot list, VO script, characters, voices, world, atom-skills, master mp4 — and emit a source-sample.json in the exact shape the upload-ad-sample skill writes to the Goose Ads library. Also links every character…
vercel-react-native-skills
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
remotion-to-hyperframes
Port an existing Remotion (React) composition to HyperFrames HTML. Use ONLY when the user explicitly asks to port/convert/migrate/translate a Remotion source. Do NOT use: (a) authoring a new HyperFrames composition; (b) Remotion mentioned in passing; (c) Remotion code shared as reference only; (d) "same video as my…