Skip to content
Frontend
Skill

/write-stories

The rules for writing Storybook stories in a project. They cover which states get a story, the imports, play functions, and mocks for network requests and modules.

From plugin
storybook
92k10 skills1 MCP

Claude Code

$ npx -y skills add storybookjs/storybook --skill write-stories --agent claude-code

SKILL.md

write-stories.SKILL.md
name: write-stories
description: The rules for writing Storybook stories in a project. They cover which states get a story, the imports, play functions, and mocks for network requests and modules.

Prerequisites:

1. Storybook must be installed in the project. Invoke the `/storybook-init` skill to set up Storybook, but only if the user explicitly invoked this skill and approves a Storybook installation. 2. Storybook must be 11.0 or later. An 11.0 prerelease (`11.0.0-alpha.x`, `-beta.x` or `-rc.x`) or a canary build (`0.0.0-pr-*`) also counts. Treat a request to set up or install Storybook as approval to perform any required Storybook upgrade. For other requests, invoke the `/storybook-upgrade` skill only after the user explicitly approves an upgrade.

Run every Storybook CLI command from the package where Storybook is installed (in a monorepo often a leaf package such as `packages/ui`).

If the sandbox blocks network access, request escalated permissions for Storybook CLI commands.

Run `npx storybook skills write-stories` in a command of its own, without `head` or `tail`, before you write a component or a story, and follow its output: the rules for the stories of this project, with its imports, `play` functions, and mocks.

@storybookjs
Ships withstorybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation

92k10 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
91.6k
Star history of storybookjs/storybook on GitHub, a chart by star-history.com

Other skills on storybook.

component-docs

component-docs

Look up the components of a project with Storybook, with their props and usage examples, to reuse existing components instead of…

storybook-setup

storybook-setup

Use this skill when Storybook is already installed and the user wants it set up for the project, with a working `preview` file…

ui-review

ui-review

Publish a Storybook review that shows the user the stories a UI change affects, or the components and stories they ask to see.

More skills from other plugins.

next-bundle-optimizer
Auto-invoked

next-bundle-optimizer

Audit and reduce Next.js browser initial-load work. Use for slow route startup, oversized client bundles, duplicate browser…

nextjs5d143k
@vercel@vercelInstall Skill
migrate-radix-to-base

migrate-radix-to-base

Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert…

ui2w127k
@shadcn-ui@shadcn-uiInstall Skill
chrome-release-cls

chrome-release-cls

Given a Chrome Releases blog post URL (chromereleases.googleblog.com), extract every CVE/bug and find the underlying Gerrit CL…

electron5d124k
@electron@electronInstall Skill
taste-skill
Auto-invoked

taste-skill

tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One…

Questions about write-stories.

Which coding agents can use write-stories?
write-stories installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.