About sb-ship
sb-ship is a skill for moving Storybook Explore experiments into production components while preserving their history. It guides developers through choosing an update path, validating stories, recording decisions, and refreshing usage data.
Key features
- 01Promote new or existing components
- 02Preserve Explore stories as history
- 03Validate production stories
- 04Record and confirm decisions
- 05Refresh component usage data
Use cases
- 01Graduate a new Explore component
- 02Update a component from an experiment
- 03Keep a live V1 during migration
- 04Refresh usage after shipping
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ strongeron/ storybook-workbench --skill sb-shipAfter installing, type/sb-shipin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
CONTEXT.mdagents/openai.yamlreferences/propagate-workflow.mdscripts/find-stories-by-tag.shvalidate-stories.shtemplates/design-decisions.mdDetails
From the project READMEsb-ship — graduate, preserving history
Event-triggered when an Explore iteration meets the graduation gate. The one rule that matters:
preserve the experiment — cp, never git mv. The Explore story stays as design history;
git mv here is the destructive bug propagate-workflow.md exists to prevent. Load
references/propagate-workflow.md before any Ship action — it's the only reference
this skill needs; Do NOT load the sb-wrappers/sb-audit refs (lifecycle, galleries, composition) for
a Ship.
Decide the path (ask yourself)
- Did the Explore define its own component file, or iterate on an existing one? → Path A vs Path B.
- Path B: evolve in place (B1) or keep V1 in
_legacy/(B2)? B2 only when V1 still has live callsites needing a migration window. - Did the import path change? If yes →
ast-grepcallsites. If not → skip it. - Other tagged stories that should flip? (a Compare
decision:pending→decision:chosen+ winner.)
Execute
- Path A — NEW component.
cpthe component explore→components, write a fresh production stories file to the recordedstoriesLocation(.storybook/audit/status.md; the rule lives inCONTEXT.md§STORIES LOCATION — never scatter) — don'tcpthe Explore stories (production has different concerns: autodocs, no decision metadata), validate, thenast-grepcallsites only if a path changed. - Path B — UPDATE existing. Apply the Explore's diffs into the production component + stories
in place;
ast-greponly if the import path changed. - Both — close the loop IN PLACE (no
git mv):tags: ['explore','decision:chosen','archived','!autodocs','!test']+parameters.decision = { status, winner, date, shippedTo }. Confirm withfind-stories-by-tag.sh decision:chosen.
Gate + next
Run the bundled scripts/validate-stories.sh on the new production story (in the bundle:
${CLAUDE_PLUGIN_ROOT}/scripts/validate-stories.sh, or
${CLAUDE_PLUGIN_ROOT}/scripts/). Confirm the flip with scripts/find-stories-by-tag.sh decision:chosen. Append the decision to the ledger (templates/design-decisions.md); the graduated experiment stays put.
Re-enter the usage flow. A graduated component is new to src/ — it isn't in the rendered JSONs
yet, so its Docs "Real usage" band and storyCoverage are blank. Trigger the one-command usage refresh
(refresh-usage.sh, owned by sb-audit/sb-inventory) so the new component enters component-usage.json
/ project-inventory.json; a Storybook rebuild then shows its real usage. Then /sb-hub.