AgentSkillsCN

debug-loop

通过重现、最小化、编写回归测试、修复问题并记录文档来进行调试。

SKILL.md
--- frontmatter
name: debug-loop
description: Debug by reproducing, minimizing, writing regression tests, fixing, and documenting.
  1. Reproduce the failure (exact command, inputs, environment).
  2. Minimize to the smallest failing case.
  3. Add a regression test that fails before the fix.
  4. Fix the root cause.
  5. Re-run tests: uv run pytest -q.
  6. Update the feature spec Debug log with repro, root cause, fix, and regression test.