pr

Create pull requests from branch context using GitHub CLI.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/salimhamed/dotfiles --skill pr-salimhamed
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr
Source: https://github.com/salimhamed/dotfiles/tree/main/.claude/skills/pr
Command: npx skills add https://github.com/salimhamed/dotfiles --skill pr-salimhamed

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, gh, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates pull request creation by deriving a PR title and body from your current branch context, eliminating manual PR drafting.

Core Features & Use Cases

  • Context-aware PR creation: Generate a PR title and body from the current branch, ensuring you describe changes clearly.
  • Pre-checks & safety: Verifies you are not on the base branch, checks for existing PRs, and ensures there are commits to push.
  • GitHub integration: Uses the GitHub CLI (gh) to create the PR and push branches when needed.

Quick Start

Run python scripts/gather_context.py to collect context, then run python scripts/create_pr.py --title "<title>" --body "<body>"

Frequently Asked Questions about pr

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

FAQPage Schema
How do I create a pull request from my current Git branch automatically?

The PR creation process verifies you are not on the base branch, checks for existing PRs, and ensures there are commits to push before generating the PR title and body from your branch context.

Does automated PR creation work with the GitHub CLI?

Yes, automated PR creation works with the GitHub CLI by using the gh pr create command to submit the pull request and automatically pushing the branch when necessary.

What do I need to generate a PR title and body from branch context?

To generate a PR title and body from branch context you need Git and the GitHub CLI installed, along with Python to run the gather_context.py and create_pr.py scripts that collect context and perform preconditions.

What happens if I try to create a PR while on the base branch?

If you try to create a PR while on the base branch, the pre-check safety logic stops the process, as the Skill verifies you are not on the base branch before gathering context and submitting the pull request.

How do I push my branch and create a PR at the same time?

You can push your branch and create a PR at the same time because the Skill includes automatic branch pushing logic that executes during the gh pr create invocation when unpushed commits are detected.