strongeron/storybook-workbench/sb-hub
Claude Code and agent skill by strongeron/storybook-workbench
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Hub for the Storybook CSF3 bundle — diagnose a repo, orchestrate the audit→stories pipeline, or name the next sb-* step. Use for 'set up Storybook', 'audit my app', 'where do I start', 'what's next'.
Install
npx vskill@latest install strongeron/storybook-workbench/sb-hubSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as strongeron/storybook-workbench/sb-hub.
sb-hub — onboarding check · orchestrator · navigator
The hub. You don't author here — you inspect state and route. Three read-only modes; pick by intent. Read CONTEXT.md once for shared vocabulary, the storage map, and the resume protocol.
Load by mode (don't pull both refs up front):
- `references/runbook.md` — the navigator engine (state detection → one next step). Load it for
Mode 0 / Mode 2 (diagnose / "what's next").
- `references/end-to-end-flow.md` (~220 lines) — the full pipeline worked example for "messy app →
design system". Load it only for Mode 1 (orchestrate a full audit). Do NOT load it for a Mode-0 onboarding check or a Mode-2 next-step lookup — runbook.md is all those need.
Canonical context (one source). The bundle has exactly one CONTEXT.md (shared vocab · STORAGE MAP · resume). It's never hand-duplicated: in the bundle/plugin install every skill reads this one file (CONTEXT.md / ${CLAUDE_PLUGIN_ROOT}/CONTEXT.md); a standalone npx skills add <skill> ships a byte-identical copy the build vendors, refreshed on update. `sb-hub` is the orchestrator — if skills are installed separately, route through sb-hub so the pipeline + shared vocabulary stay authoritative.
Resolve the bundle
Scripts live in scripts/. In this repo: ${CLAUDE_PLUGIN_ROOT}/scripts/. When installed as a plugin, use ${CLAUDE_PLUGIN_ROOT}/scripts/.
Pick the mode
| User intent | Mode | |
|---|---|---|
| "is this ready", "where do I start", fresh/unknown repo | 0 · Onboarding check | |
| "audit this app", "do the whole thing", "build Storybook for this app" | 1 · Orchestrate | |
| "what's next", or after any verb appends to the ledger | 2 · Navigate (default) | |
| "this is wrong", "strange behavior", "report a bug", a skill misfired | 3 · Report |
Mode 0 — Onboarding check (phase-0 diagnose, read-only)
A fresh messy app: probe the stack + readiness before any verb, print a report, recommend the first step. No prompts, no writes — re-runnable.
Worked example — a half-migrated app (Storybook installed, nothing audited yet):
→ Storybook exists but no discovery JSON and location undecided, so don't jump to sb-stories. Name `sb-setup` first (to record the stories location), then `sb-inventory`. That ordering — setup before inventory before stories — is the whole point of the gate: the [info]/[warn] lines are the routing signal, not noise.
Everything the bundle writes lives under .storybook/ (CONTEXT.md STORAGE MAP) — flag if you ever see outputs elsewhere. The one decision is where stories go; if undecided, name sb-setup (it asks).
Discovery is precomputed. The discovery layers are JSON under.storybook/:project-inventory(+tokens.map,storyCoverage) ·component-usage·flows·design-system-health·component-states·prop-shapes·page-patterns·runtime.The first four are rendered in Storybook (autodocs embeds + wrappers) and refreshed together byrefresh-usage.sh; the rest are authoring inputs (regenerated on demand). **Never re-derive by shellscan what a script already wrote to.storybook/*.json** — Read the field.
Then print `→ Start: <first verb>` — sb-setup if NO_STORYBOOK, else sb-inventory. Don't run the verb; name it and stop. For the full new-project arc, hand to Mode 1.
Mode 1 — Orchestrate (run the whole audit → stories)
"Audit this app end to end." Run the pipeline in order, gating between phases — never advance until the prior artifact exists (the discovery scripts write atomically, so an existing JSON is complete). You don't run sibling scripts directly; you invoke each focused skill and verify its output.
- `sb-setup` — if Mode 0 reported
NO_STORYBOOK, or stories location is undecided. GATE:.storybook/+"storybook"in package.json, ANDstoriesLocationrecorded in.storybook/audit/status.md(sb-setup asks the user — isolated.storybook/stories/vs co-located), AND.storybook/runtime.jsonexists (discover-runtime.py— provider tree / root-CSS / portals / MSW the shared preview must supply), before step 2. - `sb-inventory` — real-vs-slop + dominant design system. GATE:
.storybook/project-inventory.jsonexists. - `sb-health` — design-system health. GATE:
.storybook/design-system-health.jsonexists; ifdesignSystem.mixed/ heavy raw-hex, surface the/ds-runbookhandoff before authoring. - `sb-flows` — route map + nav edges. GATE:
.storybook/flows.jsonexists. - `sb-stories <Component>` — author a story for each component that needs one: work down
components.storyCoverage.needsStory[] (own components without a story, top-imported first), each self-gating with validate-stories.sh. The honest progress meter is storyCoverage.withRegisteredStory/ needsCount when storyCoverage.source == "storybook-index" (reconciled against Storybook's index.json — the stories Storybook actually registers); otherwise withColocatedStory/needsCount (heuristic; withStory is a loose upper bound — it also counts components a story merely imports to mock). Re-run sb-inventory (or sb-audit) after authoring to refresh coverage from the index and shrink needsStory[] — iterate until empty.
- `sb-wrappers` — render each step's output as a view:
ProjectInventory(after step 2),DesignSystemHealth/TokenMatrix(after step 3's health),AppFlowGraph/JourneyGraph(after step 4), andStateGrid/StateMatrixwhile authoring stories (step 5). The data wrappers need their step's JSON first — see sb-wrappers "When in the flow". - `sb-audit` — periodic drift survey + decision board once stories land; runs
refresh-usage.sh(below).
Figma-originated design system (optional branch, after step 1). The pipeline above is code-first (audit what exists). When the source of truth is an approved Figma file, insert `sb-figma` to establish foundation-token parity before authoring: it captures the Figma MCP variables to .storybook/figma/, writes .storybook/figma-token-parity.json (color/spacing/type, OKLCH→hex), wires the Foundations/Colors|Tokens|Type stories' figmaVar/figmaHex, and reports drift. It feeds — doesn't replace — sb-health (step 3): health checks the code-internal token set; sb-figma adds the design↔code axis health can't see. (Delivering approved components from Figma is also sb-figma, authored via sb-stories; iterating undecided designs stays sb-explore.)
Append a one-line finding to .storybook/audit/findings.md after each phase. Stop on the first GATE that fails and tell the user which verb to fix. (Pattern: ordered pipeline with hard gates, like lfg.)
Keep rendered data fresh (the usage layer). The four rendered JSONs (inventory · component-usage · flows · design-system-health) feed the autodocs usage embed — UsageSection wired once into preview.ts docs.page adds "Real usage in this app" to every component's Docs and each Foundation (Colors/Semantic/Typography/Scales = token tables, Health = audit findings). refresh-usage.sh --docs re-runs all four together so a rebuild reflects reality; sb-audit does this each pass, and it belongs in CI before storybook build. (Setup wires the docs.page composition — see sb-setup install-wizard.)
Mode 2 — Navigate (default — name the single next step)
Inspect state + ledger, recommend exactly one next surgical skill (whose prerequisites are met).
If DRIFT lists files, the discovery JSONs no longer match the code — route to `sb-inventory` (or `sb-audit` for a periodic pass) to refresh before naming the next step: its refresh-usage.sh re-runs inventory/usage/flows AND reconciles story coverage against Storybook's own index.json (authoritative, not a basename guess). Then route — name exactly one:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sb-hub/SKILL.md
Popularity
- Repository stars
- 35
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/strongeron/storybook-workbench/sb-hub)