storybook

Solid

Scaffolds, audits, and tests Storybook stories for React (web) and React Native / Expo (native) component libraries. Generates three artefacts in two files per invocation: a visual regression `*.stories.tsx` file containing a `Default` story (variants grouped into a single snapshot) and a `Playground` story (interactive `args` / `argTypes`), plus a sibling `*.test.stories.tsx` interaction test file under a `/Tests` namespace. Supports an opt-in, per-pathname auth flow whose credentials live in the OS keychain (not in the repo). Iteration loop uses the Playwright CLI against the running Storybook URL; visual evidence delegates to the `pr-reviewer` agent and the `screen-recorder` skill. Triggers on "scaffold stories", "add storybook", "story for this component", "interaction test for this story", "/storybook".

Web & Frontend 8 stars 2 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
32
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Storybook Scaffold and test Storybook stories — **three artefacts in two files** per component: a `Default` story and a `Playground` story (both in the visual regression file) plus an interaction test file under a `/Tests` namespace. Works on React (web) and React Native / Expo (native). Auth — when the running Storybook is gated — is opt-in and per-pathname, with secrets stored in the OS keychain instead of the repo. > **This `SKILL.md` is a thin index.** > Concern-specific rules live in [`rules/*.md`](./rules) and load on > demand. > Reference material lives in [`references/*.md`](./references). > Literal scaffolding lives in [`templates/*.md`](./templates). > Do not preload every file — load only what the current phase asks for. --- ## When to use Reach for this skill when any of the following is true: - A component has no story file yet and needs visual regression coverage. - An existing `*.stories.tsx` lacks an interaction test counterpart. - A `Playground` story is missing or out of sync with current props. - The Storybook target is gated by auth and the agent needs to log in. - A flaky interaction test needs to be iterated against the running Storybook URL. Do **not** reach for this skill when: - The task is to build the component itself. Scaffold stories **after** the component is implemented and named. - The repo has no Storybook installation at all. Halt and ask the user to install Storybook first — this skill does not bootstrap Storybook. - The co...

Details

Author
mthines
Repository
mthines/agent-skills
Created
3 months ago
Last Updated
2 days ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category