Pr

From storybookjs/storybook · View interactive version

Pr is an AI agent skill from the GitHub repository storybookjs/storybook. Creates a pull request following Storybook conventions. Use when creating PRs, opening pull requests, or submitting changes for review.

How to use this skill

Skill file

Create Pull Request

Creates a PR following Storybook conventions.

Title format

[Area]: [Description]

Labels

Add these labels to the PR:

Category (required, pick one):

CI: do not add a ci:* label. The review bot or a maintainer adds it once automated review has finished.

Canary (optional):

QA (required, pick one):

Tells the release team whether manual QA is needed before the next minor release.

Heuristics:

Commit history

Shape the commits so a reviewer can skip the hard implementation and review the behaviour through the tests:

Until a human other than the author has reviewed the PR, fold each fix into the commit that owns it, also for bot feedback and the author's feedback. After the first human review by someone else, add each fix for a human's feedback as a new commit on top, and link that commit in the reply on the human's thread: a folded fix is hard for the reviewer to find. A rebase onto the base branch is still fine, but keep those fix commits separate.

PR body

Read .github/PULL_REQUEST_TEMPLATE.md from the repository root.

Copy that template EXACTLY, including all HTML comments (<!-- ... -->). Fill in the relevant sections based on the changes, but keep all comments intact.

Describe the change against the base branch only. Do not compare it with earlier or replaced PRs. When the PR is an alternative to another open PR, say so in one line at the top.

How to review

Add a "How to review" section when the PR has more than one commit. Write one numbered item per commit, in order: the commit title as a link (https://github.com/<owner>/<repo>/pull/<number>/commits/<full sha>), how closely to review it (Review this one, Skim, or Skip), and what it changes, in one or two sentences. Update the links after each rebase or force-push, because the SHAs change.

Manual testing (required)

The Manual testing section is mandatory — never leave it empty. Write steps for a separate maintainer, not a log of how you tested.

Each step should be:

Verify your own steps first — run through them locally before opening the PR.

When useful, link to published Chromatic Storybooks (CI must finish first; links won't work immediately after opening the PR):

For stories of another sandbox, use that sandbox's project from Chromatic projects. The links need a Chromatic login.

Replace <branch> with Chromatic's normalized slug (special chars → dashes, e.g. feature/foo → feature-foo) and <story_id> with the story path (e.g. example-button--primary).

Command

Always create PRs in draft mode:

gh pr create --draft --title "<Area>: <Description>" --body "<FILLED_TEMPLATE>" --label "<category>,<qa>"
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.