git-create-pr

Commit changes, push to origin, and create a GitHub Pull Request.

1|Updated Jun 4, 2025
One-click install
npx skills add https://github.com/a-tak/bf-copy --skill git-create-pr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-create-pr
Source: https://github.com/a-tak/bf-copy/tree/main/.claude/skills/git-create-pr
Command: npx skills add https://github.com/a-tak/bf-copy --skill git-create-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Manually creating Git commits, pushing changes, and then opening a Pull Request is a multi-step, repetitive process that consumes valuable time and context. This skill streamlines that entire workflow into a single, automated command, letting AI handle the mechanics while you focus on development.

Core Features & Use Cases

  • One-Command PR Creation: Automatically stages, commits, pushes, and creates a GitHub Pull Request.
  • Context Preservation: Offloads routine Git operations, saving your main AI agent's context window for more complex tasks.
  • Use Case: After completing a new feature or addressing review feedback, simply invoke this skill to handle all the Git mechanics and open a PR, ensuring your work is shared efficiently.

Quick Start

Use the git-create-pr skill to commit all changes and create a pull request for the new user authentication feature.

Frequently Asked Questions about git-create-pr

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

FAQPage Schema
How do I automate creating a Git pull request after committing changes?

Automating Git pull request creation stages your changes, commits them, pushes to your remote repository, and opens a PR on GitHub—all in one step. This skill handles the entire workflow, eliminating manual git add, commit, push, and gh pr create commands.

Can I use GitHub CLI to streamline my pull request workflow?

Yes. GitHub CLI (gh) enables automated PR creation once your commits are pushed to a remote branch. This skill leverages gh pr create to open PRs programmatically, reducing context overhead for repetitive Git operations.

What happens if a pull request already exists for my branch?

The skill detects existing PRs and handles the error gracefully rather than creating duplicates. It also manages authentication issues, push failures, and merge conflicts—reporting errors so you can resolve them before retrying.

How does automating commits and pushes save context when working with an AI agent?

Offloading routine Git mechanics—staging, committing, and pushing—preserves your AI agent's context window for complex development tasks. The skill batches multiple commits into a single PR, minimizing overhead and letting the agent focus on higher-level work.

Do I need to manually stage files before using the pull request automation?

No. The skill inspects git status and diff output automatically, stages changed files, commits them with your message, and pushes to origin. You invoke it once; it handles all staging and commit steps end to end.

What's the best way to batch multiple changes into one pull request?

This skill consolidates multiple commits into a single PR by inspecting your commit history and pushing all staged changes at once. It's ideal for review feedback, documentation updates, or feature development where grouping related work minimizes PR overhead.