About pr
pr is a skill for creating or updating a pull request from a task branch. It follows repository conventions for commits and PR templates, then reports the PR URL.
Key features
- 01Create or switch to a task branch
- 02Stage intended files and commit changes
- 03Find and follow the repository PR template
- 04Push and open or update a PR
- 05Report the PR URL and check results
Use cases
- 01Open a PR for completed changes
- 02Update an existing PR on the branch
- 03Prepare a PR body that follows repository conventions
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ owainlewis/ blueprint --skill prAfter installing, type/prin Claude Code to confirm it loaded.
Details
From the project READMEPR
- If still on the default branch, create or switch to a task branch first.
- Commit intended changes with a Conventional Commit subject. Stage only intended files.
- Before writing the PR body, read the repo's PR template if one exists. Check
.github/pull_request_template.md,.github/PULL_REQUEST_TEMPLATE.md,pull_request_template.md,docs/pull_request_template.md, and.txtvariants. If aPULL_REQUEST_TEMPLATE/directory exists under.github/, the repo root, ordocs/, pick the template named by the repo or user; otherwise use the default template if present. - Push and open the PR, ready for review by default, draft only when asked or the work is known incomplete. Title reads like a commit subject: in squash-merge repos it becomes the commit on the default branch.
- Write the body from the template when one exists. Preserve headings and fill relevant sections from the diff and work done: what changed and why, ticket link when one exists, checks run with results, review issues fixed, and anything not checked. If no template exists, write a concise body with those same details.
- Report the PR URL.
Rules
- One PR per branch. If one is open, push and update it. Preserve human edits to the body: update only what the new commits change.
- Follow the repo's PR template when one exists.
- Never claim checks that did not run.
- If push or PR creation fails, keep the work local and report the exact failure.
Comments
Markdown supported