git-push-pr

Automate Git staging, committing, pushing, and pull request management with GitHub CLI.

1|Updated Jan 17, 2026
One-click install
npx skills add https://github.com/iancleary/dotfiles --skill git-push-pr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-push-pr
Source: https://github.com/iancleary/dotfiles/tree/main/.claude/skills/git-push-pr
Command: npx skills add https://github.com/iancleary/dotfiles --skill git-push-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the entire Git workflow, from staging changes to creating or updating a pull request, saving developers significant time and reducing manual errors.

Core Features & Use Cases

  • Automated Git Operations: Stages files, commits with a generated or provided message, pushes to origin, and handles pull request creation/updates.
  • Intelligent PR Management: Automatically detects existing PRs and updates them, or creates new ones with appropriate titles and descriptions.
  • Use Case: After making several code changes, you can use this Skill to quickly commit them with a descriptive message and open a pull request for review without manually typing multiple Git commands.

Quick Start

Use the git-push-pr skill to commit all staged changes with the message "feat: implement user authentication" and create a pull request.

Frequently Asked Questions about git-push-pr

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

FAQPage Schema
How do I automate git commit, push, and pull request creation?

You can automate the git workflow by staging files, committing with a generated message, pushing to origin, and creating pull requests using GitHub CLI. This handles the entire process from code changes to review preparation.

What's the best way to update an existing pull request on my current branch?

Updating an existing pull request is handled automatically by detecting active PRs for your current branch. The workflow intelligently manages existing pull requests via GitHub CLI, preventing duplicates and adding new commits.

Do I need GitHub CLI installed to automate pull request creation from the command line?

Yes, GitHub CLI is required to automate pull request creation and updates. You also need Bash and Git installed to execute the complete workflow from staging changes to pushing and opening PRs.

Can I provide a custom commit message when automating a git push and PR workflow?

Yes, you can provide a specific commit message like "feat: implement user authentication" when initiating the workflow. The automation handles various commit message scenarios, including generating one if not provided.

How does automated PR management handle branch tracking and code review preparation?

Automated PR management detects existing pull requests for the current branch and updates them, or creates new ones with appropriate titles and descriptions. This streamlines code review by preparing the PR automatically after pushing.