Skip to content
cccskills
FreePublished on GitHubEnglish overview

open-pr

Create a draft pull request from the current branch using the project’s template. The skill checks changes, detects the base branch, gathers label choices, and prepares a title, description, and testing details.

OriginalShow the original description

Opens a pull request from the current branch using the PR template. Use when the user asks to open a PR, create a pull request, or invokes /open-pr.

AI rating80/ 100See how to install

Good for

  • Creating a draft pull request from the current branch
  • Filling a pull request template with changes and testing details
  • Finding the base branch for stacked pull requests
  • Choosing CI, QA, and change-type labels

Overview

What it does

Creates a draft pull request from your current branch using the project’s template. It checks the diff, commit history, and branch state to identify the base branch for comparison. It prepares the title, change description, testing details, and relevant documentation sections, then reports the new PR’s URL.

When it helps

Use it after implementation when you want to prepare changes for review and fill out the PR template together. It also handles branches created from other feature branches. After checking the template’s available options, it asks you to choose labels for the CI test group, whether QA is needed, and the type of change.

Example requests

  • “Create a draft PR from my current branch using the template.”
  • “Check which branch this came from, then summarize the changes and test results in a PR.”

Notes

The workflow assumes Storybook conventions. It uses Git, gh, .github/PULL_REQUEST_TEMPLATE.md, and the included base-branch detection script. It pushes the branch if needed, always creates a draft, and assigns the PR to its creator. After creation, it asks whether you want a canary release for testing. If you do, it continues with the separate canary skill.

This overview was written by AI (OpenAI Codex) from the public SKILL.md. Check the original below for the exact behavior.

Objective evaluation

AI rated this skill on four points using only the contents of its SKILL.md. Stars and popularity are not taken into account.

Clear instructionsIs it clear when to use it and what it does?
AGoodIt explicitly creates a draft PR from the current branch following Storybook conventions.
Concrete stepsAre steps, inputs, outputs, and examples spelled out?
AGoodOrdered steps cover checking changes, detecting the base, asking about labels, filling the template, and running the creation command.
SafetyAre sending data, deleting files, and running commands disclosed?
BPartly lackingIt runs git push and creates a PR, but provides no confirmation step before pushing.
Easy setupDoes it need few tools or API keys, and are they documented?
BPartly lackingIt uses Git, gh, a template, and a detection script, but provides no installation or authentication instructions.

The total counts each point as A = 25, B = 15, C = 5. Rated by AI (OpenAI Codex) as of Oct 21, 2026. Treat it as a guide and read the original before installing.

Disagree? Request a re-evaluation

Tell us which point is wrong and why. No login needed. We will check it against the SKILL.md, redo the evaluation, and show the result here.

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

Files included (2)

  • SKILL.md2.8 KB
  • scripts/detect-base-branch.sh3.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Open Pull Request

Opens a draft PR from the current branch following Storybook conventions.

Workflow

1. Gather context

Run in parallel: git status, git diff, git log --oneline <base>...HEAD (after step 2), git branch -vv.

Push first if needed: git push -u origin HEAD.

2. Detect base branch

git fetch origin
bash .agents/skills/open-pr/scripts/detect-base-branch.sh

Detects base in order: tracked upstream → reflog checkout source → closest origin/* ancestor (fewest commits from branch tip to HEAD). Supports telescoped/stacked PRs off feature branches, not only next/main. Skips branches at the same commit as HEAD. Tie-break: feature branch over trunk, then next over main. Falls back to next. Tell the user the result.

3. Ask for labels

Use AskQuestion for three questions. Options from .github/PULL_REQUEST_TEMPLATE.md:

QuestionOptions
CI labelci:normal, ci:merged, ci:daily
QA labelqa:needed, qa:skip
Type labelbug, maintenance, dependencies, build, cleanup, documentation, feature request, BREAKING CHANGE, other

Verify the available labels with the PR template.

4. Draft title and body

Title: [Area]: [Description] — see the pr skill for format and examples.

Body: Read .github/PULL_REQUEST_TEMPLATE.md. Copy it exactly (keep all HTML comments). Fill in:

  • Closes # when an issue is linked
  • What I did
  • Testing checkboxes and mandatory manual-testing steps (or state why none is needed)
  • Documentation checkboxes when applicable
  • Leave maintainer checklist items unchecked

5. Create the PR

gh pr create \
  --draft \
  --base "<detected-base>" \
  --title "<Area>: <Description>" \
  --body "$(cat <<'EOF'
<FILLED_TEMPLATE>
EOF
)" \
  --assignee @me \
  --label "<type>,<ci>,<qa>"

6. Report and offer canary

Share the PR URL. Then AskQuestion: "Do you want to create a canary release for this PR?"

  • Yes — follow the canary skill
  • No — stop

Notes

  • Always draft; always assign @me.
  • For canary details after publishing, see the canary skill.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

canary

FreeSummaryAI rating 80

Find a trial Storybook package for a specific branch, or trigger its publication when needed. Check release progress and obtain the package reference or commands for creating or upgrading a project with that build.

  • Find a trial package for a Storybook branch
  • Publish a trial build for a fork pull request
  • Check publication progress and installation commands
storybookjs/storybook91.4KUpdated Oct 22, 2026

component-docs

FreeSummaryAI rating 90

Look up a project's existing UI components in Storybook, including their props, or configuration inputs, and usage examples. Use the findings to answer questions and identify components to reuse before building duplicates.

  • Find existing UI components
  • Check component props and usage examples
  • Answer questions about component usage
storybookjs/storybook91.4KUpdated Oct 22, 2026

docs-review

FreeSummaryAI rating 90

Review, improve, rewrite, or draft Storybook documentation in /docs. Assess each page’s purpose, audience, structure, and examples, then make suitable edits or provide a content plan, with formatting checks after changes.

  • Improve the structure and examples of a documentation page
  • Draft documentation for a new feature
  • Plan page types and outlines
storybookjs/storybook91.4KUpdated Oct 22, 2026

fix-linting-types-on-pr

FreeSummaryAI rating 80

Check out a GitHub pull request, fix linting and TypeScript errors, and commit and push the changes. The workflow supports forked pull requests and repeats type checks to verify fixes while keeping changes focused on these errors.

  • Fix linting errors in a pull request
  • Resolve TypeScript errors in a pull request
  • Apply fixes to a pull request from a fork
storybookjs/storybook91.4KUpdated Oct 22, 2026

github-qa-labels

FreeSummaryAI rating 80

Organize GitHub issues and pull requests found during quality assurance testing. Apply release tracking labels, classify bugs by four severity levels, and label multiple findings while keeping documentation issues and feature requests outside the severity scheme.

  • Group QA findings by release
  • Classify bugs by severity
  • Apply labels to multiple issues and pull requests
storybookjs/storybook91.4KUpdated Oct 22, 2026

handle-pr-comments

FreeSummaryAI rating 90

Work through unresolved GitHub pull request reviews one at a time. The skill explains each comment, proposes a fix, asks how to proceed, and handles chosen edits, replies, commits, and thread resolution.

  • Addressing unresolved pull request review comments
  • Choosing between a code fix, a reply, or skipping a comment
  • Handling duplicate review comments together
storybookjs/storybook91.4KUpdated Oct 22, 2026

See all skills by storybookjs

Report a problem with this skill