storybook

storybook is a skill for Claude Code from mthines/agent-skills. It costs 233 tokens per session (5,241 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 — 55 skills, 4 agents 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 55 skills, 4 agents.

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 233 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,241 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.00233 $0.05241
Opus 5 $0.00117 $0.02620
Sonnet 5 $0.00047 $0.01048
Haiku 4.5 $0.00023 $0.00524

Measured 11d ago against content hash dbc4cfe5c65d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 11d 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 · 460 lines

How it starts

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

Storybook

Scaffold and test Storybook stories — three artefacts in two files per component: a Default story and a Playground story (both in the visual regression file) plus an interaction test file under a /Tests namespace. 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 lacks an interaction test counterpart.
  • 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-interactions Generate <name>.test.stories.tsx Skip the 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 · 460 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. 11d 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 (13 stars, last pushed yesterday), licensed MIT. It adds 233 tokens to every session and 5,241 once invoked, about $0.0012 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-31.

Related

Other skills, from other repositories

diff

Reconcile a converted/built web page against its source prototype with two complementary probes — a PIXEL/layout diff (stretched images, dropped wraps, blank renders, colour flips) and a STRUCTURAL content+typography diff (dropped/mis-slotted headings, eyebrows, CTAs; rendered-face font forks). Stack-agnostic via…

adobe/skills · 120 tokens

find-test-content

Use this when you need to find existing pages that already use a specific block in an AEM Edge Delivery Services project, for example to locate test content or examples during block development. Covers reporting page URLs with occurrence counts and block variants. This searches existing content; to import a new page…

adobe/skills · 68 tokens

frontend-testing

Comprehensive frontend testing strategy covering unit, integration, E2E, visual regression, and accessibility testing.

cosmicstack-labs/mercury-agent-skills · 23 tokens

accessibility-testing

WCAG 2.1/2.2 audit, axe, Lighthouse, manual testing, screen reader testing, and remediation.

cosmicstack-labs/mercury-agent-skills · 29 tokens

appbuilder-testing

Generate and run tests for Adobe App Builder actions and UI components. Scaffolds Jest unit tests, integration tests against deployed actions, contract tests for Adobe API interactions, and React component tests using Testing Library. Provides mock helpers for State, Files, Events SDKs, @adobe/aio-lib- clients, ExC…

adobe/skills · 201 tokens

visual-qa-vision-agent

Equips the AI agent with visual QA capabilities using Playwright/Puppeteer and the agent's innate Vision capabilities to self-correct UI layout, CSS alignment, and visual regressions.

roedyrustam/vibes-plug · 44 tokens