Agent skill

Storybook Stories Skill: Write Stories That Match Your Repo

A skill that tells your AI coding agent to extend the nearest Storybook story, reuse global decorators and show only the states that explain real behavior.

Install
git clone https://github.com/pedronauck/skills.git && cp -r skills/skills/mine/storybook-stories ~/.claude/skills/storybook-stories
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the storybook-stories skill?

The storybook-stories skill is a short SKILL.md from pedronauck/skills. It makes an AI coding agent create, update, refactor or troubleshoot Storybook stories by following project conventions: typed CSF metadata, shared decorators, the owning Storybook instance, and a check of the changed behavior before it stops.

Storybook-stories is one skill folder in the pedronauck/skills collection, listed in the repo's skills/mine bucket. Its frontmatter describes it as a way to create, update, refactor or troubleshoot Storybook stories using project conventions.

The body is only a handful of rules, plus a references/patterns.md file the agent reads when it needs a composition pattern. It is a convention follower, not a story generator with a fixed template.

What changes in your agent's output

  • New stories land next to the nearest existing story, in the Storybook instance that owns that layer, instead of in a fresh file with new conventions.
  • Providers such as QueryClient, router and MSW come from global decorators, so stories stop wrapping themselves in duplicate setup.
  • Each story shows the smallest set of supported states that explains behavior, with no forced prop matrix or story count.
  • Metadata is typed with StoryObj<typeof meta>, and examples use the component's real API, not variants copied from a template.
  • The agent runs the owning Storybook build or visual check for the changed behavior before it reports done.

Who the storybook-stories skill is for

Best for

  • Teams with an existing Storybook and house rules that agents keep breaking.
  • Monorepos where primitives and app or domain stories live in different Storybook configurations.
  • Reviewers tired of stories that list every prop combination but explain nothing.
  • Pairing with a Figma-to-Storybook flow such as sb-figma once the stories need upkeep.

Not for

  • Writing the component itself. The description excludes component implementation.
  • Changing design tokens, writing end-to-end browser tests or authoring other documentation. All three are excluded.
  • Projects with no Storybook yet. The skill extends what exists and has no setup step.

Use it with UiChemy

This skill documents UI components in code, not in WordPress. When a finished build has to become an editable page, UiChemy AI to WordPress imports an AI build into WordPress. Click Get Started on uichemy.com.