create-pr

Create or update GitHub pull requests for branches and stacked branch workflows.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/sndrgrdn/skills --skill create-pr-sndrgrdn
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: create-pr
Source: https://github.com/sndrgrdn/skills/tree/main/create-pr
Command: npx skills add https://github.com/sndrgrdn/skills --skill create-pr-sndrgrdn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Opening a pull request involves more than running one command: you need clear intent, a validated diff, a well-written body, and safety checks for public repositories. This Skill automates that entire workflow so PRs are published with accurate descriptions and no accidental leaks. ## Core Features & Use Cases - Intent-driven PR creation: Confirms the problem and reason behind a change before writing the PR's Why and How sections. - Normal and stacked PRs: Detects stacked branches via the gh-stack extension and publishes ordered, linked PRs layer by layer. - Public repository safety gates: Sanitizes branch names, commit messages, titles, and bodies, then requires explicit confirmation before publishing to a public repo. - Use Case: After finishing a feature branch, ask to open a PR; the Skill validates the diff against your intent, writes a structured body, pushes the branch, and returns the PR URL. ## Quick Start Ask the assistant to create a pull request for the current branch using the create-pr skill.

Frequently Asked Questions about create-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 gh pr create with an explicit base, title, and body file after pushing your branch with git push -u origin. This Skill automates the full flow: validating the diff, writing the body to a temp file, and returning the PR URL.

How to create stacked pull requests with GitHub CLI?▼

Install the official github/gh-stack extension, then use gh stack view, push, and link to publish ordered PRs where each layer targets the branch below it. The Skill handles per-layer titles, bodies, and linking bottom-to-top.

Does this work with public GitHub repositories?▼

Yes, but it applies extra safety gates for public repos. Branch names, commit messages, titles, and bodies are sanitized of internal or customer data, and you must explicitly confirm the exact content before anything is published.

What tools are required to run this PR creation workflow?▼

You need Bash, Git, the GitHub CLI (gh), jq, and an authenticated GitHub session. Stacked PR support additionally requires the github/gh-stack extension, which is installed only with your approval.

Why does the workflow stop before creating my pull request?▼

It stops when intent is missing, the diff contains unrelated changes, repository visibility is unknown, or a public-repo confirmation is pending. Each stop is a safety gate that resumes once you answer the question or confirm the content.