github-pr-workflow

Automate GitHub pull requests from branch creation to merge using gh CLI or REST API.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Automate the full GitHub pull request lifecycle, from branch creation and commits to opening PRs, monitoring CI status, auto-fixing failures, and merging, reducing manual overhead and human error.

Core Features & Use Cases

  • Branch management: automatically create and switch to feature branches as changes are prepared.
  • PR orchestration: open PRs, assign reviewers, and monitor checks using the gh CLI or GitHub REST API via curl.
  • CI monitoring & auto-fix: detect failing checks, surface issues, and guide automatic fixes or re-runs to green status.
  • Merging & cleanup: merge PRs (squash, merge, or rebase) and clean up branches after merge.
  • Use Case: Keeps teams aligned on feature delivery with end-to-end PR automation and traceable history.

Quick Start

Create a new feature branch, commit changes with a conventional message, push, and open a PR using gh or the REST API.

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 the GitHub pull request lifecycle from branch creation to merge?

You can automate the GitHub pull request lifecycle by using gh CLI or GitHub REST API via curl to orchestrate branch creation, commits, PRs, CI checks, and merges. This provides end-to-end automation with deterministic task orchestration and safe fallbacks.

What is the best way to monitor CI checks and auto-fix failures on GitHub pull requests?

The best way to monitor CI checks is to use automation that detects failing checks, surfaces issues, and guides automatic fixes or re-runs to reach green status. This ensures PRs maintain traceable history and reduce manual overhead.

Can I use gh CLI to manage branch commits and PR merges automatically?

Yes, you can use gh CLI to manage branch commits and PR merges automatically. The automation supports branching, committing changes with conventional messages, pushing, opening PRs, and merging via squash, merge, or rebase strategies.

Does GitHub PR workflow automation support branch cleanup after merging?

Yes, GitHub PR workflow automation supports branch cleanup after merging. It automatically merges PRs using squash, merge, or rebase methods and cleans up feature branches once the merge is complete to keep the repository organized.

Do I need GitHub REST API or gh CLI to automate pull request orchestration?

You need either the GitHub REST API via curl or the gh CLI to automate pull request orchestration. Both methods allow you to open PRs, assign reviewers, and monitor checks to apply end-to-end automation with deterministic task orchestration.

When should I not use end-to-end GitHub PR automation for CI monitoring?

You should not use end-to-end GitHub PR automation when your repository requires manual intervention for CI failures or custom review processes. The skill relies on deterministic task orchestration and safe fallbacks, which may not cover highly customized CI pipelines.