
git-commit-pr
Commit changes and create a pull request to the official upstream repo
- Installs
- 3.4K
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/zc277584121/mygitplugin --skill git-commit-pr- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads git-commit-pr automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
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>。
注意事项
- 先确认
officialremote 存在,如果不存在则提示用户先配置。 - 提交前检查是否有未暂存的改动需要处理。
- 所有对外可见的文本(commit message、PR 标题/描述)都不能出现任何 AI 相关字样。
FAQ
What does the git-commit-pr skill do?
Commit changes and create a pull request to the official upstream repo
How do I install git-commit-pr?
Run npx skills add https://github.com/zc277584121/mygitplugin --skill git-commit-pr in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/git-commit-pr/ (personal) or .claude/skills/git-commit-pr/ (project).
Which AI agents can use git-commit-pr?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is git-commit-pr safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains git-commit-pr?
It is published by zc277584121 in zc277584121/mygitplugin. It has 3,373 recorded installs.
More from zc277584121/mygitplugin
git-create-repo
zc277584121/mygitplugin
Create a new GitHub repository and clone it locally
git-commit-push
zc277584121/mygitplugin
Commit changes and push to origin without creating a PR
git-fork-clone
zc277584121/mygitplugin
Fork a GitHub repo and clone it locally with proper remote setup
git-summarize-weekly
zc277584121/mygitplugin
Summarize weekly GitHub contributions for writing weekly reports
git-get-notification
zc277584121/mygitplugin
Check GitHub notifications and recent Issues/PRs for monitored repos
git-sync-main
zc277584121/mygitplugin
Sync local main branch with the latest code from official upstream or origin remote
Popular code quality & workflow skills
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
improve-codebase-architecture
mattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
handoff
mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
domain-modeling
mattpocock/skills
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
codebase-design
mattpocock/skills
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
diagnosing-bugs
mattpocock/skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.