This automates the full git workflow for contributing to upstream repos: creates a feature branch, reviews your changes with git status and git diff, stages files individually (no blanket git add), commits with sign-off, pushes, and opens a PR using the GitHub CLI. It's configured to attribute commits to a specific author and strips out any AI-related mentions from commit messages and PR text, which is clearly aimed at making contributions look human-written. If you have merge permissions, it can also handle the merge and cleanup. The skill assumes you already have an "official" remote configured for the upstream repo. It's basically a one-command contribution pipeline, though the hardcoded author email and the explicit instruction to hide AI involvement might raise eyebrows depending on your project's contribution policies.

skills.sh installs
3.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add zc277584121/mygitplugin --skill git-commit-pr --agent claude-code

Installs into .claude/skills of the current project.

Files

Git Commit & PR

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

触发条件

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

执行步骤

  1. 创建新分支:git checkout -b <branch-name>,分支名由用户指定或根据改动内容自动生成。

  2. Review 改动:先用 git status 和 git diff 自行检查所有改动,确保没有把临时文件、调试代码或不相关的文件混进来。

  3. 暂存文件:git add 相关改动文件。不要使用 git add -A 或 git add .,而是逐个添加相关文件。

  4. 提交改动:

    git commit --signoff --author="Cheney Zhang <chen.zhang@zilliz.com>" -m "<commit message>"
    
    • commit message 用英文编写,简洁描述改动内容。
    • 绝对不要在 commit message 中提及 AI、Claude、LLM 或任何自动生成相关的字样。
  5. 推送分支:git push origin <branch-name>。

  6. 创建 PR:

    gh pr create --repo <official-owner/repo> --title "<PR title>" --body "<PR description>"
    
    • PR 标题和描述用英文编写。
    • 绝对不要在 PR 标题或描述中提及 AI、Claude、LLM 或任何自动生成相关的字样。
    • 不要添加 Co-Authored-By 之类的 AI 相关标记。
  7. 如果用户有合并权限且要求合并:

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

注意事项

Sponsors

Details

Repository
github.com/zc277584121/mygitplugin
Category
Git & Pull Requests
First seen
Jun 3, 2026

More from zc277584121/mygitplugin

All 7
1pytorch avatarpr-reviewpytorch/pytorchReview PyTorch pull requests for code quality, test coverage, security, and backward compatibility. Use when reviewing PRs, when asked to review code changes, o3.3Kskills.sh installs
2ruvnet avataragent-github-pr-managerruvnet/rufloAgent skill for github-pr-manager - invoke with $agent-github-pr-manager1.1Kskills.sh installs
3alirezarezvani avatarpr-review-expertalirezarezvani/claude-skillsUse when the user asks to review pull requests, analyze code changes, check for security issues in PRs, or assess code quality of diffs.701skills.sh installs
4getsentry avatarsentry-pr-code-reviewgetsentry/sentry-agent-skillsReview a project's PRs to check for issues detected in code review by Seer Bug Prediction. Use when asked to review or fix issues identified by Sentry in PR com637skills.sh installs
5xpepper avatarpr-review-loopxpepper/pr-review-agent-skillUse when addressing open PR review comments from any reviewer (human or bot) within the current agent session. For a fresh-context-per-comment approach, use ral302skills.sh installs
6sickn33 avatargit-pr-workflows-git-workflowsickn33/antigravity-awesome-skillsgit pr workflows git workflow293skills.sh installs