Git Commit Pr
Step-by-step git workflow that branches, commits with signoff, and opens an upstream PR with AI references stripped.
- CCM score
- 52 of 100
- skills.sh installs
- 3.4K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the full contribution flow: branch creation, diff review, selective staging, commit, push, and
gh pr createagainst an upstream repo - Enforces selective staging by forbidding
git add -Aandgit add ., and checks for leftover temp files or debug code before commit - Requires a
--signoffcommit and a check that theofficialremote exists before any push or PR step runs - Includes an optional merge path that resyncs
mainfromofficial, then deletes the local and remote temporary branches
Install
$ npx -y skills add zc277584121/mygitplugin --skill git-commit-pr -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Git Commit & PR
提交改动并向 official(上游)仓库创建 Pull Request。
触发条件
当用户要求提交改动并给原始仓库(official)提 PR 时使用此 skill。
执行步骤
-
创建新分支:
git checkout -b <branch-name>,分支名由用户指定或根据改动内容自动生成。 -
Review 改动:先用
git status和git diff自行检查所有改动,确保没有把临时文件、调试代码或不相关的文件混进来。 -
暂存文件:
git add相关改动文件。不要使用git add -A或git add .,而是逐个添加相关文件。 -
提交改动:
git commit --signoff --author="Cheney Zhang <chen.zhang@zilliz.com>" -m "<commit message>"- commit message 用英文编写,简洁描述改动内容。
- 绝对不要在 commit message 中提及 AI、Claude、LLM 或任何自动生成相关的字样。
-
推送分支:
git push origin <branch-name>。 -
创建 PR:
gh pr create --repo <official-owner/repo> --title "<PR title>" --body "<PR description>"- PR 标题和描述用英文编写。
- 绝对不要在 PR 标题或描述中提及 AI、Claude、LLM 或任何自动生成相关的字样。
- 不要添加
Co-Authored-By之类的 AI 相关标记。
-
如果用户有合并权限且要求合并:
- Review PR 并合并。
- 切回主分支(main 或 master)。
- 同步上游:
git fetch official && git reset --hard official/<main-branch>。 - 删除本地临时分支:
git branch -d <branch-name>。 - 删除远端临时分支:
git push origin --delete <branch-name>。
注意事项
Details
- Repository
- github.com/zc277584121/mygitplugin
- Category
- Git & Releases
- First seen
- Jun 3, 2026
Questions
What does the git-commit-pr skill do?
git-commit-pr commits your changes and opens a pull request to the official upstream repository. It first creates a new branch, reviews the diff, and stages only the related files rather than using git add -A or git add ...
How do I install the git-commit-pr skill?
Run npx -y skills add zc277584121/mygitplugin --skill git-commit-pr -y in your project. Once installed, git-commit-pr lets the agent commit changes with sign-off and open a PR to the official upstream repository through gh pr create.
What does git-commit-pr need before it can run?
git-commit-pr needs an official remote configured in your local repository, and the gh CLI must be authenticated. If the official remote is missing, the skill asks you to set it up first.
Where does git-commit-pr rank among Git and Releases skills?
git-commit-pr sits in the Git & Releases category and ranks in the top 100 on that category page. It differs from git-commit-push, the sibling skill in its repository, because git-commit-pr also creates the pull request to upstream.
More from zc277584121/mygitplugin
All 7Similar to Git Commit Pr
More Git & Releasesgit-commit-pushzc277584121/mygitplugin3.4K installsCommit local changes and push them to origin, with no pull request, using enforced signoff and authorship.
gh-create-prbastani-inc/atomic170 installsCommits unstaged changes, pushes the branch, and opens or updates a conventional-commit pull request.
simple-prquickwit-oss/tantivy16.5K starsStreamlined git workflow that turns staged changes on main into a branch, commit, and pull request.
new-branch-and-prcursor/plugins2.3K installsBranch-to-pull-request workflow that creates a fresh branch, implements and tests the change, and opens the PR.
git-best-practicesalleneubank/claude-code271 installsOpinionated git workflow that enforces conventional commits, explicit staging, and safe force-pushing for agents.
create-prtartinerlabs/skills447 installsPush a branch and open a GitHub or GitLab PR, with stacked-base selection and migration drift checks.