Skip to content

feat(skills): promote Storybook story generation to a documented skill#109

Merged
PAMulligan merged 1 commit into
mainfrom
81-promote-storybook-story-generation-skill
Jul 1, 2026
Merged

feat(skills): promote Storybook story generation to a documented skill#109
PAMulligan merged 1 commit into
mainfrom
81-promote-storybook-story-generation-skill

Conversation

@PAMulligan

Copy link
Copy Markdown
Collaborator

Summary

scripts/generate-stories.sh (a thin wrapper over the ts-morph-based scripts/generate-stories.js) already existed but was never surfaced as a first-class skill. This PR promotes it to a documented, discoverable skill and wires it into the design-to-code pipeline.

What changed

  • New skill.claude/skills/storybook-story-generation/SKILL.md documenting trigger conditions/phrases, the AST generation process, prop→control mapping, variant/action-arg/default-arg behavior, CLI flags, pipeline.config.json → storybook options, outputs, and common mistakes. Modeled on the e2e-test-generator skill format.
  • Pipeline integrationfigma-to-react-workflow now invokes it as non-blocking Phase 4.5 (auto-generate stories + MDX right after the component build passes tests), with matching entries in the skill's Integration section and the catalog's pipeline-flow diagram.
  • Docs + counts — added the skill to the skills catalog, main README.md, CLAUDE.md, and onboarding docs; bumped every documented skill count 23 → 24. Also backfilled the previously-missing indesign-conversion row in the README skills list so it reads a contiguous 1–24.

Acceptance criteria (#81)

  • New skill at .claude/skills/storybook-story-generation/SKILL.md
  • Trigger conditions documented
  • Integration with figma-to-react-workflow skill (auto-generate stories after build)
  • README and skills catalog updated

Verification

  • ./scripts/check-doc-counts.sh0 drift (on disk: 56 agents, 24 skills)
  • pnpm vitest run scripts/__tests__/check-doc-counts.test.js5 passed
  • prettier --check on all changed Markdown → clean
  • Pre-commit count guard passed on commit

No code/script behavior changed — this is a documentation/skill-surface change over the existing generator.

Closes #81

Surface the existing AST-based Storybook generator (generate-stories.sh /
generate-stories.js) as a first-class, discoverable skill and wire it into
the design-to-code pipeline.

- Add .claude/skills/storybook-story-generation/SKILL.md documenting trigger
  conditions, the ts-morph generation process, control mapping, CLI flags,
  pipeline.config.json options, outputs, and common mistakes
- Wire it into figma-to-react-workflow as non-blocking Phase 4.5
  (auto-generate stories + MDX after component build) with Integration
  cross-references and a pipeline-flow entry
- Add the skill to the skills catalog, main README, CLAUDE.md, and onboarding
  docs; bump documented skill counts 23 -> 24 (also backfill the missing
  indesign-conversion row in the README skills list)

Closes #81

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@PAMulligan PAMulligan self-assigned this Jul 1, 2026
@PAMulligan PAMulligan added documentation Improvements or additions to documentation enhancement New feature or request pipeline Figma/Canva-to-React conversion pipeline labels Jul 1, 2026
@PAMulligan PAMulligan moved this from Todo to Done in PMDS Open Source Roadmap Jul 1, 2026
@PAMulligan PAMulligan added this to the v2.0.0 milestone Jul 1, 2026
@PAMulligan
PAMulligan merged commit 2e1be4a into main Jul 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request pipeline Figma/Canva-to-React conversion pipeline

Projects

Development

Successfully merging this pull request may close these issues.

Promote Storybook story generation to a documented skill

1 participant