You ask an AI agent to update a login form: add a show-password toggle, a "Remember me" checkbox, and a reset link. Minutes later, the PR lands and the build is green. Then you open the browser and find a mess: the agent built its own checkbox instead of using your design system, mixed up button props, and broke keyboard focus. Catching that means clicking through dozens of Storybook stories by hand.
In stable Storybook 11 (released December 1, 2026), that workflow is rebuilt: the agent inspects your design system and runs real browser tests before calling you in. The release brings official agent skills, a headless CLI, a UI review page, and CSF 4.
Agent skills in git worktrees and the UI review page
Previously, connecting agents meant running the @storybook/addon-mcp server alongside a live dev server. Spin up three tasks in parallel git worktrees (separate working directories for one repo), and you immediately hit port conflicts and memory spikes.
Storybook 11 shifts to official skills from its agent setup docs. They install via npm create storybook@latest or npx storybook automigrate skills, landing directly in your repo: .claude/skills/ for Claude Code, .agents/skills/ for other agents, plus skills-lock.json and an auto-updated section in AGENTS.md (and CLAUDE.md if it doesn't import AGENTS.md). That keeps skill instructions locked to your project's Storybook version.
On that same login form, the agent runs a four-step loop:
/component-docs— reads components, props, and story examples before touching code./write-stories— writes or updates stories for every state, includingplayfunctions for clicks and typing./test-stories— runs stories as component tests in a real browser with accessibility (a11y) checks and fixes failures./ui-review— builds a UI review page showing only the changed states.
Storybook 11 UI review page: grouped visual overview of agent-modified stories and states (Source: storybook.js.org)
You open UI review, scan the changed cards, and click straight into full Storybook with its toolbar and addons if anything looks off.
The Storybook team ran 650 benchmarks using Opus 5 on a design-system app. With skills enabled, component reuse errors dropped by half (~4% vs ~8%), tasks finished up to 41% faster, token usage fell up to 31%, and generated code was up to 16% shorter.
Headless CLI and server-side docgen: context 19× faster
Under those skills sits npx storybook tools—a headless CLI that reads docs, searches stories, and runs tests without starting the UI or dev server. That lets multiple agents work concurrently across git worktrees. The command itself is still marked experimental, so flags and output formats may change.
It mirrors the MCP server's features in the terminal and accepts --json, --input (JSON params), --cwd, and -c/--config-dir. Six subcommands run offline without a server: docs list, docs show, docs show-story, stories changed, stories find-by-component, and test run. Two still need a running dev server (via -p/--port or --attach): stories preview returns preview URLs, and review create publishes a UI review report.
# List available agent CLI tools
npx storybook tools --help
# Read docs and run affected tests locally without a server
npx storybook tools docs list
npx storybook tools docs show --id "your-component-id"
npx storybook tools test run --changed
# Upgrade to v11, install skills, and migrate to CSF 4
npx storybook@latest upgrade
npx storybook automigrate skills
npx storybook automigrate csf-factories
These commands work for CI scripts as well as agents: test run --changed runs browser checks only on affected components instead of the entire suite.
Running Storybook 11 component tests via the test-stories skill in a real browser with accessibility checks (Source: storybook.js.org)
Props and JSDoc metadata come from a rewritten server-side docgen parser supporting React, Vue, Angular, Web Components, and Svelte (with community support for Astro). Direct server-side parsing speeds up context delivery to agents by up to 19× compared to v10.
Type-safe CSF 4: factories instead of boilerplate
In CSF 3 with TypeScript, every story file carried boilerplate: Meta<typeof Button>, StoryObj<typeof meta>, export default meta, and manual type casts. CSF 4 (Component Story Format 4) replaces that with factories. You configure addons and settings once in .storybook/preview.tsx using definePreview(), which captures all plugin types:
// .storybook/preview.tsx
import { definePreview } from '@storybook/react-vite';
export default definePreview({
addons: [/* registered addons */],
parameters: {
backgrounds: {
options: {
light: { name: 'Light', value: '#fff' },
dark: { name: 'Dark', value: '#333' },
},
},
},
});
Each story file then imports preview, defines metadata with preview.meta(), and creates stories via meta.story(). No export default meta required:
// Button.stories.ts
import preview from '../.storybook/preview';
import { Button } from './Button';
const meta = preview.meta({
component: Button,
parameters: {
// Type-safe: the a11y addon extends the parameter schema
a11y: { test: 'error' },
},
});
// No export default or manual type casts
export const Primary = meta.story({
args: { primary: true },
});
The big win is extensible addon typing. Previously parameters didn't catch typos; now addons validate their own config, so an invalid a11y option triggers a TypeScript error immediately. You don't have to rewrite files by hand: npx storybook automigrate csf-factories converts a single file, a whole repo, or a folder via --config-dir. CSF 3 remains supported, while CSF 2 projects must upgrade to CSF 3 first.
29% lighter, new requirements, and upgrade gotchas
Storybook 11 is 29% lighter than v10, though you should check the migration guide before running npx storybook@latest upgrade—minimum stack versions bumped and legacy tools were removed:
| Stack layer | Minimum version |
|---|---|
| Node.js | 22.12+ |
| TypeScript | 5.9 or 6.x (7.0 incompatible) |
| Bundlers & test runners | Vite 6.3+, Webpack 5.101+, Vitest 4.0+ |
| Frameworks | React 18+, Preact 10.9.0+, Next.js 15+, Angular 21+, SvelteKit 3+ |
| Chromatic | CLI 18.13.1+ (TurboSnap with Vite), @chromatic-com/storybook 5.5.0+ |
| UI browsers | Chrome 147+, Edge 150+, Firefox 152+, Safari 26.5+ |
Watch out for three gotchas up front. First, you can't jump straight from Storybook 9 or older to v11 because legacy automigrations were removed—upgrade to v10 first, then v11.
Second is a TypeScript 7.0 trap. typescript is now a required peer dependency for React, Vue 3, Svelte, and Web Components—even in plain JS projects—because server-side docgen uses the TS compiler. TypeScript 7.0 lacks the compiler API needed for Controls and arg tables. If npm or pnpm installs v7 by default, docgen breaks (and Yarn won't auto-install peer dependencies at all). Fix it with npx storybook automigrate typescript-dependency or an alias in package.json:
{
"devDependencies": {
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2"
}
}
With that alias, your app builds with native TypeScript 7 while Storybook pulls the compiler API from v6 for docs.
npx storybook automigrate skills installs the new skills, but it won't remove @storybook/addon-mcp or its agent config. Leaving both gives your agent two competing sets of instructions. Remove the MCP addon manually with storybook remove and clean its entry out of your agent config.
Third, note what was dropped and where skills stop. v11 removes @storybook/preset-create-react-app (move to @storybook/react-vite), Yarn Plug'n'Play (set nodeLinker: node-modules in .yarnrc.yml), @storybook/test-runner (replaced by @storybook/addon-vitest on Vite), storybook/internal/babel, the TAB type, and @storybook/react-dom-shim. storybook skills setup currently supports react-vite, nextjs-vite, tanstack-react, vue3-vite, and angular-vite; other setups need manual AGENTS.md configuration, and browser tests require @storybook/addon-vitest with Vite.
Alongside the release, Storybook Astro, WebStorm Storybook Connect, and Swatchbook for DTCG design tokens all shipped—with skills and browser testing for React Native (+350% downloads in 2026) planned for the 11.x cycle.



