UX Storybook Skill
WorkflowSkills Project Context
Before acting, resolve project documentation roots:
- Look for a
[DOC]-*directory at project root. - If found, set
DOC_ROOTto that directory andUX_DOCS_ROOTto[DOC]-*/11-UX-DesignOps. - If
[DOC]-*is absent, stop and ask to initialize project documentation first before writing persistent UX documentation. - Read
DESIGN.md, component docs, existing stories, and component code.
Goal
Use Storybook when present to document, test, and verify UI component states.
Process
- Detect Storybook config and existing stories.
- Map component docs to required stories.
- Recommend or create stories for core states when implementation is requested.
- Use Storybook as a rendered target for
ux-visual-verificationwhen possible. - Update
UX_DOCS_ROOT/05-Components/[component].md.
Rules
- Storybook is useful but optional unless the project already relies on it.
- Do not add Storybook dependencies unless explicitly requested.
- Cover loading, error, empty, disabled, focus, selected, and responsive variants where relevant.
- Visual verification still requires rendering through the Codex Browser plugin by default, or Playwright/Storybook/equivalent when needed.