storybook-codex

Generate Storybook stories and docs for React, Vue, and Svelte components.

3|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/ychampion/storybook-codex --skill storybook-codex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: storybook-codex
Source: https://github.com/ychampion/storybook-codex/tree/main/skills/storybook-codex
Command: npx skills add https://github.com/ychampion/storybook-codex --skill storybook-codex

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Storybook Codex centralizes and automates the lifecycle of Storybook stories across React, Vue, and Svelte, reducing manual toil, drift, and context-switching.

Core Features & Use Cases

  • Create or update React, Vue, and Svelte Storybook stories (.stories.tsx, .stories.ts, .stories.svelte)
  • Generate docs pages (.stories.mdx) and docs-tagged CSF stories with parameters.docs.description
  • Suggest parent-context stories, wrapper decorators, and preview decorators; perform diff-aware updates; scaffold play() flows and visual regression hooks; detect design tokens; and scaffold provider decorators
  • Audit Storybook repos to surface health gaps, lens coverage, and actionable improvements across a repo

Quick Start

Run the blueprint and docs generators on a component to produce ready-to-integrate Storybook artifacts.

Frequently Asked Questions about storybook-codex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Storybook story generation for React, Vue, and Svelte components?

Storybook automation analyzes repository context to mine real usage, provider trees, and tokens, producing compact framework-aware blueprints across React, Vue, and Svelte. It generates .stories.tsx, .stories.ts, and .stories.svelte files while respecting existing conventions.

What is the best way to update Storybook docs pages without losing existing conventions?

Use diff-aware updates that preserve existing titles and docs blocks. This generates .stories.mdx files and docs-tagged CSF stories with parameters.docs.description while respecting repository conventions and surfacing actionable recommendations.

Does Storybook Codex work with Playwright for visual regression testing?

Yes, it scaffolds play() flows and visual regression hooks for Playwright. It analyzes component usage to suggest parent-context stories, wrapper decorators, and preview decorators that integrate with Playwright testing workflows.

Can I audit my Storybook repository for accessibility and coverage gaps?

Yes, you can audit Storybook repos to surface health gaps, lens coverage, and actionable improvements. The audit detects design tokens, checks a11y coverage, and produces recommendations for stories, docs, and accessibility improvements.

How do I scaffold provider decorators for Storybook stories across multiple frameworks?

Analyze repository context to mine real provider trees and tokens. The process generates framework-aware wrapper decorators and preview decorators for React, Vue, and Svelte Storybook stories, ensuring changes respect existing conventions.

When should I not use automated Storybook story generation?

Avoid automated Storybook story generation when your repository lacks existing stories or docs conventions to preserve, or when components have no real usage patterns to mine. The tool relies on repository context to produce framework-aware blueprints.