fec-storybook-component-doc

Validate Storybook component documentation with MDX and frontmatter checks.

21|3|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/bovinphang/frontend-craft --skill fec-storybook-component-doc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fec-storybook-component-doc
Source: https://github.com/bovinphang/frontend-craft/tree/main/localized/zh-CN/skills/fec-storybook-component-doc
Command: npx skills add https://github.com/bovinphang/frontend-craft --skill fec-storybook-component-doc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Storybook component documentation, design-system showcase, isolated component previews, and MDX documentation to support consistent UI across apps.

Core Features & Use Cases

  • Story coverage for each component: default, variants, sizes, tonal states, disabled/loading/error/empty, and state combinations.
  • MDX docs and decorators to explain props, tokens, and design-system mappings; supports tokens, theming, and accessibility notes.
  • Integration with Chromatic or Storybook Test Runner for automated visual regression and QA workflows.

Quick Start

Run the Storybook component docs workflow for a component by initializing Storybook in your project and loading the MDX docs and stories.

Frequently Asked Questions about fec-storybook-component-doc

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

FAQPage Schema
How do I document Storybook components using MDX and decorators?

Document Storybook components by applying explicit frontmatter and MDX content. Use decorators to explain props, tokens, and design-system mappings, ensuring consistent UI documentation across your apps.

What is the best way to structure Storybook stories for component state previews?

Structure Storybook stories by covering default states, variants, sizes, tonal states, and combinations like disabled, loading, error, and empty. This ensures comprehensive component documentation and isolated previews.

Can I use Storybook Test Runner or Chromatic for automated visual regression checks?

Yes, you can integrate with Chromatic or Storybook Test Runner. This enables automated visual regression and QA workflows to validate component consistency across your design system.

Do I need explicit frontmatter for Storybook MDX documentation?

Yes, explicit frontmatter is required. The documentation enforces explicit frontmatter alongside MDX content and Storybook configuration integration to ensure documentation consistency across your UI library.

How does Storybook component documentation support design-system theming and accessibility?

Storybook component documentation supports design-system theming and accessibility by using MDX docs and decorators. This maps props to tokens and includes accessibility notes within the component showcase.

What are the limitations of manually managing Storybook component docs?

Manually managing Storybook component docs risks inconsistent component state coverage and unmapped design tokens. Enforcing structured MDX content and decorators mitigates this but requires strict adherence to configuration integration.