Skip to content

Guide · Agent skill

How to use the Maintain Storybook agent skill (maintain-storybook)

Updated · written with AI from the project's own documentation and checked against our catalogue data

The maintain-storybook skill is an instruction file that teaches an AI coding agent how to look after the Storybook component catalog in the Paperclip project. It is written for engineers who maintain Paperclip's stories and feature map, and it is only useful inside the Paperclip repository. After reading this guide you will know what the skill makes the agent do, how to install it, how to ask for it in plain language, and what it needs to run.

Maintain Storybookpaperclipai/paperclip · MIT

Quick start

  1. 1Get the skill. Download the ZIP from this page and unzip it so the maintain-storybook folder contains agents/openai.yaml and SKILL.md.
  2. 2Place it where the agent can load it. Copy the folder to ~/.claude/skills/ for personal use, or to the project's .claude/skills/ folder. Alternatively, upload it under Settings → Capabilities → Skills in the Claude apps.
  3. 3Confirm the repository has the required files. Check that scripts/storybook-catalog.mjs, the storybook map and the feature map are present, and that Node.js, Storybook, Playwright and Git are available.
  4. 4Describe a targeted maintenance task. Ask for a specific feature or capability, such as reconciling stories for one area, rather than a whole-product audit.
  5. 5Let the agent run the catalog script. The agent runs node scripts/storybook-catalog.mjs and records the source revision it reviewed.
  6. 6Run the checks. Run node scripts/storybook-catalog.mjs --check and the node --test command listed in the skill.
  7. 7Review the report. Read the list of corrected, retained and unreviewed stories, and check any upstream drift routed to maintain-verification-skill.

What is an agent skill and what does this one do?

An agent skill is a folder containing a SKILL.md file that an AI coding agent loads when a request matches its description. The file gives the agent a set of rules and steps to follow for one kind of task.

Storybook is a tool that shows UI components in isolation with sample data. This skill directs the agent to check that each story still matches the real product code and the project's feature documentation, to classify stories as current, proposed, historical or unreviewed, and to update fixtures and catalog metadata. It also reports upstream documentation drift to a separate verification skill, called maintain-verification-skill, instead of rewriting expected behaviour.

  • Reconcile story drift against production components and the feature recipes.
  • Classify stories explicitly as current, proposed, historical or unreviewed.
  • Update fixtures, mocked API responses and catalog metadata for stories in scope.
  • Keep the Storybook index and feature overview pages consistent with the upstream feature map.
  • Report production bugs and upstream documentation drift rather than changing expected behaviour to match them.

Install the maintain-storybook skill

Download the ZIP for this skill from this page and unzip it. The skill folder contains agents/openai.yaml and SKILL.md. Place the unzipped folder in one of two locations, depending on how you want it available.

To make it available to all your projects, put it in your personal skills folder. To make it available only to one project, put it in that project's .claude/skills/ folder.

Alternatively, in the Claude apps you can upload the skill under Settings → Capabilities → Skills.

  • Personal install: ~/.claude/skills/ (unzip so the maintain-storybook folder sits inside it).
  • Project install: .claude/skills/ inside the Paperclip repository.
  • Claude apps: Settings → Capabilities → Skills, then upload the skill.

Check the requirements before you start

The skill depends on files and tools inside the Paperclip repository. It will not work on an unrelated codebase, because it refers to paths such as maps/storybook-map, DESIGN.md and scripts/storybook-catalog.mjs, which are not included in this download.

The skill runs scripts, but it does not use the network. Scripts are run with Node.js, including node --test.

  • Node.js, since the scripts run with node.
  • The Paperclip repository, including scripts/storybook-catalog.mjs and the related check scripts.
  • Storybook and Playwright tooling already set up in the repository.
  • Git, used for diffs and history when choosing which subjects to review.

How to trigger the skill with natural requests

You do not need a special command. Describe the maintenance job in plain language, using the kinds of task the skill covers: reconciling story drift, classifying prototypes, updating fixtures, or maintaining feature coverage. Name the feature or capability when you can, because the skill follows capability IDs to catalog entries.

Keep requests targeted. The skill is designed not to turn a narrow request into an audit of the whole product.

  • "Reconcile the Storybook stories for the approvals feature with the feature map."
  • "Classify the prototype stories in the storybook catalog and mark anything without parity evidence as unreviewed."
  • "Update the fixtures for the agent-run stories after the mocked API response shape changed."
  • "Check which capabilities in the feature map have no current Storybook example."

What the agent does during a maintenance pass

For a targeted change, the agent follows the capability IDs to the matching catalog entries and shared dependencies. For a full inventory, it accounts for every configured story file, including historical examples. It starts by running the catalog script and records the source revision.

It then compares each affected story's rendered subject, props, fixture responses and assertions with the production implementation. It inspects mocked methods, payload shapes and error handling, and it does not replace errors with generic successful mocks to make a check pass.

Finally it regenerates the ignored indexes and runs the catalog checks. Its report names the files and capabilities that were corrected, retained, or still need review.

node scripts/storybook-catalog.mjs node scripts/storybook-catalog.mjs --check node --test scripts/check-maps.test.mjs scripts/storybook-catalog.test.mjs scripts/storybook-feature-index.test.mjs

Safety notes: scripts and what they can and cannot prove

The skill runs local scripts and does not use the network. Review the scripts before running them in a repository you care about, as with any script an agent runs.

Passing catalog checks do not prove product correctness. The skill states that the checks validate local annotations, discovered inventory and references, not semantic parity or runtime health. Fixture interactions also do not establish production API, permission or provider behaviour. Review affected rendering with the review-storybook skill, and do not accept new screenshot baselines as part of a catalog cleanup.

  • Scripts run with Node.js; the skill does not use the network.
  • A passing check is not evidence that the product works.
  • Screenshot baselines should not be accepted as part of a catalog cleanup.

What people use it for

  • Reconciling a Storybook story with the production component it is meant to show after a prop change.
  • Classifying old prototype stories as proposed or historical and recording the replacement reference.
  • Updating mocked API fixtures so error responses are shown correctly rather than replaced with success.
  • Finding capabilities in the feature map that have no current Storybook example.

Frequently asked questions

How do I install the maintain-storybook skill?

Download the ZIP from this page and unzip it. Place the maintain-storybook folder in ~/.claude/skills/ for personal use, or in a project's .claude/skills/ folder. In the Claude apps you can instead upload it under Settings → Capabilities → Skills.

What do I need to run the maintain-storybook skill?

You need Node.js, the Paperclip repository with scripts/storybook-catalog.mjs and related check scripts, Storybook and Playwright tooling already in the repository, and Git. The skill depends on files such as maps/storybook-map and DESIGN.md that are not included in the download.

Is the maintain-storybook skill free?

The source describes the skill as MIT licensed. It does not state pricing, so check the repository licence for the terms that apply to your use.

Does the skill use the internet?

No. The skill is listed as not using the network, but it does run scripts with Node.js, so review them before running them in your repository.

Can I use this skill outside the Paperclip repository?

No. The skill is intended for the Paperclip repository only, because it relies on specific maps, design files and scripts that are not included here.

Why does my catalog check pass but the story still looks wrong?

The catalog checks validate local annotations, discovered inventory and references. They do not check semantic parity with production or runtime health, so a passing check does not prove the component is correct. Review rendering with the review-storybook skill.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use this skill if you maintain the Paperclip Storybook catalog and its feature map and want an agent to keep stories aligned with production components and classify them carefully. Pick something else if you work outside the Paperclip repository, or if you expect a passing catalog check to prove the product works.

Download the skill