- •Reproduce the failure (exact command, inputs, environment).
- •Minimize to the smallest failing case.
- •Add a regression test that fails before the fix.
- •Fix the root cause.
- •Re-run tests:
uv run pytest -q. - •Update the feature spec Debug log with repro, root cause, fix, and regression test.
debug-loop
通过重现、最小化、编写回归测试、修复问题并记录文档来进行调试。
SKILL.md
--- frontmattername: debug-loop description: Debug by reproducing, minimizing, writing regression tests, fixing, and documenting.