What problem does it solve?
Creating a GitHub pull request usually requires manual steps: ensuring the branch is pushed, choosing the correct base branch, writing a clear title/body, and remembering the required review flow.
Core Features & Use Cases
- Automated repo & base detection: Resolves both the user fork (origin) and the parent repository (upstream) to infer the correct base branch when not explicitly provided.
- Safe push-before-PR workflow: Detects whether your branch has an upstream tracking branch and pushes commits as needed before attempting PR creation.
- Drafted PR content with review gate: Generates a proposed PR title and body from your commit history and diff summary, then requires an explicit approval/cancel checkpoint before calling gh pr create.
- Guardrails against invalid targets: Refuses to create PRs from main or master and supports an explicit base branch argument with validation.
Quick Start
Tell your AI to create a PR from the current branch by running: /pr.