git-push-pr

Push a feature branch and create or update pull requests via git and gh commands.

Updated Sep 9, 2017
One-click install
npx skills add https://github.com/mirakui/dotfiles --skill git-push-pr-mirakui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-push-pr
Source: https://github.com/mirakui/dotfiles/tree/main/claude/skills/git-push-pr
Command: npx skills add https://github.com/mirakui/dotfiles --skill git-push-pr-mirakui

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the process of pushing a feature branch and managing associated pull requests by delegating git/gh operations to a Bash subagent, keeping the main context focused on outcomes.

Core Features & Use Cases

  • Pushes the current branch to origin with tracking
  • Checks for existing PRs and updates or creates them based on diffs and commits
  • Handles safety checks such as avoiding PR creation from default branches and reporting upstream status

Quick Start

Use the git-push-pr skill to push your feature branch and create or update a PR against the default base branch.

Frequently Asked Questions about git-push-pr

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

FAQPage Schema
How do I automatically push a Git branch and create a pull request?

To automate pushing a Git branch and creating a pull request, you can use a workflow that pushes your feature branch to origin, detects upstream state, and executes gh commands to generate a concise PR summary against the default base branch.

Can I update an existing GitHub pull request automatically after pushing new commits?

Yes, you can update an existing GitHub pull request automatically by using a workflow that checks for existing PRs based on your current branch diffs and commits, then updates the PR summary rather than creating a duplicate.

How do I generate a PR summary from Git commit diffs?

You can generate a PR summary from Git commit diffs by delegating git and gh command execution to a Bash subagent, which analyzes the branch differences and creates a concise text summary for the pull request.

Does this Git pull request automation prevent creating PRs from the main branch?

Yes, this Git pull request automation includes safety checks that explicitly prevent creating PRs from default branches and reports the upstream tracking status to ensure you only create PRs from feature branches.

What is the best way to manage GitHub pull requests from a local repository?

The best way to manage GitHub pull requests from a local repository is using an automated workflow that handles pushing the current branch with tracking, detects upstream state, and manages PR creation or updates via gh commands.

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

Yes, you need the GitHub CLI installed because the automation workflow relies on executing gh commands within a Bash subagent to check for existing PRs and create or update them against the default base branch.