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

commit-push-pr

GitHub

自动化执行 Git 代码提交、推送及创建 Pull Request 流程,支持分支推断与规范化的提交信息生成。

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

Trigger Scenarios

需要提交并推送代码更改 需要创建新的 Pull Request

Install

npx skills add galacean/effects-runtime --skill commit-push-pr -g -y
More Options

Non-standard path

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

Use without installing

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.

Version History

  • 2.10.0 Current 2026-09-02 23:02

Same Skill Collection

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

Metadata

Files
0
Version
2.10.0
Hash
f8df2a39
Indexed
2026-09-02 23:02

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-04 01:30
浙ICP备14020137号-1 $bản đồ khách truy cập$