Git Push PR
SkillDev toolsPush a verified branch and create or update exactly one GitHub pull request. Use when the user asks to 推送远程/建 PR/更新 PR and grants push authority. Read-only without explicit authority; never approves, merges, or closes issues.
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the Git Push PR skill
What this skill tells your AI
The instructions your AI receives, as published by dimon94/skills in skills/git-push-pr/SKILL.md and read by ahel’s review.
Push the current branch and bind it to exactly one GitHub PR. Push and PR mutation require explicit authority for this branch; without it, run the checks below read-only and report what would happen.
1. Prove the branch
- Worktree is clean. Dirty → commit per
git-commitfirst, or stop. - Fetch the target (
git fetch origin <target>), then prove the branch is ahead oforigin/<target>and not behind it (behind → route togit-rebase-mainor rebase onto the fetched target first). - The smallest verification for the diff has run. Unverified work does not get pushed.
2. Check existing PRs
gh pr list --head <branch> --json number,state,headRefName.
- Zero → create in step 3.
- Exactly one → update it (title/body refresh if the branch's story changed).
- More than one open for the same branch → stop, report the duplicate. Never batch-create.
3. Push and bind
git push -u origin <branch>. Non-fast-forward rejection → stop and report; never force-push without explicit rewrite authority.- Create (
gh pr create) or update (gh pr edit) the one PR. Body states problem, change, verification; link issues withCloses #nonly for issues this PR directly resolves. - Read back
gh pr view --json url,headRefOid,stateand confirm the PR head matches the local commit just pushed.
4. Report
PR URL, branch, pushed head SHA, and that approval/merge was left untouched.
Boundaries
- No
gh pr merge, no approval, no issue close — those belong togh-merge-pr. - Remote-write authority covers this branch and this one PR only.
Signals
- GitHub stars
- 108
- Forks
- 21
- Last commit
- Sep 2026
Advanced
- Item type
- skill
- Key
git-push-pr- Source
- github.com/dimon94/skills
Related picks
Skill · tddworks
The pick for GitHub Actionsgithub-actions-docs
Skill · devantler-tech
The pick for GitHub Actionsteach
Skill · mattpocock
More in Dev toolsimplement
Skill · mattpocock
More in Dev toolsponytail
Skill · dietrichgebert
More in Dev toolscaveman
Skill · juliusbrussee
More in Dev tools