storybook-to-design-system
Installation
SKILL.md
storybook-to-design-system
Two related capabilities:
- Build an in-app "design system" gallery — a single page in your running app that renders every component story, grouped and browsable, generated from the same
*.stories.tsxfiles Storybook uses. One source of truth, two surfaces (real Storybook + an in-app page that needs no separate deploy and lives behind your app's auth). - Reach ~100% Storybook coverage — a parallel-agent fan-out that authors stories for every component across its states, one autonomous PR per domain.
Step 0 — ask the user first (do not assume)
Before building, ask:
- What should the page be called / what route? (e.g.
/design-system,/components,/styleguide,/ui.) Use their answer everywhere below in place of/design-system. - Coverage scope & target — every component, or specific domains? A hard 100% or "cover all presentational components, skip data/router-coupled ones with documented reasons"? (The latter is almost always the right answer — see "What to skip".)
- Merge autonomy — should per-domain PRs auto-merge once CI is green + review approves, or stop for a human merge? (On a shared/production repo, default to "open PRs, human merges," unless the user opts into auto-merge.)
- Implementer model — the fan-out is mechanical; run those agents on a cheaper tier to cut cost (see
delegate-implementation). The orchestrator plans + reviews.