storybook-story-generation

storybook-story-generation is a skill for Claude Code from PMDevSolutions/Aurelius. It costs 115 tokens per session (2,514 once invoked), scanned A, original, MIT.

A tool that creates Storybook stories and documentation pages from React components. Storybook is a development tool for viewing components in isolation, while the generated controls let developers try different property values.

In plain words
What is it for?
Use it after building React components to generate .stories.tsx files, MDX documentation, property controls, variant examples, and optional responsive views.
Why use it?
It reduces the manual work of writing repetitive stories and keeps component examples aligned with the TypeScript source. It can expose variants, defaults, boolean states, and callback actions for review.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/generate-stories.sh # generate stories + MDX for all components.

Good fit Use it after building React components to generate .stories.tsx files, MDX documentation, property controls, variant examples, and optional responsive views.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/PMDevSolutions/Aurelius
agentmods
npx agentmods add skills/pmdevsolutions/aurelius/storybook-story-generation

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-story-generation

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pmdevsolutions/aurelius/storybook-story-generation"><img src="https://agentmods.dev/badge/skills/pmdevsolutions/aurelius/storybook-story-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,514 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.
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.00115 $0.02514
Opus 5 $0.00057 $0.01257
Sonnet 5 $0.00023 $0.00503
Haiku 4.5 $0.00012 $0.00251

Measured 4d ago against content hash 6092f0cee036, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

storybook-story-generation 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 4d 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-story-generation/SKILL.md · 223 lines

How it starts

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

Storybook Story Generation — AST-Based Stories + MDX Docs

Purpose

Auto-generate Storybook 8 (CSF3) stories and MDX documentation from built React components. The generator parses each component's TypeScript source with a ts-morph AST — not regex — so it can reliably extract prop types, string-literal unions, default values, callback props, and JSDoc comments, then emit:

  • Component.stories.tsxMeta with tags: ['autodocs'], prop-aware argTypes/controls, a Default story seeded with destructured defaults, one variant story per union value, True/False stories for booleans, action args for callbacks, and optional responsive-viewport stories.
  • Component.mdx — an autodocs page with Meta, Canvas, Controls, and ArgTypes blocks, plus the component's JSDoc description and a Canvas per variant.

The skill wraps scripts/generate-stories.sh (a thin wrapper over scripts/generate-stories.js). It is a non-blocking step: a failure never fails the build.

When to Use

  • Phase 4.5 of /build-from-figma, /build-from-canva, and /build-from-screenshot — immediately after components are built and unit tests pass, before/alongside visual QA (runs in parallel, non-blocking).
  • Backfilling Storybook coverage for an existing component library.
  • When the user asks to "generate Storybook stories", "add stories for these components", "create autodocs", or "document components in Storybook".

Trigger phrases:

  • "Generate Storybook stories"
  • "Auto-generate stories for my components"
  • "Add MDX docs to Storybook"
  • "Create stories with controls and variants"

Do NOT use for: hand-authored interaction/play() tests (those belong to the react-testing-workflows skill), or non-React output targets.

Inputs

  • Required: Built components under src/components/**/*.tsx (override with --src-dir). Components must be exported and named with an uppercase first letter (function, arrow-const, or default export).
  • Recommended: A props interface ComponentNameProps — the generator keys off this naming convention to build controls and variants.
  • Optional: .claude/pipeline.config.jsonstorybook (thresholds and toggles; see Configuration).
  • Optional: tsconfig.json — used by ts-morph when present; otherwise a sensible in-memory compiler config is used.

Read the full file on GitHub · 223 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. 4d ago First seen · 223 lines · 0 tokens per session scan A 6092f0cee036

Subscribe to this mod's changes

storybook-story-generation is a skill published in the GitHub repository PMDevSolutions/Aurelius (8 stars, last pushed 24d ago), licensed MIT. It adds 115 tokens to every session and 2,514 once invoked, about $0.0006 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-09-04.

Related

Other skills, from other repositories

frontend-code-review

Trigger when the user requests a review of frontend files (e.g., .tsx, .ts, .js). Support both pending-change reviews and focused file reviews while applying the checklist rules.

sangrokjung/claude-forge · 42 tokens

figma-codegen

Generate framework-aware code from a Figma design. Reads the project's stack profile and emits code matching the existing framework (React/Vue/Svelte/Next/etc.) and styling (Tailwind/CSS/CSS-in-JS), reusing existing components and design tokens instead of regenerating from scratch. Triggers whenever the user wants a…

awdr74100/figwright · 145 tokens

ag-auditar-react-hooks

Auditor de Hooks React. Detecta violacoes das Rules of Hooks, deps faltando/excessivas em useEffect/useMemo/useCallback, candidatos a custom hook, useState que deveria virar useReducer. Use para audit qualidade React proativo.

andregusman-raiz/a-gusman-claude · 57 tokens

ag-referencia-nextjs

Patterns e convencoes para projetos Next.js com React.

andregusman-raiz/a-gusman-claude · 16 tokens

frontend-dataviz

A skill for choosing and creating clear charts from user-provided data, following the Storytelling with Data approach. It matches chart types to tasks such as comparing categories, showing trends, or displaying distributions.

endearqb/endearqb-skills · 124 tokens

mk:figma

Read-first Figma gateway via Figma MCP: analyze designs, implement Figma-to-code for 1–3 screens, extract design tokens, produce a Figma Evidence Packet for planning handoff, screenshot fallback. Advanced operations (Code Connect, canvas writes, design-system/library patterns) are gated references loaded only on…

ngocsangyem/MeowKit · 99 tokens