Skip to content
Skillpedia
Websites & UI (frontend)91k · #1322

storybook-upgrade

What it does

This skill guides the AI through upgrading Storybook in a web project to a specific release or test build. It is for developers who keep Storybook up to date or want to try a preview version.

When to use it

  • ✓When you want to move your project to the latest stable Storybook.
  • ✓When you need to test a preview build of Storybook in your own app.
  • ✓When you want to upgrade from one major version to the next.

Skill link

https://github.com/storybookjs/storybook/blob/next/.agents/skills/storybook-upgrade/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/storybookjs/storybook/blob/next/.agents/skills/storybook-upgrade/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Upgrade our Storybook to the latest stable version and tell me if anything needs manual attention.”

5 new skills a week. 1 minute to read.

How it works

The AI runs the official upgrade command with the version you choose. That command updates all Storybook packages together and handles their peer dependencies.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Storybook Upgrade

Upgrades all Storybook packages in a project to a specific version.

Why this matters for the monorepo

This skill is mainly for validating Storybook changes outside this repository.

  • QA a canary build from a Storybook PR in a downstream app
  • Reproduce or verify a bug in an external project

Usage

npx storybook@<VERSION> upgrade

Examples

Upgrade to canary version

npx --yes --allow-remote=all https://pkg.pr.new/storybook@<SHA> upgrade

Upgrade to latest stable

npx storybook@latest upgrade

Upgrade to specific release

npx storybook@8.5.0 upgrade

What it does

  1. Detects all @storybook/* packages in your project
  2. Upgrades them all to the specified version
  3. Handles peer dependencies automatically
  4. Works with npm, yarn, and pnpm

Important

  • DO NOT manually install storybook packages with npm add / yarn add / pnpm add
  • Always use npx storybook@<version> upgrade to ensure all packages stay in sync
  • The upgrade command handles version resolution across all storybook packages
  • ALWAYS upgrade only 1 major version at a time!
    • Example: 8.x → 9.x → 10.x → canary of 10
    • Never skip major versions (e.g., don't go from 8.x directly to 10.x)
FAQ

Can I skip major versions?

No. The skill says to upgrade only one major version at a time, such as 8 to 9 to 10.

Should I install Storybook packages by hand?

No. The skill says to use the upgrade command so all packages stay in sync.

Which package managers work?

The skill says the upgrade works with npm, yarn and pnpm.

Details

Original description by the author

Upgrade Storybook to a specific version (canary or release). Use this when upgrading Storybook packages in an external app, reproduction, or test project.

repo: storybookjs/storybook

Popularity

GitHub stars
91k
Ranking position
#1322
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills