Borrowing it
Nothing to install: this file belongs to radix-ng/primitives. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/radix-ng/primitives/main/.claude/skills/storybook-story/SKILL.mdgit clone --depth 1 https://github.com/radix-ng/primitivesWrote 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/radix-ng/primitives/storybook-story)<a href="https://agentmods.dev/skills/radix-ng/primitives/storybook-story"><img src="https://agentmods.dev/badge/skills/radix-ng/primitives/storybook-story/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/radix-ng/primitives/storybook-story"><img src="https://agentmods.dev/badge/skills/radix-ng/primitives/storybook-story.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00090 | $0.03712 |
| Opus 5 | $0.00045 | $0.01856 |
| Sonnet 5 | $0.00018 | $0.00742 |
| Haiku 4.5 | $0.00009 | $0.00371 |
Grade A, and why
storybook-story 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 — 231 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Writing Storybook Stories for Radix NG Primitives
Checklist — run through this before writing any story file
-
Any story embedded via
<Canvas of={X}>must be a standalone component —propsdo not survive a Canvas embed. The exception is the primaryDefaultstory, which may be a small inline template usingprops+args, provided it is surfaced in the MDX via<Primary />/<Controls />(never<Canvas of={Default}>). This matches thebuttonandcheckboxreferences.// ✅ Default — small inline template with props/args, shown via <Primary/> in MDX export const Default: Story = { args: { disabled: false }, render: (args) => ({ props: { ...args, b: demoButton }, template: html` <button rdxButton ${argsToTemplate(args)} [class]="b.base">Button</button> ` }) }; // ✅ Named example — standalone component, safe to embed via <Canvas of={X}> export const Variants: Story = { parameters: source(variantsSource), render: () => ({ template: html` <button-variants-example /> ` }) }; // ❌ wrong — a props-based story embedded via <Canvas of={WithScroll}> renders blank export const WithScroll: Story = { render: () => ({ props: { r: demoRadio }, template: `<div [class]="r.group">...` }) };In the MDX: surface
Defaultwith<Primary />(+<Controls />) and addof={Stories}to<Meta>; embed every other example with<Canvas of={Stories.X} />. -
One component → one file. Every standalone story component gets its own file:
stories/select-default.ts,stories/select-with-scroll.ts, etc. Never put multiple story components in a singlestories/<name>.ts.Reason:
?rawimports the entire file, so a shared file shows all source for every story. -
?rawimport per story file. In<name>.stories.ts:import defaultSource from './select-default?raw'; export const Default: Story = { parameters: source(defaultSource), render: () => ({ template: html` <select-default /> ` }) };
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 First seen · 231 lines · 90 tokens per session scan A 5b4e0b19f4e4
storybook-story is a skill published in the GitHub repository radix-ng/primitives (270 stars, last pushed yesterday), licensed MIT. It adds 90 tokens to every session and 3,712 once invoked, about $0.0005 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-30.
Other skills, from other repositories
create-db-component
Creates a new DB UX Design System component with Mitosis source, SCSS, typed model, and Playwright tests.
modify-db-component
Modifies an existing DB UX Design System Mitosis component (add variants, update props, change styles).
implement-component
Implements production-ready UI using DB UX Design System v3 components, tokens, and icons with a discovery-first approach.
migrate-to-v3
Migrates legacy DB UI v2 code (cmp-, elm-, rea- classes, Web Components, db-color- tokens) to DB UX Design System v3.
shadcn
Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json…
migrate-radix-to-base
Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert radix primitives, or switch a shadcn project's base library. Handles single components ("migrate accordion") and whole projects.