Agent Skillsgalacean/effects-runtime › commit-push-pr

commit-push-pr

GitHub

自动化执行代码提交、推送及创建 Pull Request 流程。包括检查变更、生成符合规范的提交信息、智能推断分支名、推送代码至远程仓库,并利用 gh CLI 创建包含中英文描述的 PR,简化版本控制操作。

.agents/skills/commit-push-pr/SKILL.md galacean/effects-runtime

触发场景

需要提交代码并创建 PR 完成开发任务后准备合并代码

安装

npx skills add galacean/effects-runtime --skill commit-push-pr -g -y
更多选项

非标准路径

npx skills add https://github.com/galacean/effects-runtime/tree/main/.agents/skills/commit-push-pr -g -y

不安装直接使用

npx skills use galacean/effects-runtime@commit-push-pr

指定 Agent (Claude Code)

npx skills add galacean/effects-runtime --skill commit-push-pr -a claude-code -g -y

安装 repo 全部 skill

npx skills add galacean/effects-runtime --all -g -y

预览 repo 内 skill

npx skills add galacean/effects-runtime --list

SKILL.md

Frontmatter
{
    "name": "commit-push-pr",
    "description": "Commit, push, and open a PR"
}

Follow these steps in order:

  1. Run git status to see what files have changed
  2. Run git diff to review the changes
  3. If no files are staged, run git add -A . to stage all changes; otherwise skip
  4. Run git diff --staged to review staged changes and generate a commit message following conventional commits format. Show the message and ask for explicit confirmation with choices: Confirm commit / Cancel. Only proceed if confirmed
  5. If the command arguments contain -b, or the current branch is main, master, dev, or matches feat/<version> (e.g. feat/2.1): infer a branch name from the staged diff content in <type>/<scope>-<summary> format and run git checkout -b <branch>; otherwise stay on the current branch
  6. Run git commit -m "<message>"
  7. Push to the remote branch (create remote branch if needed with -u origin <branch>)
  8. Create a Pull Request using gh pr create --base $name with (If no name argument was provided, use main instead):
    • A clear title summarizing the changes (must use English)
    • A description with (you can use Simplified-Chinese):
      • Summary of what changed and why
      • Any testing done
      • Any notes for reviewers

If there are any issues at any step, stop and report them.

版本历史

  • 2.10.0 当前 2026-09-02 23:02

同 Skill 集合

.agents/skills/changelog-curation/SKILL.md
.agents/skills/quick-commit/SKILL.md
.claude/skills/changelog-curation/SKILL.md

元信息

文件数
0
版本
2.10.2
Hash
f8df2a39
收录时间
2026-09-02 23:02

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-18 16:36
浙ICP备14020137号-1