界面已本地化;技能原文保持作者语言。部分长说明页面以英语提供。
探索技能
开发与工程 · SKILL.md

debug

debug

【开发与工程】Use for bugs, unexpected behavior, regressions, or failing tests you did not write.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: debug description: Use for bugs, unexpected behavior, regressions, or failing tests you did not write.

Debug

If topology=multi-module (triage announcement or coordinator spec/plan declaration), read ../references/multi-module.md. Investigate read-only across repos; fix inside the task's registered module only; defer commits until integration passes.

  1. Reproduce. Minimal deterministic repro. No repro → no fix.
  2. Root-cause. Ask "why" until one cause explains all symptoms. Symptoms != cause.
  3. Regression test first (red), then fix at the root (green). Use tdd.

Don't

  • Guess. Read the code and the full error.
  • Change two things at once.
  • Stop at the first plausible cause.

3 failed hypotheses → re-read from scratch. Done = repro + regression test + root cause named + green.

我的收藏