pr

Create GitHub pull requests with issue references from branch names.

Updated Apr 17, 2025
One-click install
npx skills add https://github.com/nikawa2161/blog --skill pr-nikawa2161
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr
Source: https://github.com/nikawa2161/blog/tree/main/.claude/skills/pr
Command: npx skills add https://github.com/nikawa2161/blog --skill pr-nikawa2161

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the process of creating GitHub pull requests by deriving an issue reference from the active branch and assembling a PR with a title, body, and a link to the related issue. It eliminates manual PR drafting, speeds up workflows, and improves traceability between branches and issues.

Core Features & Use Cases

  • Issue inference: Derives the issue number from the branch name (e.g., feature/123 -> issue #123) and fetches the issue title and description.
  • PR generation: Creates a PR with a meaningful title and body that summarizes changes and references the issue.
  • Workflow integration: Pushes the branch to origin and opens the PR against the main branch, suitable for feature development and bug fixes.

Quick Start

On a feature branch like feature/123, run this skill to automatically generate a PR proposal, including the issue link and a summarized description.

Frequently Asked Questions about pr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically create a GitHub pull request from a feature branch?

To create a GitHub pull request automatically, this skill derives the issue number from your current branch name, pushes the branch to origin, and opens a PR against main with a generated title, body, and issue link.

How does branch name issue inference work for GitHub PRs?

Branch name issue inference works by parsing the issue ID encoded in your branch name, such as feature/123, fetching the corresponding issue title and description, and embedding that context into the generated pull request.

Do I need GitHub CLI installed to automate pull request creation?

Yes, you need the GitHub CLI and Git installed and authenticated to automate pull request creation, as the skill relies on these tools to interact with the repository, push branches, and open PRs.

What is the best way to link a GitHub issue to a pull request automatically?

The best way to link a GitHub issue to a pull request automatically is using a workflow that derives the issue number from the branch name and inserts a direct issue link into the PR body.

Can I use this automated PR workflow for bug fix branches?

Yes, you can use this automated PR workflow for bug fix branches, as it applies to both feature development and bug fix workflows where branch names encode issue IDs and PRs should reference those issues.