Make PR

Create GitHub pull requests from the current branch using the gh CLI.

1|1|Updated Jun 13, 2026
One-click install
npx skills add https://github.com/PostHog/community-skills --skill make-pr-posthog
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: Make PR
Source: https://github.com/PostHog/community-skills/tree/main/skills/make-pr
Command: npx skills add https://github.com/PostHog/community-skills --skill make-pr-posthog

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Opening a pull request manually means writing a title and body, following the repo's PR template, assigning reviewers, and remembering to push the branch first. This Skill automates that entire flow with the GitHub CLI so PRs are consistent and complete. ## Core Features & Use Cases - Template-Aware PR Bodies: Detects .github/PULL_REQUEST_TEMPLATE.md and structures the PR body to match the repo's conventions. - Automated Metadata: Generates a concise title under 70 characters, assigns the current GitHub user via gh api user, and pushes the branch if needed. - Use Case: After finishing a feature branch, ask the agent to open a PR. It reviews git log and git diff, writes the description, assigns you, and returns the PR URL. ## Quick Start Create a pull request for my current branch following the repo's PR template and assign it to me.

Frequently Asked Questions about Make PR

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

FAQPage Schema
How do I create a GitHub pull request from the command line?▼

Use the GitHub CLI with `gh pr create`, passing a title, body, and assignee. This Skill automates that flow by summarizing git log and diff output, following the repo's PR template, and assigning the current user.

How to auto-fill a PR body from a pull request template?▼

The Skill checks for `.github/PULL_REQUEST_TEMPLATE.md` or `.github/pull_request_template.md` and structures the PR body to match that template. The body is passed to `gh pr create` using a HEREDOC to preserve formatting.

Does gh pr create require the branch to be pushed first?▼

Yes, the branch must exist on the remote before a PR can be opened. This Skill handles that by running `git push -u origin HEAD` automatically if the branch has not been pushed yet.

What are the requirements for using the gh CLI to open PRs?▼

You need git installed and the GitHub CLI (gh) authenticated to the target repository. The Skill discovers your username with `gh api user --jq '.login'` to set the PR assignee.

Why should PR descriptions avoid PII and sensitive data?▼

Pull requests on public repositories are visible to anyone, so including personal data or secrets creates a permanent exposure. This Skill enforces a no-PII rule when generating PR titles and bodies.