recompose: Skill for Claude Code

.claude/skills/storybook-stories/SKILL.md

storybook-stories is a skill for Claude Code from recomposesh/recompose. It costs 37 tokens per session (1,580 once invoked), scanned A, original, MIT.

A set of rules for writing Storybook stories for React components. Storybook is a tool that displays UI components in isolation so developers can check their states and interactions.

In plain words
What is it for?
Use it when creating or reviewing .stories.tsx files, Storybook configuration, loading states, absence checks, and focus behavior.
Why use it?
It prevents stories from making unreliable assertions while data is still loading or before focus and other effects have finished.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is recomposesh/recompose's own configuration. It tells Claude Code how to work on recompose itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything recompose configures →

Reuse

Borrowing it

Nothing to install: this file belongs to recomposesh/recompose. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/recomposesh/recompose/main/.claude/skills/storybook-stories/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/recomposesh/recompose

Made for: Claude Code.

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-stories

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/recomposesh/recompose/storybook-stories"><img src="https://agentmods.dev/badge/skills/recomposesh/recompose/storybook-stories.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,580 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 pass 7 Sept 2026
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.00037 $0.01580
Opus 5.5 $0.00015 $0.00632
Sonnet 5.5 $0.00007 $0.00316
Haiku 4.5 $0.00004 $0.00158

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

Security

Grade A, and why

storybook-stories 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 3mo 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.

.claude/skills/storybook-stories/SKILL.md · 67 lines

How it starts

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

Storybook stories

Placement

  • A story lives next to its component: <component>.stories.tsx inside the owning slice's ui/ segment.
  • Import other slices only through their public index.ts. Steiger enforces this in stories too.
  • A play function queries with findBy, never getBy, whenever the component reads a suspended query. getBy is synchronous, so it throws the moment the story mounts, while the boundary is still pending and the canvas holds no roles at all. The vitest project hides this, because its render flushes React's act queue; Chromatic does not, and reported it as Unable to find an accessible element with There are no accessible roles against a screenshot that plainly showed the control. Measured: the first role appears about 340 milliseconds in, well inside findBy's one second.
  • An assertion that something is absent needs a settle point before it. queryBy(...)).toBeNull() passes on an empty canvas, so it proves nothing until an await canvas.findBy... for something present has run first.
  • A focus assertion waits too. findBy resolves the moment the element exists, which is before the effect that places focus has run: measured at 0 milliseconds focus sits on body, and reaches the control around 50. Hold the element in a variable, then assert toHaveFocus inside waitFor.
  • A dark-scheme story carries no play function. It exists to be looked at, by a person and by the snapshot tool. Asserting the scheme inside it tests the capture environment rather than the component, and the environments disagree: the vitest project applies the toolbar's class, a static build applies nothing and lets prefers-color-scheme decide, and the capture tool emulates the media. Measured across all three, the same assertion failed three different ways. The semantics belong in the light stories, which run everywhere.
  • A new ui/ component and its story land together, before the branch leaves your machine. Writing the component without the story is the mistake this rule exists to stop, and it stays cheap only while both files are still open.
  • Two gates enforce it. pnpm run lint:stories runs on pre-push and names each component missing its sibling, so the branch never reaches a pull request with the gap. The pull-request meta-gate runs the same script against the pull request's base. Escape: stories-exempt label plus a Stories-exempt: <reason> body line, and the escape only exists on the pull request.

Read the full file on GitHub · 67 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. 3mo ago First seen · 67 lines · 37 tokens per session scan A b18938e87830

Subscribe to this mod's changes

storybook-stories is a skill published in the GitHub repository recomposesh/recompose (32 stars, last pushed 3mo ago), licensed MIT. It adds 37 tokens to every session and 1,580 once invoked, about $0.0001 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-03.

Related

storybook-stories compared with skills from other repositories

storybook-stories next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
storybook-storiesrecomposesh/recomposeSkill323mo agoMITA37Claude Code
build-ghost-appTryGhost/GhostSkill56ktodayMITA44Claude Code, Codex
material-ui-tailwindmui/material-uiSkill99kyesterdayMITA67Claude Code
fuzzy-rankingTanStack/tableSkill29ktodayMITA62Claude Code, Codex
r3f-best-practiceszebbern/claude-code-guideSkill4.7kyesterdayMITA74Claude Code, Codex
git-safetytamagui/tamaguiSkill14kyesterdayMITA42Claude Code
remotion-best-practicesguanyang/open-agent-hubSkill1.0ktodayMITA116Claude Code