upgrading-react-native-storybook

upgrading-react-native-storybook is a skill for Claude Code, Codex from storybookjs/react-native. It costs 151 tokens per session (836 once invoked), scanned A, original, MIT.

A step-by-step workflow for upgrading Storybook, a tool used to develop and preview interface components, in React Native projects. It supports specific version-to-version migrations and handles only the next upgrade step at a time.

In plain words
What is it for?
Use it to upgrade supported React Native Storybook projects, including converting older stories to the newer CSF format when required.
Why use it?
It prevents risky jumps across several major versions and checks the project's package manager and configuration first. This makes the required migration changes easier to control and verify.

Skill for Claude CodeCodex

Part of the react-native-storybook plugin — 3 skills, 1 command, 1 MCP server shipped together

About the project

Storybook for React Native is a development environment for designing and testing individual React Native components without running the whole application. It is for React Native and Expo developers who need to build components in isolation, document them with stories, and test them. The catalogue skills, plugins, instructions, MCP integration, and command support workflows around using Storybook for React Native.

storybookjs/react-native · 1,315 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/storybookjs/react-native/upgrading-react-native-storybook
Any agent
npx skills add storybookjs/react-native --skill upgrading-react-native-storybook
Clone the repo
git clone --depth 1 https://github.com/storybookjs/react-native

Made for: Claude Code, Codex.

Or install react-native-storybook, the plugin that ships this one along with the rest of its 3 skills, 1 command, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for upgrading-react-native-storybook

README.md
[![agentmods](https://agentmods.dev/badge/skills/storybookjs/react-native/upgrading-react-native-storybook.svg)](https://agentmods.dev/skills/storybookjs/react-native/upgrading-react-native-storybook)
Your own site
<a href="https://agentmods.dev/skills/storybookjs/react-native/upgrading-react-native-storybook"><img src="https://agentmods.dev/badge/skills/storybookjs/react-native/upgrading-react-native-storybook.svg" alt="Measured on agentmods" height="20"></a>
Per session 151 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 836 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00151 $0.00836
Opus 5 $0.00076 $0.00418
Sonnet 5 $0.00030 $0.00167
Haiku 4.5 $0.00015 $0.00084

Measured 5d ago against content hash 6046d7548697, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

upgrading-react-native-storybook scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/upgrading-react-native-storybook/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

React Native Storybook Upgrades

Upgrade one supported version step at a time. Do not jump from an older major directly to the latest release in a single pass.

Rules

  • Detect the project's package manager first and use it consistently.
  • Detect the currently installed Storybook version from package.json, lockfiles, and config files before editing anything.
  • Apply exactly one migration step per run. If a project is multiple versions behind, complete the next hop, verify it, and then report the next required hop.
  • During the 6.5.x -> 7.6.x step, convert any remaining storiesOf stories to CSF instead of preserving compatibility mode.
  • Preserve the project's existing app structure. Only make the migration changes required for the current step.

Version Detection

Look at these signals together:

  • package.json versions for @storybook/react-native, storybook, @storybook/react, and @storybook/addon-ondevice-*
  • Whether the config folder is .storybook/ or .rnstorybook/
  • Metro config imports such as metro/withStorybook, metro/withStorybookConfig, or default-vs-named withStorybook
  • Story format usage: CSF vs storiesOf
  • Generated file names such as storybook.requires.js vs storybook.requires.ts

If the version is ambiguous, stop and clarify the current installed version instead of guessing.

Migration Selection

Use exactly one reference file:

  1. 9.x -> 10.x: references/from-9-to-10.md
  2. 8.x -> 9.x: references/from-8-to-9.md
  3. 7.6.x -> 8.3.x: references/from-7-6-to-8-3.md
  4. 6.5.x -> 7.6.x: references/from-6-5-to-7-6.md
  5. 5.3.x -> 6.5.x: references/from-5-3-to-6-5.md

Workflow

  1. Confirm the current Storybook version and whether the repo uses Expo, Expo Router, React Native CLI, or Re.Pack.
  2. Pick the next migration step only. Never bundle multiple major upgrades together.
  3. Apply the dependency, config, and source-file changes from the matching reference.
  4. Regenerate storybook.requires or restart Metro when that step requires it.
  5. Run the smallest useful verification available for the repo, such as the generation script, tests, lint, or the local Storybook app launch path.
  6. If the repo still is not on the user's target version, stop with a clear note describing the next required migration step.

Read the full file on GitHub · 57 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 57 lines · 151 tokens per session scan A 6046d7548697

Subscribe to this mod's changes

upgrading-react-native-storybook is a skill published in the GitHub repository storybookjs/react-native (1,315 stars, last pushed 4d ago), licensed MIT. It adds 151 tokens to every session and 836 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

react-native-docs

Comprehensive React Native reference covering core components, APIs, styling, flexbox, navigation, networking, animations, platform-specific code, debugging, performance, TypeScript integration, Fast Refresh, environment setup, React fundamentals, running on devices, and the New Architecture (Fabric, JSI…

pledgeandgrow/pledge-skills · 97 tokens

mobile-development

React Native mobile app development patterns with Expo 54, Tamagui, and expo-router. Use when creating screens, components, or navigation in the mobile app.

Ampli-Group/agentic-mobile-blueprint · 36 tokens

rn-app-builder

基于真实项目沉淀的 React Native 移动端 App 一键构建方案。覆盖 Expo 初始化、monorepo 共享包、鉴权路由、API 适配、主题系统与构建发布。.

LSTM-Kirigaya/jinhui-skills · 53 tokens

animate-expo

Build animation and gestures in React Native and Expo with Reanimated worklets on the UI thread — sheets, drawers, screen transitions, swipe, drag, press feedback, haptics. Use when adding gestures to an Expo app, or when motion stutters, janks or drops frames on a real Android or iOS device.

ericrisco/rsc-harness · 70 tokens

expo-best-practices

Expo and React Native done right. Expo Router, EAS Build, native modules, platform-specific patterns, and navigation.

ofershap/expo-best-practices · 30 tokens

vercel-react-native-skills

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

zebbern/termstack · 57 tokens