Agent skill · software engineering · yonatangross
create-pr
Opens a GitHub PR after pre-flight checks (tests, lint, types, security) with a conventional title and summary. Use only when asked for this skill; an everyday gh pr create stays plain tooling.
Why this skill is useful
Adds an executable script for creating GitHub pull requests with validation and structured summaries, which the AI cannot generate from existing knowledge.
What it needs
Requires gh installed locally. Requires github account access. About 10k tokens when loaded. Last updated 2026-08-06. 215 stars on the source repository.
What this skill does
Create Pull Request Comprehensive PR creation with validation. All output goes directly to GitHub PR. Quick Start CC ≥ 2.1.119 multi-host note (M122): PR creation works against GitHub, GitLab, Bitbucket, and GitHub Enterprise. Detect the target host from the configured remote (git remote -v) and branch on the host family for the right CLI: Host family CLI --- --- github / github-enterprise gh pr create (with GHHOST=<host> for GHE) gitlab / gitlab-self glab mr create bitbucket bb pr create Custom enterprise URLs: prUrlTemplate setting (see src/skills/configure/ and src/skills/chain-patterns/references/pr-from-platform.md). Argument Resolution Base Branch Resolution Derive the base branch from the remote. Never hardcode dev or main; repos differ. Every $BASE below refers to this value. Stacked on another open PR When the work depends on an open PR ("a PR that depends on PR #50"), that PR's head branch is the base, not $BASE: Phase 1's guard still applies: never open from main or dev, never with a dirty tree. Record git rev-parse "origin/$PARENTBRANCH" in the body; after the parent is squash-merged that sha is the upstream argument that git rebase --onto "origin/$BASE" <that-sha> <branch> needs, and the branch itself is gone. Squash recovery, depth cap, draft trap: Read("references/stacked-pr.md"). --- STEP 0: Verify User Intent BEFORE creating tasks, clarify PR type: Based on answer, adjust workflow: Feature: Full Phase 2 with 3 parallel agents + local tests Bug fix: Phase 2 with test-generator only + local tests Refactor: Phase 2 with code-quality-reviewer only + local tests Quick: Skip Phase 2, jump to Phase 3 Optional pre-flight: claude ultrareview (CC 2.1.120+, #1542) If claude ultrareview --help succeeds, optionally run it before opening the PR and surface findings in the PR body's ## Pre-flight section. The CLI subcommand returns structured --json output that can be filtered to high/medium severity for the body and full results posted as a follow-up comment. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills yonatangross/create-pr