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.
npx skills add fubits1/svelte-skills --skill storybook-vitestgit clone --depth 1 https://github.com/fubits1/svelte-skillsWrote 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.
[](https://agentmods.dev/skills/fubits1/svelte-skills/storybook-vitest)<a href="https://agentmods.dev/skills/fubits1/svelte-skills/storybook-vitest"><img src="https://agentmods.dev/badge/skills/fubits1/svelte-skills/storybook-vitest/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.
<a href="https://agentmods.dev/skills/fubits1/svelte-skills/storybook-vitest"><img src="https://agentmods.dev/badge/skills/fubits1/svelte-skills/storybook-vitest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00066 | $0.03362 |
| Opus 5.5 | $0.00026 | $0.01345 |
| Sonnet 5.5 | $0.00013 | $0.00672 |
| Haiku 4.5 | $0.00007 | $0.00336 |
Grade A, and why
storybook-vitest 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.
How it starts
The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Storybook Vitest + Svelte CSF
Stories are .stories.svelte with defineMeta and <Story> from @storybook/addon-svelte-csf; ignore JSX/TSX/CSF3-TS story patterns here. Official reference: Vitest addon, use it for plugin, browser mode, CLI, tags, debugging, CI; ignore non-Svelte story file examples there. Manual setup · Example configuration files · Options
How it works
- Plugin
storybookTestturns stories into Vitest tests via portable stories (Vitest). No Storybook server required for the test run - Each
<Story>: smoke render; aplayfunction runs as the interaction test (interaction testing, asserting with expect) - A component inside the story that throws while the story renders leaves its story green, with or without a decorator, unless a
playassertion fails on what did not render. Vitest reports that throw as an "unhandled error", exits non-zero, and names "the last test to run before this error". Find the throwing component in that block's❯source frames: its component stack can show it asin <unknown>. Exception: when a decorator returns a bare component (() => Wrapper), the Vitest run renders thedefineMetacomponent without props in its place, and a throw from that instance fails its story and prints under that failed story (references/storybook-decorator.md, "Decorator return form"). Aconsole.erroralone does not fail anything. Read the "Unhandled Errors" block, not just the pass count --silenthides the console output of every story. Separately, an AI agent's run with no reporter set in the config or the CLI uses Vitest'sminimalreporter, which hides the output of passing stories even without--silent.--silent=falseshows it (references/config.md)- To make logged errors fail a story, install the spy before the story renders (a spy created inside
playmisses errors logged during render):- Declare
let errorSpy;in<script module>(let errorSpy: ReturnType<typeof spyOn>;inlang="ts") - In
defineMeta:beforeEach: () => { errorSpy = spyOn(console, 'error'); return () => errorSpy.mockRestore() }(spyOnfromstorybook/test) - In
play:await expect(errorSpy).not.toHaveBeenCalled(), which fails on an error logged at mount
- Declare
- Test coverage: see Storybook's coverage doc;
vitest --coverage --project …only covers projects you pass (SETUP.md'stest:unitomitsstorybook;test:storybookruns it) - With the addon, snapshot tests are not supported (unlike the test runner; comparison)
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 12d ago Changed · -165 lines · -4 tokens per session dab7de1cea12
- 1mo ago Changed · +15 lines e1b2b11c3507
- 2mo ago First seen · 261 lines · 70 tokens per session scan A 50e06be75908
storybook-vitest is a skill published in the GitHub repository fubits1/svelte-skills (10 stars, last pushed 12d ago), licensed MIT. It adds 66 tokens to every session and 3,362 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-08-31.
storybook-vitest compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| storybook-vitestfubits1/svelte-skills | Skill | 10 | 12d ago | MIT | A | 66 | Claude Code |
| web-qualitypstuart/pstuart | Skill | 20 | 6d ago | MIT | A | 42 | Claude Code |
| vue-testing-best-practicesNeverSight/learn-skills.dev | Skill | 219 | yesterday | none | A | 38 | Claude Code, Codex |
| vue-testing-best-practiceshairyf/skills | Skill | 26 | 23d ago | MIT | A | 38 | Claude Code, Codex |
| verify-omnigentomnigent-ai/omnigent | Skill | 11k | yesterday | Apache-2.0 | A | 100 | Claude Code, Codex |
| test-masterJeffallan/claude-skills | Skill | 12k | 7d ago | MIT | A | 104 | Claude Code |
| eval-dataset-designbojieli/ai-agent-book | Skill | 57k | 29d ago | Apache-2.0 | A | 138 | Claude Code, Codex |