orch-fix-defect
它能做什么
这个工具用于修复电脑程序中的 bug。它会先把 bug 复现为一个失败的测试,然后进行修复,最后审查并保存修复结果。
适用场景
- ✓当程序没有按预期工作时(出错、崩溃、输出结果不对)。
- ✓当原本正常的功能突然失效时。
- ✓当你需要确保某个特定 bug 不会再次出现时。
技能链接
https://github.com/affaan-m/ECC/blob/main/skills/orch-fix-defect/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“修复程序在收到空响应时崩溃的 bug。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会先创建一个能体现该 bug 的测试。然后修正代码,直到测试通过。最后审查并保存修复。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
orch-fix-defect
Actor · action · target: orch · fix · defect. Thin wrapper over the shared
engine in orch-pipeline.
When to Use
- Something is broken: wrong output, an error, a crash, a regression.
- Distinguish from siblings:
- behavior is correct but you want it different →
orch-change-feature. - the capability does not exist yet →
orch-add-feature.
- behavior is correct but you want it different →
Operation settings
- Default size floor: small (often trivial).
- Phase mask: 0 → (light 2 only if root cause is non-obvious or standard+) → 4 → 5 → 6. Research (1) is usually skipped.
- First move (phase 4): reproduce the bug as a new failing test (regression test), then fix until it goes green. Proving the bug exists first is what separates a fix from a tweak.
How It Works
- Run the
orch-pipelineengine with the settings above. - If the root cause is unclear, scope it with
code-explorerbefore the red test; escalate build breaks tobuild-error-resolver//build-fix. - Stop at Gate 1 (only if a plan was produced) and Gate 2 (pre-commit).
- Add
security-reviewerif the defect sits in a security-sensitive path.
Example
orch-fix-defect: poller crashes on empty NWS response
→ write failing test reproducing the crash → fix to green
→ code-review → commit [GATE 2: confirm] (commit: fix:)
常见问题
修复 bug 和修改功能有什么区别?
修复 bug 是纠正已经损坏的东西。修改功能则是改变原本就能工作、但你希望它表现不同的东西。
如果无法确定 bug 的原因怎么办?
这个工具可以先帮你排查原因,然后再尝试修复。
修复什么时候会被保存?
只有在审查并确认之后,修复才会被保存,从而确保问题得到正确解决。
详情
作者的原始描述
Orchestrate fixing a bug — reproduce it as a failing regression test, fix to green, review, and gated commit — by delegating each phase to the matching ECC agent. Use when existing behavior is broken or wrong.
repo: affaan-m/ECC
热度
- GitHub 星标
- 280k
- 排名
- #375
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
accessibility
280k帮你的智能体创建人人都能使用的界面。确保网站和应用对残障人士友好,比如失明或行动不便的用户也能顺畅使用。
agent-architecture-audit
280k让你的智能体检查一切是否正常运行。它能找出并修复 AI 系统中的问题,确保系统按预期工作。
agent-eval
280k帮你的智能体比较不同的 AI 编程工具。它能衡量哪个工具在特定任务上更快、更便宜、更可靠。
agent-harness-construction
280k让你的智能体更好地理解如何完成任务。它会优化智能体使用的工具和指令,提高成功的几率。