storybook

storybook is a skill for Claude Code from fubits1/svelte-skills. It costs 56 tokens per session (1,476 once invoked), scanned A, original, MIT.

A Storybook workflow for building and checking isolated previews of user-interface components. It covers test data, browser previews, API mocks, and CSS imports, including Svelte-specific cases.

In plain words
What is it for?
Use it to write and preview Storybook stories, provide fixture data, mock APIs, trace CSS imports, and handle Svelte 4 stores or Svelte 5 components.
Why use it?
It helps prevent stories from looking correct while hiding broken data, styles, or interactions. It also gives clear checks for changes that can otherwise fail only in Storybook.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { myWritableStore } from '../stores' // a writable() store from svelte/store.

Part of the svelte-5 plugin — 8 skills shipped together

Good fit Use it to write and preview Storybook stories, provide fixture data, mock APIs, trace CSS imports, and handle Svelte 4 stores or Svelte 5 components.

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/fubits1/svelte-skills
agentmods
npx agentmods add skills/fubits1/svelte-skills/storybook

Made for: Claude Code.

Or install svelte-5, the plugin that ships this one along with the rest of its 8 skills.

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/fubits1/svelte-skills/storybook/github.svg)](https://agentmods.dev/skills/fubits1/svelte-skills/storybook)
Your own site
<a href="https://agentmods.dev/skills/fubits1/svelte-skills/storybook"><img src="https://agentmods.dev/badge/skills/fubits1/svelte-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/fubits1/svelte-skills/storybook"><img src="https://agentmods.dev/badge/skills/fubits1/svelte-skills/storybook.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,476 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.00056 $0.01476
Opus 5.5 $0.00022 $0.00590
Sonnet 5.5 $0.00011 $0.00295
Haiku 4.5 $0.00006 $0.00148

Measured 12d ago against content hash 3b7a144a32b8, 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 12d 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/svelte-5/skills/storybook/SKILL.md · 103 lines

How it starts

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

Storybook

  • When the Storybook MCP is configured, ALWAYS call its get-storybook-story-instructions tool before writing stories: it returns Storybook's instructions for writing, testing and fixing stories (story structure, imports, play functions, mocking). After writing them, ALWAYS preview them with its preview tool (stories-preview, or preview-stories if that is the name your server lists). The tool prefix is your MCP server's name (mcp__storybook__get-storybook-story-instructions when the server is called storybook)
  • API mocking (handlers, fixtures, story-scoped overrides with beforeEach({ msw }), msw-storybook-addon wiring, the msw 2 to 3 migration): svelte-5:msw skill
  • Before opening stories in the browser:
    1. Read the project's storybook script. With -p <port> or --port <port> (sv add storybook leaves storybook dev -p 6006 in package.json), open http://127.0.0.1:<port> with Playwright MCP to check whether Storybook runs; if the page does not load, go to step 3. With no storybook script, or no port in it, ask the user whether Storybook runs and on which URL; if it does not run, go to step 3
    2. If it runs, use that instance and do not start another
    3. If none runs, start the storybook script in the background with pnpm storybook --ci (--ci: no browser, no prompts), wait for the Local: URL it prints, and when done stop the background process you started. With no storybook script, starting Storybook is not covered here: ask the user to start it, then continue with step 2
  • Verify every story in the browser via Playwright MCP: a story file that compiles can still render empty or broken
  • CSS imports: trace the chain from the app root (App.svelte, or src/routes/+layout.svelte on SvelteKit) and from .storybook/preview.ts. Moving an import out of the SCSS chain breaks Storybook unless you also add it to preview.ts or to the stylesheet preview.ts imports

Svelte 4 writable stores need wrapper components in stories

Read the full file on GitHub · 103 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. 12d ago Changed · +17 lines · +29 tokens per session 3b7a144a32b8
  2. 2mo ago First seen · 86 lines · 27 tokens per session scan A 4c0335bdeaad

Subscribe to this mod's changes

storybook is a skill published in the GitHub repository fubits1/svelte-skills (10 stars, last pushed 12d ago), licensed MIT. It adds 56 tokens to every session and 1,476 once invoked, about $0.0002 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
storybookfubits1/svelte-skillsSkill1012d agoMITA56Claude Code
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code