Official agent skill

Storybook Setup

by sanity-io in sanity-io/sanity

A skill your agent uses when Storybook is already installed and the user wants a working preview file and stories for real components.

OfficialMITAuto-check passedFrontend & Design

Install Storybook Setup

skills CLI
$ npx skills add sanity-io/sanity --skill storybook-setup -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sanity-io/sanity storybook-setup --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sanity-io/sanity.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/storybook-setup .claude/skills/storybook-setup && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
storybook-setup
GitHub stars
6.4k
Token cost
~155 tokens
SKILL.md length
66 words
Files
1
Skills in repo
34
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when Storybook is already installed and the user wants a working preview file and stories for real components.

  • Works in 2 steps: Confirm Storybook exists (package.json,… → Storybook must be at least 10.5 (or next…
  • Storybook is already installed and the user wants a working preview file and stories for real components
  • Calls npx

What it does

Storybook Setup is an agent skill from sanity-io/sanity, published by the product's own GitHub organization. Use this skill when Storybook is already installed and the user wants a working preview file and stories for real components.

Its SKILL.md is about 160 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design. It works with Storybook. The repository describes itself as: Sanity Studio – Rapidly configure content workspaces powered by structured content. The licence is MIT.

When your agent uses it

  • Storybook is already installed and the user wants a working preview file and stories for real components

Example prompts

  • “/storybook-setup”

Requirements

  • Node.js

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Confirm Storybook exists (package.json, .storybook/). If not, switch to /storybook-init.
  2. Storybook must be at least 10.5 (or next while 10.5 is not yet released). If it is older, or upgrade/repair is needed first, switch to…

What it can do on your machine

Read from SKILL.md and the folder at commit efa15fb. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Storybook Setup loads about 155 tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 66 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~36
When it runs · the whole SKILL.md, loaded when a task matches
~155

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from sanity-io/sanity at commit efa15fb, republished under its MIT licence (© sanity-io). 66 words, ~155 tokens.

Download SKILL.mdSave it as .claude/skills/storybook-setup/SKILL.md (or your agent's skills folder).
name
storybook-setup
description
Use this skill when Storybook is already installed and the user wants a working `preview` file and stories for real components.

Prerequisites:

  1. Confirm Storybook exists (package.json, .storybook/). If not, switch to /storybook-init.
  2. Storybook must be at least 10.5 (or next while 10.5 is not yet released). If it is older, or upgrade/repair is needed first, switch to /storybook-upgrade.

Run npx storybook ai setup from the project root (or the Storybook package in a monorepo).

Follow the printed Markdown precisely. Do not substitute your own plan.

© sanity-io, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/storybook-setup of sanity-io/sanity.

Open the folder on GitHubat commit efa15fb

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in sanity-io/sanity, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Storybook Setup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Storybook Setup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Storybook Setup this skillsanity-io/sanity6.4k—~155Automated safety check: PassMIT
Gimi IllustrationGiMi-Xiaomi/gimi-illustration-skill703—~1.7kAutomated safety check: PassMIT
Phoenix FrontendArize-ai/phoenix12k—~709Automated safety check: PassCustom licence
Storybook Checkrstackjs/storybook-rsbuild156—~2.5kAutomated safety check: PassMIT
Phoenix StorybookArize-ai/phoenix12k—~1.9kAutomated safety check: PassCustom licence
Run Umbraco UIumbraco/Umbraco.UI152—~1.2kAutomated safety check: PassMIT

Similar skills

  • Gimi Illustration

    GiMi-Xiaomi/gimi-illustration-skill

    Multi-style illustrations from Chinese article text (配图 / illustration): quirky sketch, warm storybook, product proposal; OR custom IP enrollment (自定义 IP / 录入 IP / 上传形象 / 新建 IP).

    703 GitHub stars~1.7k tokensUpdated 2 mo ago
    Frontend & DesignAuto-check passed
  • Phoenix Frontend

    Arize-ai/phoenix

    Frontend development guidelines for the Phoenix AI observability platform.

    12k GitHub stars~709 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Storybook Check

    rstackjs/storybook-rsbuild

    Audit ported storybook-rsbuild source files against the CURRENT upstream Storybook source, grouped by the local package that owns each port, independent of commit history.

    156 GitHub stars~2.5k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Phoenix Storybook

    Arize-ai/phoenix

    Conventions for creating, modifying, and reviewing production-faithful Storybook stories in the Phoenix frontend (js/app/stories, js/app/.storybook).

    12k GitHub stars~1.9k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Run Umbraco UI

    umbraco/Umbraco.UI

    Build, run, and drive the Umbraco.UI (UUI) web-component library via its Storybook.

    152 GitHub stars~1.2k tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Wonder Blocks

    Khan/wonder-blocks

    Implements user interfaces using the Wonder Blocks (WB) design system — Khan Academy's React component library.

    163 GitHub stars~3.2k tokensUpdated yesterday
    Frontend & DesignAuto-check passed

More from sanity-io/sanity

All 34 skills in this repo
  • Playwright CLI

    sanity-io/sanity

    Official

    Automates browser interactions for web testing, form filling, screenshots, and data extraction.

    6.4k GitHub starsUsed in 18 repos~1.9k tokens
    Auto-check passed
  • Find Skills

    sanity-io/sanity

    Official

    Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities.

    6.4k GitHub starsUsed in 67 repos~1.2k tokens
    Auto-check passed
  • Official

    React and Next.js performance optimization guidelines from Vercel Engineering.

    6.4k GitHub starsUsed in 129 repos~1.6k tokens
    Auto-check passed
  • Before And After

    sanity-io/sanity

    Official

    Add existing screenshots or screen recordings to a GitHub pull request as a before/after or preview block.

    6.4k GitHub starsUsed in 1 repo~2.1k tokens
    Auto-check passed
  • React Devtools

    sanity-io/sanity

    Official

    React DevTools CLI for AI agents. An agent skill from sanity-io/sanity.

    6.4k GitHub starsUsed in 3 repos~2.1k tokens
    Auto-check passed
  • TDD

    sanity-io/sanity

    Official

    Test-driven development with red-green-refactor loop. An agent skill from sanity-io/sanity.

    6.4k GitHub starsUsed in 20 repos~1k tokens
    Auto-check passed

Works with

Questions about Storybook Setup

What does Storybook Setup do?

A skill your agent uses when Storybook is already installed and the user wants a working preview file and stories for real components. Storybook Setup is an agent skill from sanity-io/sanity, published by the product's own GitHub organization. Use this skill when Storybook is already installed and the user wants a working preview file and stories for real components.

When should I use Storybook Setup?

Storybook Setup fits situations like: storybook is already installed and the user wants a working preview file and stories for real components.

How do I install Storybook Setup in Claude Code?

Run `npx skills add sanity-io/sanity --skill storybook-setup -a claude-code`. Or copy the skill folder (.agents/skills/storybook-setup in sanity-io/sanity) into .claude/skills/storybook-setup in your project. Claude Code loads it when a task matches its description.

How do I install Storybook Setup in Codex?

Run `npx skills add sanity-io/sanity --skill storybook-setup -a codex`. Or copy the skill folder (.agents/skills/storybook-setup in sanity-io/sanity) into .agents/skills/storybook-setup in your project. Codex loads it when a task matches its description.

Can I use Storybook Setup in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sanity-io/sanity --skill storybook-setup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/storybook-setup, .gemini/skills/storybook-setup, .github/skills/storybook-setup and .opencode/skills/storybook-setup in your project.

What does Storybook Setup need to run?

Going by SKILL.md and its folder, Storybook Setup needs the command-line tools its instructions call (npx). Our summary lists: Node.js.

Does Storybook Setup access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Storybook Setup safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Storybook Setup use?

Storybook Setup is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Storybook Setup use?

About 155 tokens (SKILL.md is roughly 620 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Storybook Setup?

Skills that share tags, products or a category with Storybook Setup: Gimi Illustration (GiMi-Xiaomi/gimi-illustration-skill, 703 stars), Phoenix Frontend (Arize-ai/phoenix, 12k stars), Storybook Check (rstackjs/storybook-rsbuild, 156 stars) and Phoenix Storybook (Arize-ai/phoenix, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Storybook Setup?

sanity-io (a GitHub organization, an official publisher) maintains it in sanity-io/sanity, which has 6,352 GitHub stars. The repository holds 34 skills in this directory. The repository was last updated on October 9, 2026.

Source: sanity-io/sanity on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.