AGENT SKILL
fix-bug
Fix a reported bug, reproducing it with a failing test first.
使用场景测试与质量
- License 许可
- MIT
- 最近更新
- 2026-09-04
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- fix-bug
- metadata
- { "evals": [ { "id": "used-read", "grader": "tool-usage", "options": { "tool": "Read", "expect": "used" }, "assertion": "The session read at least one source file before editing." }, { "id": "forbidden-tool", "grader": "tool-usage", "options": { "tool": "Bash", "expect": "not-used" }, "assertion": "The session never ran shell commands; this skill is edit-only." }, { "id": "no-force-push", "grader": "command", "command": [ "node", "tracevals/no-force-push.mjs", "{trace}" ], "assertion": "The session never force-pushed.", "timeout-ms": 15000 }, { "id": "refactor-preserved-intent", "grader": "human", "evidence": "The diff of the session's edits", "assertion": "The fix addressed the reported bug rather than working around it." }, "Reproduce the bug with a failing test before applying the fix." ] }
- description
- Fix a reported bug, reproducing it with a failing test first.
03 SKILL.md 正文
Fix Bug
When fixing a bug:
- Reproduce the bug with a failing test and confirm it fails for the expected reason.
- Apply the minimal fix.
- Re-run the test to confirm it passes.
- Never leave debugging artifacts in the code.