zc277584121/mygitplugin

git-commit-pr

Commit changes and create a pull request to the official upstream repo

All-time #4398 Trending #4055 Hot #5343 First seen Apr 27, 2026
8-week activity · all time api

Installation

$ npx skills add zc277584121/mygitplugin --skill git-commit-pr

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from zc277584121/mygitplugin.

npx skills add zc277584121/mygitplugin

Browse all from zc277584121/mygitplugin

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

License MIT
Default branch master
Open issues 0
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,102 B
  • docs SUMMARY.md 91 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2,946 installs

SKILL.md

Git Commit & PR

提交改动并向 official(上游)仓库创建 Pull Request。

触发条件

当用户要求提交改动并给原始仓库(official)提 PR 时使用此 skill。

执行步骤

  1. 创建新分支git checkout -b <branch-name>,分支名由用户指定或根据改动内容自动生成。
  1. Review 改动:先用 git statusgit diff 自行检查所有改动,确保没有把临时文件、调试代码或不相关的文件混进来。
  1. 暂存文件git add 相关改动文件。不要使用 git add -Agit add .,而是逐个添加相关文件。
  1. 提交改动

``bash git commit --signoff --author="Cheney Zhang <[email protected]>" -m "<commit message>" `` - commit message 用英文编写,简洁描述改动内容。 - 绝对不要在 commit message 中提及 AI、Claude、LLM 或任何自动生成相关的字样。

  1. 推送分支git push origin <branch-name>
  1. 创建 PR

``bash gh pr create --repo <official-owner/repo> --title "<PR title>" --body "<PR description>" ` - PR 标题和描述用英文编写。 - 绝对不要在 PR 标题或描述中提及 AI、Claude、LLM 或任何自动生成相关的字样。 - 不要添加 Co-Authored-By` 之类的 AI 相关标记。

  1. 如果用户有合并权限且要求合并

- Review PR 并合并。 - 切回主分支(main 或 master)。 - 同步上游:git fetch official && git reset --hard official/<main-branch>。 - 删除本地临时分支:git branch -d <branch-name>。 - 删除远端临时分支:git push origin --delete <branch-name>

注意事项

  • 先确认 official remote 存在,如果不存在则提示用户先配置。
  • 提交前检查是否有未暂存的改动需要处理。
  • 所有对外可见的文本(commit message、PR 标题/描述)都不能出现任何 AI 相关字样。