跳到正文
Skillpedia
部署与云(DevOps)280k · #375

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/affaan-m/ECC/blob/main/skills/orch-fix-defect/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

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

  1. Run the orch-pipeline engine with the settings above.
  2. If the root cause is unclear, scope it with code-explorer before the red test; escalate build breaks to build-error-resolver / /build-fix.
  3. Stop at Gate 1 (only if a plan was produced) and Gate 2 (pre-commit).
  4. Add security-reviewer if 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能