react-native: Instructions file for Claude Code

CLAUDE.md

react-native CLAUDE.md is an instructions file for Claude Code from storybookjs/react-native. It costs 1,129 tokens per session, scanned A, original, MIT.

A set of instructions for Storybook React Native, a tool for previewing and testing React Native interface components. The project is a pnpm workspaces monorepo, meaning several related packages are developed together in one repository.

In plain words
What is it for?
Use it to install dependencies, run the example app, regenerate Storybook files, build documentation, lint, format and run tests.
Why use it?
It documents the commands and package structure needed to develop, generate examples, test and check the project consistently.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is storybookjs/react-native's own configuration. It tells Claude Code how to work on react-native itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything react-native configures →

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,330 stars · on GitHub · storybook.js.org

Reuse

Borrowing it

Nothing to install: this file belongs to storybookjs/react-native. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/storybookjs/react-native/next/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/storybookjs/react-native

Made for: Claude Code.

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 react-native CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/storybookjs/react-native/claude-md/github.svg)](https://agentmods.dev/instructions/storybookjs/react-native/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/storybookjs/react-native/claude-md"><img src="https://agentmods.dev/badge/instructions/storybookjs/react-native/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for react-native CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/storybookjs/react-native/claude-md"><img src="https://agentmods.dev/badge/instructions/storybookjs/react-native/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,129 This file is loaded in full into every session.
When invoked 1,129 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01129 $0.01129
Opus 5.5 $0.00452 $0.00452
Sonnet 5.5 $0.00226 $0.00226
Haiku 4.5 $0.00113 $0.00113

Measured 6d ago against content hash c77a76effe10, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

react-native CLAUDE.md scanned grade A with 1 finding 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 6d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

use curl to send events to channel server, such as to update the args:
CLAUDE.md · 134 lines

How it starts

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

This file provides guidance to agents when working with code in this repository.

Development Commands

# Initial Setup
pnpm install
pnpm build

# Development
pnpm dev        # Watch all packages for changes
pnpm example    # Run the expo example app with Storybook

# Story Generation
pnpm -F expo-example storybook-generate # Regenerate storybook.requires.ts

# Testing
pnpm test       # Run unit tests across all packages
pnpm test:ci    # Run tests in CI mode

# Code Quality
pnpm lint       # Run ESLint across the codebase
pnpm format:check   # Check Prettier formatting
pnpm format:fix     # Auto-fix Prettier formatting

# Documentation (from docs/ directory)
cd docs
pnpm start      # Start development server
pnpm build      # Build documentation
pnpm serve      # Serve built documentation

Architecture Overview

pnpm workspaces monorepo containing React Native Storybook packages.

Packages

Apps

  • examples/expo-example - Expo example app showcasing Storybook
  • docs - Documentation site for Storybook React Native

Core:

  • @storybook/react-native - Main package providing Storybook functionality
  • @storybook/react-native-ui - Full UI components for on-device Storybook
  • @storybook/react-native-ui-lite - Lightweight UI components
  • @storybook/react-native-ui-common - Shared UI components
  • @storybook/react-native-theming - Theming utilities

On-Device Addons:

  • @storybook/addon-ondevice-actions - Deprecated stub; actions are built into @storybook/react-native (src/actions/)
  • @storybook/addon-ondevice-backgrounds - Deprecated stub; backgrounds are built into @storybook/react-native (src/backgrounds/)
  • @storybook/addon-ondevice-controls - Deprecated no-op stub; Controls are built into @storybook/react-native (src/controls, on by default)
  • @storybook/addon-ondevice-notes - Add markdown documentation to stories

Build System & Metro Configuration

  • Uses tsup for TypeScript compilation (ES2022, CommonJS output)
  • Each package has its own tsup.config.ts
  • pnpm prepare in a package builds it

Read the full file on GitHub · 134 lines

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. 6d ago Changed · +33 tokens per session c77a76effe10
  2. 7d ago Changed · +14 tokens per session 0ba07af85210
  3. 1mo ago Changed · +38 lines · +299 tokens per session d3300179d351
  4. 3mo ago First seen · 96 lines · 783 tokens per session scan A 7a6d2c63e991

Subscribe to this mod's changes

react-native CLAUDE.md is an instructions file published in the GitHub repository storybookjs/react-native (1,330 stars, last pushed 4d ago), licensed MIT. It adds 1,129 tokens to every session, about $0.0045 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

react-native CLAUDE.md compared with instructions from other repositories

react-native CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
react-native CLAUDE.mdstorybookjs/react-nativeInstructions file1.3k4d agoMITA1,129Claude Code
mcp-react-native-toolkit copilot-instructions.mdItamiForge/mcp-react-native-toolkitInstructions file03mo agoMITA1,296GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,951Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file291kyesterdayMITA4,396Codex, OpenCode