git-pr-helper

Automate PR creation and branch management via GitHub CLI.

30|10|Updated Oct 26, 2025
One-click install
npx skills add https://github.com/centminmod/claude-code-devcontainers --skill git-pr-helper
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-pr-helper
Source: https://github.com/centminmod/claude-code-devcontainers/tree/main/.claude/skills/git-pr-helper
Command: npx skills add https://github.com/centminmod/claude-code-devcontainers --skill git-pr-helper

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires github-cli.

What problem does it solve?

This Skill automates and guides complex Git workflows for pull requests, merges, and branch management, reducing manual errors and ensuring code quality. It saves developers significant time by handling repetitive Git commands and providing clear, step-by-step instructions.

Core Features & Use Cases

  • Intelligent PR Creation: Generate comprehensive pull request descriptions automatically from commit history and code changes.
  • Safe Merge Coordination: Guide through merging branches with proactive conflict detection and strategic merge options (squash, rebase).
  • Branch Cleanup: Identify and safely remove old, merged, or session-specific branches, keeping your repository tidy.
  • Use Case: After completing a feature, use this Skill to automatically generate a detailed PR description, check for merge conflicts, and then safely merge your branch into main, all while adhering to best practices.

Quick Start

Use the git-pr-helper skill to create a pull request for the current feature branch, generating the description automatically.

Frequently Asked Questions about git-pr-helper

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

FAQPage Schema
How do I automate pull request creation from my feature branch?

Automate PR creation by generating a comprehensive description from your commit history and code changes, then pushing and creating the PR through GitHub CLI. This Skill handles the entire workflow—from detecting your base branch to creating the PR—eliminating manual steps and ensuring consistency.

How can I prevent merge conflicts before merging branches?

Detect merge conflicts proactively before merging by analyzing your branch against the target. This Skill checks for conflicts strategically and guides you through merge options like squash or rebase, helping you resolve issues safely without data loss.

What's the best way to clean up old branches after merging?

Safely identify and remove merged, old, or session-specific branches while keeping your repository organized. This Skill automates branch cleanup by verifying which branches are safe to delete, preventing accidental removal of active work.

Can I generate detailed PR descriptions automatically from my commits?

Yes. This Skill generates standardized PR descriptions automatically by listing commits and diffs from your feature branch. It creates comprehensive, descriptive content that communicates your changes clearly without manual writing.

Does this work with GitHub CLI for creating pull requests?

Yes. This Skill integrates with GitHub CLI to create pull requests directly from your branch. It handles authentication, branch verification, and PR creation through GitHub CLI, streamlining your entire workflow end-to-end.

What happens if my working tree has uncommitted changes?

This Skill ensures a clean working tree before proceeding with PR creation or merging. It verifies your repository state upfront, preventing errors and data loss by requiring all changes to be committed before automating Git operations.