Write Stories 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.

Works in Claude, ChatGPT, Codex and more
Our test
6/10
tested Dec 6, 2026
GitHub stars
92k
storybookjs/storybook
Added by
0
members
Updated
Dec 6
commit 925c7d7
Content
1 file
no scripts · 1 KB
License
MIT
free to use

What our test found

Le skill donne un prérequis de version et une étape de découverte utiles, mais n’explique pas lui-même les conventions de rédaction.

Request we tested it on“Write a Storybook story for the Button component, with its disabled and loading states.”

Limits spotted

  • The command may fail if the CLI or Storybook is not installed, without offering a fallback.
  • It requires a preliminary procedure without providing general rules for writing stories.
  • Treating a request to install as approval for an upgrade may lead to an unwanted change.
View on GitHub ↗
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).

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 read its output: the rules for the stories of this project, with its imports, play functions, and mocks.