storybook-guidelines

Create Storybook stories for conditional rendering branches with Japanese names.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/imaimai17468/custom-asmr --skill storybook-guidelines
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: storybook-guidelines
Source: https://github.com/imaimai17468/custom-asmr/tree/main/.claude/skills/storybook-guidelines
Command: npx skills add https://github.com/imaimai17468/custom-asmr --skill storybook-guidelines

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Storybook story creation often lacks coverage for conditional rendering and can drift toward non-critical prop variations. This guide defines a concise set of rules to ensure UI stories demonstrate real state changes and predictable behavior.

Core Features & Use Cases

  • Create stories for conditional rendering branches (e.g., elements shown/hidden by conditions).
  • Keep Meta minimal and avoid barrel imports; use explicit imports with the project alias.
  • Name stories in Japanese to make visual distinctions immediately clear and maintain consistency across components.
  • Write in TypeScript with clear, inline documentation for maintainers.
  • Provide examples and anti-patterns to prevent unnecessary variations and logic mocking.

Quick Start

Create a Storybook story file for a component that conditionally renders a header based on isVisible, with Japanese naming.

Frequently Asked Questions about storybook-guidelines

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

FAQPage Schema
How do I write Storybook stories for conditional rendering branches?

Storybook stories for conditional rendering should explicitly cover each state branch, such as elements shown or hidden by conditions. This ensures stories demonstrate real state changes and predictable behavior rather than trivial prop variations.

What is the best way to structure Meta configuration and imports in Storybook component stories?

Meta configuration should be minimal and imports should be explicit, avoiding barrel imports. Use the project alias for imports to maintain clear dependency tracking and ensure robust component stories.

Does Storybook support Japanese naming conventions for component stories?

Storybook supports Japanese naming for component stories to make visual distinctions immediately clear. This approach maintains consistency across components and helps developers quickly identify specific UI states.

How do I define event handlers and args for individual Storybook stories in TypeScript?

Event handlers in Storybook stories should be defined using fn() within per-story args. TypeScript with inline documentation is required to provide clear maintainability and type safety for component logic.

Why does my Storybook story lack coverage for complex UI states?

Storybook stories often lack coverage because they drift toward non-critical prop variations instead of conditional rendering branches. Following concise rules to focus on real state changes ensures comprehensive UI coverage.

Can I use barrel imports when creating Storybook stories for TypeScript components?

Barrel imports are not recommended for Storybook stories. Explicit imports with the project alias are required to prevent unnecessary variations and ensure predictable component behavior during testing.