Agent Skills
› galacean/effects-runtime
› commit-push-pr
commit-push-pr
GitHub自动化执行 Git 代码提交、推送及创建 Pull Request 流程,支持分支推断与规范化的提交信息生成。
Trigger Scenarios
需要提交并推送代码更改
需要创建新的 Pull Request
Install
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.
Version History
- 2.10.0 Current 2026-09-02 23:02


