Peter Commit Ops
name: peter-commit-ops
by chinasilva · published 2026-03-22
$ claw add gh:chinasilva/chinasilva-peter-commit-ops---
name: peter-commit-ops
description: 提交与建 PR 桥接自动化。负责将“可提交”改动落成 commit、推送分支并创建 PR,衔接 peter-code-review 与 peter-pr-ops。用于用户提到“帮我提交”“推分支”“创建 PR”“从 review 到 merge 串起来”等场景。
version: 1.1.0
---
# Peter Commit Ops
30 秒简介
用于“把可提交改动变成可收口 PR”。
它聚焦 4 件事:
1. 检查是否满足提交前门禁
2. 原子化暂存并创建规范 commit
3. 推送分支并创建/更新 PR
4. 输出可继续交给 CI/PR 收口的状态
适用场景
执行步骤
1. 前置确认:
git status -s
git rev-parse --abbrev-ref HEAD2. 分支策略:
git rev-parse --abbrev-ref HEAD3. 原子暂存与提交:
git diff --name-only
git add <files>npm run workflow:check
# 若仓库未定义该命令,回退:
# tools/workflow-check.sh --staged 或 scripts/workflow-check --stagedgit commit -m "feat: <summary>"4. 推送与 PR:
git push -u origin <branch>
gh pr create --fill5. 交接输出:
- 风险摘要(例如 `GATE_DB_UNREACHABLE`)
- 强制建议先执行 `peter-ci-gate` 再考虑合并
输出格式(固定)
1. `## 提交与 PR 报告`
2. `### 前置检查`(工作区/分支/门禁)
3. `### 执行动作`(add/commit/push/pr)
4. `### 产出物`(SHA、branch、PR)
5. `### 结论`(`已进入 CI 阶段` / `阻塞`)
护栏
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...