generate-storybook

Generate CSF3 .stories.tsx files for Next.js 15 components and pages.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/qdhenry/Foundry-OSS --skill generate-storybook
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-storybook
Source: https://github.com/qdhenry/Foundry-OSS/tree/main/.agents/skills/generate-storybook
Command: npx skills add https://github.com/qdhenry/Foundry-OSS --skill generate-storybook

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the setup and maintenance of Storybook by orchestrating subagents that discover all components and pages and generate comprehensive stories, reducing manual toil.

Core Features & Use Cases

  • Auto-discovery of components and routes across the codebase to produce consistent Storybook stories.
  • Parallelized story generation by domain, including visual, interaction, accessibility, and responsive coverage.
  • Validation steps ensure generated stories compile and align with CSF3 templates, with mocks for Convex, Clerk, and Router.

Quick Start

Run the skill to initiate Storybook generation and watch stories be created automatically.

Frequently Asked Questions about generate-storybook

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

FAQPage Schema
How do I auto-generate Storybook stories for React components in CSF3 format?

To auto-generate Storybook stories in CSF3 format, this skill discovers React components and pages, then produces adjacent .stories.tsx files. It orchestrates parallel story generation by domain to ensure comprehensive visual, interaction, and accessibility coverage.

What types of Storybook stories are generated for component testing?

Generated Storybook stories cover visual, interaction, accessibility, and responsive testing scenarios for each discovered component and page, ensuring comprehensive validation coverage aligned with repository story templates.

Can I automate Storybook story generation for a large Next.js project with multiple domains?

Yes, you can automate Storybook story generation for large Next.js projects. This skill scales across multiple domains and 40+ pages, parallelizing story generation by domain to handle extensive codebases efficiently.

How do you mock Convex and Clerk dependencies when generating Storybook stories?

Mocking Convex and Clerk dependencies in Storybook stories is handled by enforcing strict mock decorators during generation, ensuring type-safe story compilation and isolated component rendering without live backend connections.

Does auto-generating Storybook stories validate that the .stories.tsx files compile correctly?

Yes, auto-generating Storybook stories includes validation steps ensuring generated stories compile correctly, validating coverage per repository story templates and enforcing type-safe story compilation across the codebase.

What is the best way to maintain consistent Storybook documentation across a growing codebase?

The best way to maintain consistent Storybook documentation is automating story generation so new components and routes are discovered and paired with standard CSF3 stories automatically, reducing manual toil and enforcing template alignment.