Peter CI Gate
name: peter-ci-gate
by chinasilva · published 2026-03-22
$ claw add gh:chinasilva/chinasilva-peter-ci-gate---
name: peter-ci-gate
description: CI 绿灯门禁。负责远端检查状态、失败定位、单次重跑策略,并输出“是否可合并”。
version: 1.1.0
---
# Peter CI Gate
30 秒简介
用于“PR 是否能合并”的远端 CI 判定。
它聚焦 3 件事:
1. 看清当前 checks 状态
2. 判断失败是代码问题还是偶发波动
3. 给出可执行动作(修复或单次重跑)
适用场景
执行步骤
1. 获取 PR 与 checks 状态:
gh pr view <pr> --json number,title,url,state,mergeStateStatus,headRefName
gh pr checks <pr>2. 失败时获取最近 workflow 详情:
branch=$(gh pr view <pr> --json headRefName --jq '.headRefName')
gh run list --branch "$branch" --limit 20
gh run view <run-id> --log-failed3. 处理策略:
gh run rerun <run-id>4. 输出门禁结论:
护栏
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...