pr-agent

Create GitHub pull requests from the current branch using the GitHub CLI.

2|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/shawn-sandy/agentics --skill pr-agent-shawn-sandy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-agent
Source: https://github.com/shawn-sandy/agentics/tree/main/plugins/git-agent/skills/pr-agent
Command: npx skills add https://github.com/shawn-sandy/agentics --skill pr-agent-shawn-sandy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of GitHub pull requests, streamlining the code review and merging process.

Core Features & Use Cases

  • Automated PR Creation: Generates pull requests based on your current branch and commit history.
  • Pre-flight Checks: Includes essential checks to ensure PRs are created correctly (e.g., not from the default branch, detached HEAD state).
  • Use Case: After finishing a new feature on a separate branch, use this skill to quickly open a pull request for review without manually typing git push and gh pr create commands.

Quick Start

Use the pr-agent skill to create a pull request for your current branch.

Frequently Asked Questions about pr-agent

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

FAQPage Schema
How do I automate GitHub pull request creation from the command line?

Automate GitHub pull request creation by using a skill that pushes your current branch and runs the GitHub CLI to open a PR. It handles branch protection rules and detects existing pull requests to prevent duplicates.

Do I need the GitHub CLI installed to automatically create pull requests?

Yes, you need the GitHub CLI and Git installed to automate pull request creation. The skill utilizes these dependencies to push branches and execute the necessary commands for opening a pull request.

Will automated PR creation work if my current branch has protection rules?

Automated PR creation handles branch protection rules during the process. It performs pre-flight checks to ensure pull requests are not incorrectly created from the default branch or a detached HEAD state.

Can I open a GitHub pull request without manually typing git push and gh pr create commands?

Yes, you can open a GitHub pull request without manually typing git push and gh pr create commands. The skill automates this entire workflow by generating the pull request based on your current branch and commit history.

What happens if I try to create a pull request from a detached HEAD state?

Creating a pull request from a detached HEAD state is blocked by pre-flight checks. The skill ensures you are on a valid separate branch before pushing and opening a pull request to avoid errors.