peter-ci-gate
CI 绿灯门禁。负责远端检查状态、失败定位、单次重跑策略,并输出“是否可合并”。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/chinasilva/peter-ci-gatePeter CI Gate
30 秒简介
用于“PR 是否能合并”的远端 CI 判定。
它聚焦 3 件事:
- 看清当前 checks 状态
- 判断失败是代码问题还是偶发波动
- 给出可执行动作(修复或单次重跑)
适用场景
- 用户提到“看下 CI”“为什么没过”“是否可以合并”
- PR 临近合并,需要明确 gate 结论
执行步骤
- 获取 PR 与 checks 状态:
gh pr view <pr> --json number,title,url,state,mergeStateStatus,headRefName
gh pr checks <pr>
- 失败时获取最近 workflow 详情:
branch=$(gh pr view <pr> --json headRefName --jq '.headRefName')
gh run list --branch "$branch" --limit 20
gh run view <run-id> --log-failed
- 处理策略:
- 代码或测试真实失败:标记阻塞并给修复建议
- 明显偶发失败:允许重跑一次
gh run rerun <run-id>
- 输出门禁结论:
可合并:所有必需 checks 通过暂不可合并:存在阻塞项
护栏
- 不把“重跑成功”当作根因修复。
- 每个失败项必须给出证据(job/log)。
- 默认不跳过必需检查。
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-chinasilva-peter-ci-gate": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
ai-task-hub
AI task hub for image analysis, background removal, speech-to-text, text-to-speech, markdown conversion, and points queries. Default host path is connector-first and result-first; async poll/presentation remain compatibility or asset-delivery follow-up surfaces.
peter-bugfix-loop
代码缺陷修复闭环。聚焦“先复现、再定位、最小修复、同上下文补测试”,并衔接现有 Peter 门禁与 PR 收口流程。
peter-code-review
提交前质量闸门。快速完成本地测试、静态检查和风险审查,判断“是否可提交”。
peter-pr-ops
PR 收口自动化。单 PR 串行合并与多 PR 批量清理,减少重复人工操作。
peter-commit-ops
提交与建 PR 桥接自动化。负责将“可提交”改动落成 commit、推送分支并创建 PR,衔接 peter-code-review 与 peter-pr-ops。用于用户提到“帮我提交”“推分支”“创建 PR”“从 review 到 merge 串起来”等场景。