storybook-testing

storybook-testing is a skill for Claude Code from yonatangross/orchestkit. It costs 77 tokens per session (2,259 once invoked), scanned A, original, MIT.

A guide to testing UI components with Storybook, a tool that displays components in isolated examples called stories. It covers interaction checks, visual comparisons, accessibility checks, and Vitest integration.

In plain words
What is it for?
Use it to write typed component stories, test user interactions, compare screenshots with Chromatic TurboSnap, check accessibility, mock modules, and generate component documentation.
Why use it?
A component can work in one screen while its states, interactions, appearance, or accessibility are broken elsewhere. These tests make those problems visible without testing the whole application at once.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: agent in frontmatter; mentions Claude Code.

Part of the ork plugin — 111 skills, 38 commands, 36 agents, 32 hooks shipped together

Good fit Use it to write typed component stories, test user interactions, compare screenshots with Chromatic TurboSnap, check accessibility, mock modules, and generate component documentation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yonatangross/orchestkit/storybook-testing
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 yonatangross/orchestkit --skill storybook-testing
Clone the repo
git clone --depth 1 https://github.com/yonatangross/orchestkit

Made for: Claude Code.

Or install ork, the plugin that ships this one along with the rest of its 111 skills, 38 commands, 36 agents, 32 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-testing

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yonatangross/orchestkit/storybook-testing"><img src="https://agentmods.dev/badge/skills/yonatangross/orchestkit/storybook-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,259 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: 1 finding, up to medium

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 →

  • medium MCP Rug Pull · line 199
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
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.00077 $0.02259
Opus 5.5 $0.00031 $0.00904
Sonnet 5.5 $0.00015 $0.00452
Haiku 4.5 $0.00008 $0.00226

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

Security

Grade A, and why

storybook-testing 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 24d 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.

plugins/ork/skills/storybook-testing/SKILL.md · 218 lines

How it starts

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

Storybook Testing — Storybook 10

Overview

Storybook 10 unifies component testing into a single workflow: interaction tests via play() functions, visual regression via Chromatic TurboSnap, and accessibility audits via the a11y addon — all running through Vitest. Stories are executable test specifications, not just documentation.

What's new in Storybook 10 (vs 9):

  • ESM-only enforced — the single breaking change; Node 20.16+ / 22.19+ / 24+ required; 29% smaller install
  • Module automocking (sb.mock) — build-time module mocking, scoped per-project in preview.ts
  • CSF factories (React, preview) — defineMain → definePreview → preview.meta() → meta.story() chain
  • Essential addons in core — viewport, controls, interactions, actions no longer separate deps
  • Import path changes — @storybook/test → storybook/test (old paths still work as aliases)
  • React Server Component story support — test RSC in isolation
  • Vitest 4 support — experimental-addon-test renamed to addon-vitest

When to use this skill:

  • Writing component stories in CSF3 format with TypeScript
  • Setting up interaction tests with play() functions
  • Configuring Chromatic visual regression with TurboSnap
  • Using module automocking at the story level
  • Running accessibility tests in CI via the a11y addon
  • Generating living documentation with autodocs
  • Migrating from Storybook 9 to 10

Quick Reference

Rule Impact Description
storybook-csf3-factories HIGH Typesafe CSF3 story factories with satisfies Meta
storybook-play-functions CRITICAL Interaction testing with play() and @storybook/test
storybook-vitest-integration HIGH Run stories as Vitest tests via @storybook/addon-vitest
storybook-chromatic-turbosnap HIGH TurboSnap reduces snapshot cost 60-90%
storybook-sb-mock HIGH Story-level module mocking with sb.mock
storybook-a11y-testing CRITICAL Automated axe-core accessibility scans in CI
storybook-autodocs MEDIUM Auto-generated docs from stories

Read the full file on GitHub · 218 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. 24d ago Changed fd0571008718
  2. 25d ago Changed · -5 lines 7987005b55c7
  3. 26d ago Changed · -1 lines e2799f3ccb76
  4. 1mo ago Changed · +3 lines f5a586111d16
  5. 1mo ago Changed c59249764e8b
  6. 1mo ago First seen · 221 lines · 77 tokens per session scan A 13d65157935e

Subscribe to this mod's changes

storybook-testing is a skill published in the GitHub repository yonatangross/orchestkit (298 stars, last pushed today), licensed MIT. It adds 77 tokens to every session and 2,259 once invoked, about $0.0003 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-09-05.

Related

Other skills, from other repositories

verify-omnigent

Drive Omnigent the way a user does and prove a behavior with recorded evidence, using an isolated server, runner, and mock model plus a feature map of every user entry point. Load before reproducing a user-facing bug, before claiming a fix works, or when reviewing whether a change covered every surface (session vs.…

omnigent-ai/omnigent · 100 tokens

playwright-cli

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

VoltAgent/voltagent · 52 tokens

jira-validate-production

Check that the fix a Jira issue carries is live on the PRODUCTION site and behaves as the issue asked, then close the card, or open a follow-up issue for what failed. Insert into the prompt of a run started on a batch of merged issues, or of a Jira post-deploy column rule.

decocms/studio · 67 tokens

browser-qa

Testing web apps through a real browser: reconnaissance before acting, selector discovery, state capture, console errors and screenshot evidence. Use on a web surface end to end, or to reproduce a front-end bug.

damianvtran/local-operator · 45 tokens

web-system-tests

The web realization of the system-tests contract — browser-driven system tests with Playwright against a running frontend. Owns the project layout (tests/), the Playwright configuration (baseURL plus webServer, cross-engine projects), the role- and label-based selector policy, code coverage as an opt-in second run…

AdamBien/airails · 233 tokens

testing-react

Stratégie de Tests React 19.3 + Compiler 1.0. Use when writing tests, reviewing test coverage, or setting up testing.

TheBeardedBearSAS/claude-craft · 34 tokens