Agent Skills
› galacean/effects-runtime
› commit-push-pr
commit-push-pr
GitHub自动化执行代码提交、推送及创建 Pull Request 流程。包括检查变更、生成符合规范的提交信息、智能推断分支名、推送代码至远程仓库,并利用 gh CLI 创建包含中英文描述的 PR,简化版本控制操作。
触发场景
需要提交代码并创建 PR
完成开发任务后准备合并代码
安装
npx skills add galacean/effects-runtime --skill commit-push-pr -g -y
SKILL.md
Frontmatter
{
"name": "commit-push-pr",
"description": "Commit, push, and open a PR"
}
Follow these steps in order:
- Run
git statusto see what files have changed - Run
git diffto review the changes - If no files are staged, run
git add -A .to stage all changes; otherwise skip - Run
git diff --stagedto 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 - If the command arguments contain
-b, or the current branch ismain,master,dev, or matchesfeat/<version>(e.g.feat/2.1): infer a branch name from the staged diff content in<type>/<scope>-<summary>format and rungit checkout -b <branch>; otherwise stay on the current branch - Run
git commit -m "<message>" - Push to the remote branch (create remote branch if needed with
-u origin <branch>) - Create a Pull Request using
gh pr create --base $namewith (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


