Peter Bugfix Loop
name: peter-bugfix-loop
by chinasilva · published 2026-03-22
$ claw add gh:chinasilva/chinasilva-peter-bugfix-loop---
name: peter-bugfix-loop
description: 代码缺陷修复闭环。聚焦“先复现、再定位、最小修复、同上下文补测试”,并衔接现有 Peter 门禁与 PR 收口流程。
version: 1.0.0
---
# Peter Bugfix Loop
30 秒简介
用于“把一个 Bug 从问题描述推进到可合并修复”。
它聚焦 6 件事:
1. 建立可执行 Bug 卡
2. 先做最小复现(先红)
3. 假设驱动定位根因
4. 最小修复(控制 blast radius)
5. 同上下文补测试
6. 接入现有门禁与 PR 收口
适用场景
执行步骤
1. 建立 Bug 卡(最小输入)
2. 最小复现(先红)
3. 假设驱动定位
4. 最小修复
5. 同上下文补测试
6. 接入现有 Peter 流程
输出格式(固定)
1. `## Bug 修复报告`
2. `### Bug 卡`(现象 / 期望 / 影响范围 / 验收句)
3. `### 复现与根因`(复现证据 / 候选根因 / 最终根因)
4. `### 修复与测试`(改动文件 / 新增或更新测试 / 本地结果)
5. `### 门禁与收口`(code-review 结论 / CI gate 状态 / PR 状态)
6. `### 结论`(`已修复可收口` / `需继续修复` / `阻塞`)
护栏
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...