github-cli-pr-workflow

Create, update, and monitor GitHub PRs anchored to the current head SHA.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Orchestrates the GitHub PR lifecycle using the GitHub CLI to create, update, and monitor PRs anchored to the current head SHA, delivering consistent handoffs.

Core Features & Use Cases

  • Create or update a PR with gh pr create / gh pr edit, anchored to the current branch head.
  • Watch checks for the PR using gh pr checks and report status tied to the exact head SHA.
  • Route tasks to the appropriate next skill based on outcomes, including failure triage or handoff when checks complete.

Quick Start

Create a PR from this branch and watch its latest checks using gh pr checks.

Frequently Asked Questions about github-cli-pr-workflow

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

FAQPage Schema
How do I automate a GitHub pull request workflow from the command line?

Automate a GitHub pull request workflow by using the GitHub CLI to create PRs from a feature branch, update metadata, and monitor checks tied to the exact head SHA. This ensures consistent handoffs and routing based on check outcomes.

How do I watch GitHub PR checks for a specific commit SHA?

Watch GitHub PR checks for a specific commit SHA by running the gh pr checks command and filtering the output to match the current branch head. This anchors the status report to the exact push rather than a previous commit.

Can I update a pull request title and body using the GitHub CLI?

Update a pull request title and body using the GitHub CLI with the gh pr edit command. This allows you to modify PR metadata directly from your terminal after verifying the remote push.

What is the best way to manage branch updates and PR status in an automated workflow?

Manage branch updates and PR status by capturing the current head SHA, verifying the remote push succeeded, and then watching gh pr checks for that specific SHA. This routes tasks to failure triage or handoff based on stable check results.

Do I need to install the GitHub CLI to create and monitor pull requests?

Yes, you need the GitHub CLI installed and authenticated to create, update, and monitor pull requests. This Skill orchestrates the PR lifecycle by executing gh pr commands anchored to your current branch head.

Why should I anchor GitHub PR checks to the current head SHA?

Anchor GitHub PR checks to the current head SHA to ensure you are monitoring the exact commit you pushed, avoiding stale status reports from earlier commits. This determines accurate next routing steps for failure triage or handoff.