pr

Create GitHub pull requests with generated bodies and pre-flight checks.

2|Updated Dec 28, 2024
One-click install
npx skills add https://github.com/shonenm/dotfiles --skill pr-shonenm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr
Source: https://github.com/shonenm/dotfiles/tree/main/common/claude/.claude/skills/pr
Command: npx skills add https://github.com/shonenm/dotfiles --skill pr-shonenm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation of Pull Requests by analyzing your code changes, generating a rich PR body, and ensuring all necessary checks are performed before submission.

Core Features & Use Cases

  • Automated PR Body Generation: Analyzes commits, diffs, and associated issue details to create a comprehensive PR description.
  • Intelligent Branching: Supports standard issue-based branch naming conventions and allows specifying a base branch.
  • Pre-flight Checks: Verifies GitHub CLI authentication, checks for uncommitted changes, and ensures you're not on the base branch.
  • Use Case: After completing a feature, run /pr to automatically generate a PR with a detailed summary, changes list, and test plan, linking it to the relevant issue.

Quick Start

Run /pr to create a pull request for your current changes.

Frequently Asked Questions about pr

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

FAQPage Schema
How do I automatically generate a GitHub pull request from my code changes?

To automatically generate a GitHub pull request, you can run the /pr command to analyze your code changes and create a comprehensive PR body with a summary, changes list, and test plan.

How do I create a draft pull request linked to a specific issue on GitHub?

You can create a draft pull request linked to a specific issue by running the /pr command, which supports issue linking, draft PR creation, and standard issue-based branch naming conventions.

Does the automated PR generation tool validate GitHub CLI authentication and branch status?

Yes, the automated PR generation tool performs pre-flight checks to validate your GitHub CLI authentication, detect uncommitted changes, and ensure you are not currently on the base branch before creating the PR.

Can I specify a custom base branch when creating a pull request?

Yes, you can specify a custom base branch when creating a pull request, allowing you to target your generated PR body and code changes against a specific branch instead of the default.

What is included in an automatically generated pull request body?

An automatically generated pull request body includes a detailed summary of your code changes, a list of modifications derived from commits and diffs, associated issue details, and a test plan.

Why does my pull request creation fail when I have uncommitted code changes?

Pull request creation fails because the pre-flight checks detect uncommitted code changes, ensuring your working directory is clean and your branch status is valid before generating the PR.