storybook

storybook is a skill for Claude Code from mthines/agent-skills. It costs 89 tokens per session (6,126 once invoked), scanned A, original, MIT.

A tool for creating and checking Storybook stories for React component libraries. Storybook is a workspace where interface components can be viewed and tested in isolation.

In plain words
What is it for?
It creates default visual examples, interactive playgrounds, and interaction-test files for React web or React Native components, including gated Storybook setups when access is enabled.
Why use it?
It gives components repeatable visual checks and interaction tests, making changes easier to inspect and regressions easier to catch.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the mthines-agent-skills plugin — 54 skills, 3 agents, 2 hooks shipped together

Good fit It creates default visual examples, interactive playgrounds, and interaction-test files for React web or React Native components, including gated Storybook setups when access is enabled.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mthines/agent-skills/storybook
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.

Any agent
npx skills add mthines/agent-skills --skill storybook
Clone the repo
git clone --depth 1 https://github.com/mthines/agent-skills

Made for: Claude Code.

Or install mthines-agent-skills, the plugin that ships this one along with the rest of its 54 skills, 3 agents, 2 hooks.

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 storybook

README.md
[![agentmods](https://agentmods.dev/badge/skills/mthines/agent-skills/storybook/github.svg)](https://agentmods.dev/skills/mthines/agent-skills/storybook)
Your own site
<a href="https://agentmods.dev/skills/mthines/agent-skills/storybook"><img src="https://agentmods.dev/badge/skills/mthines/agent-skills/storybook/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 storybook

Your own site · 80×15
<a href="https://agentmods.dev/skills/mthines/agent-skills/storybook"><img src="https://agentmods.dev/badge/skills/mthines/agent-skills/storybook.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,126 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 101
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 102
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
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.00089 $0.06126
Opus 5.5 $0.00036 $0.02450
Sonnet 5.5 $0.00018 $0.01225
Haiku 4.5 $0.00009 $0.00613

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

Security

Grade A, and why

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 2d 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/design/storybook/SKILL.md · 510 lines

How it starts

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

Storybook

Scaffold and test Storybook stories. Per component: a Default story and a Playground story (both in the visual regression file). Plus a jsdom unit test file for everything jsdom can prove. Plus, only when needed, an interaction test file under a /Tests namespace. jsdom is the default because it is cheaper. Storybook interaction tests are reserved for browser-only behavior and for design decisions worth replaying in the Interactions panel (rules/test-placement.md). Works on React (web) and React Native / Expo (native). Auth — when the running Storybook is gated — is opt-in and per-pathname, with secrets stored in the OS keychain instead of the repo.

This SKILL.md is a thin index. Concern-specific rules live in rules/*.md and load on demand. Reference material lives in references/*.md. Literal scaffolding lives in templates/*.md. Do not preload every file — load only what the current phase asks for.


When to use

Reach for this skill when any of the following is true:

  • A component has no story file yet and needs visual regression coverage.
  • An existing *.stories.tsx has no test counterpart (jsdom or Storybook).
  • A Playground story is missing or out of sync with current props.
  • The Storybook target is gated by auth and the agent needs to log in.
  • A flaky interaction test needs to be iterated against the running Storybook URL.

Do not reach for this skill when:

  • The task is to build the component itself. Scaffold stories after the component is implemented and named.
  • The repo has no Storybook installation at all. Halt and ask the user to install Storybook first — this skill does not bootstrap Storybook.
  • The component is a hook or non-visual primitive with no rendered surface. Defer to tdd.

Arguments and defaults

Parse $ARGUMENTS in this order:

Argument Default Effect
<component-path> Prompt the user Source file of the component to scaffold stories for.
--platform web|native Auto-detect (see rules/react-native.md) Web emits .stories.tsx; native emits the Expo / RN variant.
--no-unit Generate <name>.test.tsx when a jsdom runner exists Skip the jsdom unit test file.
--no-interactions Generate <name>.test.stories.tsx when a behavior needs the browser Skip the Storybook interaction test file.
--no-playground Include a Playground story Skip the Playground story.
--no-default Include a Default story with grouped variants Skip the visual regression Default story (rare — only for test-only).
--validate Off Run the opt-in adversarial validate-and-fix phase (Phase 6) after the scaffold. Local only.
--auth <profile> None Use the named auth profile when running Playwright against the URL.
--title <storybook-title> Inferred from the component path Override the Storybook title for the generated meta.

Read the full file on GitHub · 510 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. 2d ago Changed · +61 lines · +16 tokens per session 1b83c11a8fb1
  2. 1mo ago Changed d6b94ec2c533
  3. 1mo ago Changed · -10 lines · -149 tokens per session 30f8db8684ce
  4. 2mo ago Changed · -1 lines · -11 tokens per session a8c26c762335
  5. 3mo ago First seen · 460 lines · 233 tokens per session scan A dbc4cfe5c65d

Subscribe to this mod's changes

storybook is a skill published in the GitHub repository mthines/agent-skills (22 stars, last pushed yesterday), licensed MIT. It adds 89 tokens to every session and 6,126 once invoked, about $0.0004 per session on Opus 5.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-31.

Related

storybook compared with skills from other repositories

storybook next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
storybookmthines/agent-skillsSkill22yesterdayMITA89Claude Code
skill-bodycitrolabs/ego-liteSkill26kyesterdayMITA0Claude Code, Codex
ego-browsercitrolabs/ego-liteSkill26kyesterdayMITA125Claude Code, Codex
temporal-developertemporalio/skill-temporal-developerSkill2439d agoMITA216Claude Code, Codex
creating-explainersanalyticalmonk/explain-thisSkill241mo agoMITA98Claude Code, Codex
fact-checking-explainersanalyticalmonk/explain-thisSkill241mo agoMITA84Claude Code, Codex
explaining-codebasesanalyticalmonk/explain-thisSkill241mo agoMITA84Claude Code, Codex