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.
git clone --depth 1 https://github.com/patricio0312rev/skillsetnpx agentmods add skills/patricio0312rev/skillset/storybook-setupWrote 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/patricio0312rev/skillset/storybook-setup)<a href="https://agentmods.dev/skills/patricio0312rev/skillset/storybook-setup"><img src="https://agentmods.dev/badge/skills/patricio0312rev/skillset/storybook-setup/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/patricio0312rev/skillset/storybook-setup"><img src="https://agentmods.dev/badge/skills/patricio0312rev/skillset/storybook-setup.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.00050 | $0.03217 |
| Opus 5.5 | $0.00020 | $0.01287 |
| Sonnet 5.5 | $0.00010 | $0.00643 |
| Haiku 4.5 | $0.00005 | $0.00322 |
Grade A, and why
storybook-setup 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 2mo 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.
This is a copy
100% identical to storybook-setup — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 617 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Storybook Setup
Configure Storybook for comprehensive component documentation and testing.
Core Workflow
- Initialize Storybook: Setup with framework
- Configure addons: Controls, actions, a11y
- Write stories: Document components
- Add documentation: MDX pages
- Setup testing: Visual regression
- Deploy docs: Static hosting
Installation
# Initialize Storybook
npx storybook@latest init
# Or with specific framework
npx storybook@latest init --type react
npx storybook@latest init --type nextjs
npx storybook@latest init --type vue3
Configuration
Main Configuration
// .storybook/main.ts
import type { StorybookConfig } from '@storybook/react-vite';
const config: StorybookConfig = {
stories: [
'../src/**/*.mdx',
'../src/**/*.stories.@(js|jsx|mjs|ts|tsx)',
],
addons: [
'@storybook/addon-onboarding',
'@storybook/addon-links',
'@storybook/addon-essentials',
'@chromatic-com/storybook',
'@storybook/addon-interactions',
'@storybook/addon-a11y',
'@storybook/addon-designs',
'@storybook/addon-coverage',
],
framework: {
name: '@storybook/react-vite',
options: {},
},
docs: {
autodocs: 'tag',
},
staticDirs: ['../public'],
typescript: {
reactDocgen: 'react-docgen-typescript',
reactDocgenTypescriptOptions: {
shouldExtractLiteralValuesFromEnum: true,
shouldRemoveUndefinedFromOptional: true,
propFilter: (prop) =>
prop.parent ? !/node_modules/.test(prop.parent.fileName) : true,
},
},
viteFinal: async (config) => {
// Customize Vite config
return config;
},
};
export default config;
Preview Configuration
// .storybook/preview.ts
import type { Preview } from '@storybook/react';
import { themes } from '@storybook/theming';
import '../src/styles/globals.css';
const preview: Preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
backgrounds: {
default: 'light',
values: [
{ name: 'light', value: '#ffffff' },
{ name: 'dark', value: '#1a1a1a' },
{ name: 'gray', value: '#f5f5f5' },
],
},
layout: 'centered',
docs: {
theme: themes.light,
},
a11y: {
config: {
rules: [
{ id: 'color-contrast', enabled: true },
{ id: 'label', enabled: true },
],
},
},
viewport: {
viewports: {
mobile: {
name: 'Mobile',
styles: { width: '375px', height: '667px' },
},
tablet: {
name: 'Tablet',
styles: { width: '768px', height: '1024px' },
},
desktop: {
name: 'Desktop',
styles: { width: '1440px', height: '900px' },
},
},
},
},
globalTypes: {
theme: {
description: 'Global theme',
defaultValue: 'light',
toolbar: {
title: 'Theme',
icon: 'circlehollow',
items: ['light', 'dark'],
dynamicTitle: true,
},
},
},
decorators: [
(Story, context) => {
const theme = context.globals.theme;
return (
<div className={theme === 'dark' ? 'dark' : ''}>
<div className="bg-white dark:bg-gray-900 p-4">
<Story />
</div>
</div>
);
},
],
};
export default preview;
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.
- 2mo ago First seen · 617 lines · 50 tokens per session scan A b1be788c2fcf
storybook-setup is a skill published in the GitHub repository patricio0312rev/skillset (7 stars, last pushed 10mo ago), licensed MIT. It adds 50 tokens to every session and 3,217 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to storybook-setup, differing in 0 lines, and is treated as a copy.
storybook-setup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| storybook-setuppatricio0312rev/skillset | Skill | 7 | 10mo ago | MIT | A | 50 | Claude Code, Codex |
| next-cache-components-optimizervercel/next.js | Skill | 144k | today | MIT | A | 123 | Claude Code |
| next-partial-prefetching-optimizervercel/next.js | Skill | 144k | today | MIT | A | 82 | Claude Code |
| verify-workHoangNguyen0403/agent-skills-standard | Skill | 598 | yesterday | MIT | A | 23 | Codex |
| uat-signoffHoangNguyen0403/agent-skills-standard | Skill | 598 | yesterday | MIT | A | 27 | Codex |
| test-loopHoangNguyen0403/agent-skills-standard | Skill | 598 | yesterday | MIT | A | 25 | Codex |
| verifymeursyphus/ssgoi | Skill | 1.0k | 15d ago | MIT | A | 26 | Claude Code |