github-pull-request

Automate GitHub pull request creation and review using the gh CLI.

30|5|Updated Aug 9, 2012
One-click install
npx skills add https://github.com/juanibiapina/dotfiles --skill github-pull-request-juanibiapina
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-pull-request
Source: https://github.com/juanibiapina/dotfiles/tree/main/dotfiles/agents/.agents/skills/github-pull-request
Command: npx skills add https://github.com/juanibiapina/dotfiles --skill github-pull-request-juanibiapina

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates GitHub pull request workflows using gh CLI to create, review, and manage PRs, reducing manual steps and ensuring consistency with repository templates.

Core Features & Use Cases

  • PR creation automation: create PRs, update PR status, and select base/destination branches from the local state.
  • Diff analysis and review prep: summarize commits, compare diffs, and generate PR notes for reviewers.
  • Use Case: When asked to submit changes for review, generate a dedicated branch, commit changes, and open a PR using gh.

Quick Start

Ask me to create a pull request and I will generate a branch, evaluate changes, and open the PR using gh, following any repository PR template.

Frequently Asked Questions about github-pull-request

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

FAQPage Schema
How do I automate GitHub pull request creation with gh CLI?

Automating GitHub pull request creation with gh CLI involves generating a dedicated branch, committing local changes, and opening a PR while following existing repository templates. This skill handles branch state checks and evaluates diffs to ensure consistent PR submissions.

Can I generate PR review notes from git diffs automatically?

Yes, you can generate PR review notes from git diffs automatically by comparing commits and summarizing changes. This skill analyzes diffs to prepare summaries and generate PR notes for reviewers across feature work, bug fixes, or documentation updates.

Do I need gh CLI installed to manage pull requests this way?

Yes, you need gh CLI installed and access to the target repository to manage pull requests this way. The skill relies on the gh CLI tool to execute commands for creating, reviewing, and managing PR workflows directly from your local state.

What's the best way to ensure automated PRs follow repository templates?

The best way to ensure automated PRs follow repository templates is to use a workflow that detects and applies them during creation. This skill automatically follows existing PR templates when present, reducing manual steps and ensuring consistency with repository standards.

How does branch management work when submitting code for review via gh?

Branch management when submitting code for review via gh involves evaluating local changes and selecting base or destination branches. The skill handles branch state checks to generate a dedicated branch, commit changes, and open the PR accurately.