Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

writing-react-native-storybook-stories

Skill by storybookjs

Writes and edits React Native Storybook stories using Component Story Format (CSF) with @storybook/react-native v10. Built for developers who author stories and configure Storybook for React Native.

  • Score 89
  • 1.3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install writing-react-native-storybook-stories

Built from the published package, never by AI.

git clone --depth 1 https://github.com/storybookjs/react-native /tmp/react-native && mkdir -p ~/.claude/skills && cp -r /tmp/react-native/skills/writing-react-native-storybook-stories ~/.claude/skills/writing-react-native-storybook-stories

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install writing-react-native-storybook-stories in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill guides an AI assistant in creating and editing React Native Storybook stories with Component Story Format (CSF). It targets @storybook/react-native v10 and covers story file conventions, args, argTypes, custom render functions, decorators, parameters, and mock actions. It also explains the .rnstorybook/main.ts and preview.tsx configuration files.

Stories are colocated as ComponentName.stories.tsx files. The skill describes portable stories, which let Jest tests reuse stories through composeStories. Controls, Actions and Backgrounds are built into the framework, while Notes comes from @storybook/addon-ondevice-notes. It applies to any task involving @storybook/react-native story authoring.

Written from the project's SKILL.md and checked against it.

What it can do

  • Story file conventionsExplains CSF file naming, default meta export, and typed named story exports.
  • Args and argTypesSets component props with args and control configuration with argTypes.
  • Custom render functionsShows how to wrap components in layouts and use hooks inside named render functions.
  • DecoratorsWraps stories in providers, layouts, or context, both per component and globally.
  • Addon parametersConfigures Notes markdown docs, Backgrounds options, and React Native UI parameters like layout and noSafeArea.
  • Controls and conditional argsMaps props to select, range, color, and number controls, with optional conditional display.
  • Portable stories for testingReuses stories in Jest tests with composeStories and composeStory.
  • Storybook configurationShows main.ts story globs, deviceAddons, and global preview.tsx parameters.

What you need

  • @storybook/react-native v10
  • Jest with @testing-library/react-native for portable story tests
  • @react-native-community/datetimepicker (optional, has JavaScript fallback)
  • @react-native-community/slider (optional, has JavaScript fallback)

Try asking

  • Write a stories file for my Button component with a size select control
  • Add a story that wraps my ProfileCard in a ScrollView with noSafeArea
  • Reuse my Badge stories in a Jest test using composeStories

Good to know

  • The addon-ondevice-backgrounds package is deprecated and should not be added to new projects.
  • The addon-ondevice-controls package is a deprecated no-op stub and should not be installed.
  • With noSafeArea, the component itself must handle safe areas.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/writing-react-native-storybook-stories/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md10 KB
  • references/controls.md5 KB

Alternatives to writing-react-native-storybook-stories

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

writing-react-native-storybook-stories: common questions

Can these React Native stories be reused in Jest tests?

Yes. The skill shows how to use composeStories and composeStory from @storybook/react to render stories in Jest tests with @testing-library/react-native.

Do I need to install a package for controls or backgrounds?

No. Controls, Actions and Backgrounds are built into @storybook/react-native. Backgrounds can be turned off with features.ondeviceBackgrounds set to false, and Controls with features.ondeviceControls set to false.

Which addon adds markdown notes to stories?

The Notes addon is @storybook/addon-ondevice-notes. It is added through deviceAddons in .rnstorybook/main.ts and reads markdown from the notes parameter.

How do I install writing-react-native-storybook-stories?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is writing-react-native-storybook-stories free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is writing-react-native-storybook-stories safe to use?

It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to writing-react-native-storybook-stories?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

writing-react-native-storybook-stories Install

Add to stack

Loading.