OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add zc277584121/mygitplugin --skill git-commit-pr
Commit changes and create a pull request to the official upstream repo
npx skills add zc277584121/mygitplugin --skill 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 push origin <branch-name>。
创建 PR:
Co-Authored-By 之类的 AI 相关标记。如果用户有合并权限且要求合并:
git fetch official && git reset --hard official/<main-branch>。git branch -d <branch-name>。git push origin --delete <branch-name>。official remote 存在,如果不存在则提示用户先配置。