github-pr-workflow

Automate GitHub pull request lifecycle from branch creation through CI monitoring and merging.

Updated May 4, 2026
One-click install
npx skills add https://github.com/JamesFincher/gengar --skill github-pr-workflow-jamesfincher
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-pr-workflow
Source: https://github.com/JamesFincher/gengar/tree/main/skills/github/github-pr-workflow
Command: npx skills add https://github.com/JamesFincher/gengar --skill github-pr-workflow-jamesfincher

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you reliably manage the full GitHub Pull Request lifecycle—creating branches, committing and opening PRs, monitoring CI, fixing failures, and merging—without getting stuck on platform-specific steps.

Core Features & Use Cases

  • Branch, commit, and push using consistent Git practices and conventional commit messages.
  • Create and monitor PRs using gh when available, with a git + curl fallback using the GitHub API.
  • Diagnose and auto-fix CI failures by pulling failed workflow logs, inspecting the error, applying code changes, and re-checking until green.
  • Merge PRs via gh or the REST API, with support for squash and optional auto-merge enablement.

Quick Start

Ask the agent to manage your PR end-to-end by running the GitHub PR workflow in the current repository: create a branch, push it, open a PR, watch CI, fix any failing checks, and merge it.

Frequently Asked Questions about github-pr-workflow

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

FAQPage Schema
How do I automate GitHub pull request workflows from branch creation to merge?

Automating a GitHub pull request workflow involves creating branches, committing with conventional commit messages, opening PRs via `gh`, monitoring CI checks, and merging once green. This Skill orchestrates that entire lifecycle end-to-end.

What is the best way to fix failing CI checks on a GitHub pull request?

Fixing failing CI checks requires pulling failed workflow logs, inspecting the error, applying code changes, and re-pushing until checks pass. This Skill automates log-driven remediation by fetching workflow run logs and applying fixes iteratively.

How do I create and monitor GitHub PRs without the `gh` CLI installed?

Creating and monitoring GitHub PRs without `gh` uses a `git` and `curl` fallback that calls the GitHub REST API directly. This requires authenticated token-based access to manage pull requests, checks, and merges.

Can I enable squash merges automatically when a GitHub pull request passes CI?

Squash merges can be enabled automatically when CI passes by using `gh` or the GitHub REST API. This Skill supports squash merge strategies and optional auto-merge enablement for passing pull requests.

Why do I need conventional commit messages for GitHub pull requests?

Conventional commit messages provide consistent Git practices across feature and fix branches, ensuring clear history during automated PR workflows. This Skill applies them automatically when committing and pushing changes.

Does this GitHub PR workflow support auto-fixing CI failures in any Git repository?

This workflow supports auto-fixing CI failures in Git repositories with GitHub remotes, requiring authenticated GitHub access. It pulls failed workflow logs, applies code changes, and re-checks until CI is green.