Skip to content
Back to skills

Write Stories

ASecurity

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.

  • 91,712 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 24, 2026
development

Works with

  • cli

Security analysis

A100/100

Scanned November 24, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Write Stories?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Write Stories
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/storybookjs-write-stories/badge)](https://www.skillsdirectory.com/skills/storybookjs-write-stories)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.