oms-storybook-react-vite

oms-storybook-react-vite is a skill for Claude Code, Codex from armelhbobdad/oh-my-skills. It costs 236 tokens per session (3,440 once invoked), scanned A, original, Apache-2.0.

A reference for writing Storybook 10.3 or newer stories in a React project built with Vite. Storybook displays UI components in isolation so their states and interactions can be tested.

In plain words
What is it for?
It helps edit React story files, previews, and Storybook configuration using CSF3 stories, interaction tests, hooks, themes, documentation, accessibility checks, and Vitest integration.
Why use it?
It helps avoid outdated package imports and keeps code aligned with Storybook's consolidated package structure.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps edit React story files, previews, and Storybook configuration using CSF3 stories, interaction tests, hooks, themes, documentation, accessibility checks, and Vitest integration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/armelhbobdad/oh-my-skills/oms-storybook-react-vite
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 armelhbobdad/oh-my-skills --skill oms-storybook-react-vite
Clone the repo
git clone --depth 1 https://github.com/armelhbobdad/oh-my-skills

Made for: Claude Code, Codex.

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 oms-storybook-react-vite

README.md
[![agentmods](https://agentmods.dev/badge/skills/armelhbobdad/oh-my-skills/oms-storybook-react-vite/github.svg)](https://agentmods.dev/skills/armelhbobdad/oh-my-skills/oms-storybook-react-vite)
Your own site
<a href="https://agentmods.dev/skills/armelhbobdad/oh-my-skills/oms-storybook-react-vite"><img src="https://agentmods.dev/badge/skills/armelhbobdad/oh-my-skills/oms-storybook-react-vite/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 oms-storybook-react-vite

Your own site · 80×15
<a href="https://agentmods.dev/skills/armelhbobdad/oh-my-skills/oms-storybook-react-vite"><img src="https://agentmods.dev/badge/skills/armelhbobdad/oh-my-skills/oms-storybook-react-vite.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 236 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,440 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.00236 $0.03440
Opus 5 $0.00118 $0.01720
Sonnet 5 $0.00047 $0.00688
Haiku 4.5 $0.00024 $0.00344

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

Security

Grade A, and why

oms-storybook-react-vite 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.

skills/oms-storybook-react-vite/10.3.5/oms-storybook-react-vite/SKILL.md · 197 lines

How it starts

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

Overview

Storybook v10 consolidates what used to be ~40 separate @storybook/* packages into a single published storybook package exposing 40 subpath exports (including ./internal/*). This skill grounds Claude in that consolidated import surface so it stops generating outdated @storybook/addon-actions, @storybook/test, @storybook/preview-api imports that training data still shows.

  • Scope: day-90+ story author on a Storybook 10.3+ React+Vite project. Not a setup/install guide — .storybook/main.ts framework pick and addon registration are edited quarterly and covered by the official upgrade CLI.
  • Packages covered: storybook (core, 40 subpaths), @storybook/react-vite (framework), @storybook/react (renderer), @storybook/builder-vite (builder), @storybook/addon-{a11y,docs,themes,vitest}.
  • Layer model: @storybook/react-vite (framework) composes @storybook/react (renderer) + @storybook/builder-vite (builder). Defects go in the correct layer.
  • Source: github.com/storybookjs/storybook @ tag v10.3.5 (commit e486d382). [AST:code/frameworks/react-vite/src/preset.ts:L1] [AST:code/core/package.json:L48]

Quick Start

Preflight — ALWAYS do this first. Before writing any Storybook code, read the user's project state to ground your answer:

cat .storybook/main.ts   # installed version, registered addons, framework in use
cat .storybook/preview.ts # parameters, decorators, globalTypes already set
cat package.json | grep -E '"storybook"|"@storybook/'  # resolved versions

If the user's storybook dep is <10.0.0, STOP and tell them — CSF3 + v10 imports below will not apply. [EXT:https://storybook.js.org/docs/get-started/frameworks/react-vite/]

Write a CSF3 story (the canonical v10 pattern):

// Button.stories.tsx
import type { Meta, StoryObj } from '@storybook/react-vite';
import { fn, expect } from 'storybook/test';
import { Button } from './Button';

const meta = {
  component: Button,
  args: { onClick: fn() },
  tags: ['autodocs'],
} satisfies Meta<typeof Button>;

export default meta;
type Story = StoryObj<typeof meta>;

export const Primary: Story = {
  args: { label: 'Click me', variant: 'primary' },
};

export const Clicked: Story = {
  args: { label: 'Click me' },
  play: async ({ canvas, userEvent, args }) => {
    const button = canvas.getByRole('button', { name: /click me/i });
    await userEvent.click(button);
    await expect(args.onClick).toHaveBeenCalled();
  },
};

Read the full file on GitHub · 197 lines

Files

What ships with it

8 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.

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 First seen · 197 lines · 236 tokens per session scan A 0cc343dc0d71

Subscribe to this mod's changes

oms-storybook-react-vite is a skill published in the GitHub repository armelhbobdad/oh-my-skills (7 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 236 tokens to every session and 3,440 once invoked, about $0.0012 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-08-31.

Related

Other skills, from other repositories