Git Push PR

Push 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.

107 stars 21 forksGit & Code Review

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add Dimon94/skills --skill git-push-pr
Manual install
git clone --depth 1 https://github.com/Dimon94/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/skills/git-push-pr ~/.claude/skills/git-push-pr

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Git Push PR

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-commit` first, or stop.
- Fetch 目标分支(`git fetch origin <target>`),确认源分支领先且不落后于
  `origin/<target>`。落后时直接 rebase 到 `origin/<target>`;冲突调用
  `resolving-merge-conflicts`。保留源分支供推送;`git-rebase-main` 会合入并回收源分支,
  仅更新待发 PR 的分支时不调用它。
- 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

1. `git push -u origin <branch>`. Non-fast-forward rejection → stop and
   report; never force-push without explicit rewrite authority.
2. 创建(`gh pr create`)或更新(`gh pr edit`)唯一 PR。起草或刷新正文前,
   读取 `mattpocock-skills:pr`(运行时入口:`~/.agents/skills/pr/SKILL.md`),
   按其模板写正文。`Closes #n` 仅关联本 PR 直接解决的 issue。
3. Read back `gh pr view --json url,headRefOid,state` and 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
Read the full skill on GitHub

Details

Skill name
git-push-pr
Repository
Dimon94/skills
Path
skills/git-push-pr/SKILL.md
Repo updated
18 November 2026

FAQ

What does the Git Push PR skill do?

Push 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.

How do I install the Git Push PR skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add Dimon94/skills --skill git-push-pr. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Git Push PR popular?

It lives in Dimon94/skills, which has 107 GitHub stars and 21 forks.

Related skills

Maintain Verification Skill

107

Dimon94/skills

Periodic pass that keeps a project's verification skill and feature map honest: parallel source readers per feature, one live session driving every feature, at most one PR of proven corrections. Use for /maintain-verification-skill or "audit the verify skill".

Git & Code ReviewIn 2 lists21

Create Verification Skill

107

Dimon94/skills

Generate a project-local verification skill that drives your app the way a user does — any language, framework, or platform. Use for /create-verification-skill, "make a control skill for this repo", or when a project has no scripted way to prove UI/CLI/service behavior.

Software DevelopmentIn 2 lists21

How

107

Dimon94/skills

Use for "how does X work", code walkthroughs before changing something, and placement / ownership / layering questions ("where should this live", "which package owns this", "is this the right layer"). Explains subsystem architecture, runtime flow, onboarding mental models. Use why for motivation.

Software DevelopmentIn 2 lists21

Git Rebase Main

107

Dimon94/skills

将已完成的任务分支合回本地 main,并关闭对应 Issue、删除任务分支、回收临时工作树。用于本地 rebase、合回主分支与收尾;不推送目标分支。仅更新待发 PR 的分支时直接 rebase。

Git & Code Review21

Git Commit

107

Dimon94/skills

Create narrow auditable local commits. Use when verified work must be staged and committed without absorbing unrelated changes.

Git & Code Review21

Git Workflow

43

aws-samples/sample-kiro-cli-multiagent-development

Git operations, branching strategies, commit conventions, and repository management. Use when working with version control, creating branches, writing commits, or resolving merge conflicts.

Git & Code Review

Browse the most popular Claude skills, all git & code review skills, or write your own with the skills generator.