create-github-pr

Create GitHub pull requests from a body file with validation and retry.

2|1|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/brandonavant/harness-engineering-guide --skill create-github-pr-brandonavant
Or copy as Structured Prompt for Agentβ–Ό
Please help me install this Agent Skill.
Skill: create-github-pr
Source: https://github.com/brandonavant/harness-engineering-guide/tree/main/.claude/skills/create-github-pr
Command: npx skills add https://github.com/brandonavant/harness-engineering-guide --skill create-github-pr-brandonavant

SYSTEM DOCUMENTATION & REQUIREMENTS

πŸ’‘ This Skill includes scripts (resource) components.

What problem does it solve?

Automates GitHub pull requests with a deterministic body workflow: write the PR body to a file first, create the PR from that file, and validate the live PR against the source of truth.

Core Features & Use Cases

  • Deterministic PR body handling to avoid quoting and subshell issues.
  • End-to-end PR creation workflow with built-in retry and post-creation validation.
  • Use cases include standard PR automation, content validation, and recovery from transient failures.

Quick Start

Write the PR body to a temp file, create the PR with the body-file flag, and run the validation script to ensure the PR matches the intended content.

Frequently Asked Questions about create-github-pr

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

FAQPage Schema
How do I automate GitHub pull requests without shell quoting issues?β–Ό

Automating GitHub pull requests deterministically requires writing the PR body to a local file first, then creating the PR using the body-file flag to avoid shell quoting and subshell issues.

What's the best way to validate a GitHub PR body after automated creation?β–Ό

Validating a GitHub PR body post-creation involves comparing the live PR content against the source-of-truth local file, using a retry and repair workflow to handle transient failures.

How does a deterministic PR creation workflow handle transient failures?β–Ό

A deterministic PR creation workflow handles transient failures by executing a post-creation validation script that retries and repairs the live PR to match the original source file.

Can I use gh pr create with a body file for automated release workflows?β–Ό

Yes, you can use the gh pr create command with a body-file flag for automated release workflows, ensuring the PR content matches the intended source-of-truth file exactly.

Why does my automated pull request body contain formatting errors?β–Ό

Automated pull request body formatting errors often occur when passing content directly through subshells; writing the body to a file and using the body-file flag resolves this.

Do I need the GitHub CLI to automate pull requests deterministically?β–Ό

Yes, deterministic pull request automation uses the GitHub CLI to create the PR from a local body file and validate the live PR against the source-of-truth content.