AgentSkillsCN

test-first-fix

在实施修复方案之前,通过针对性的测试重现缺陷。

SKILL.md
--- frontmatter
name: test-first-fix
description: Reproduce defects with a focused test before implementing the fix.

Test First Fix

Use this skill for bug-fix tasks where behavior is unclear.

Workflow

  1. Write or identify a failing test that reproduces the defect.
  2. Confirm failure is deterministic.
  3. Implement the minimum fix.
  4. Re-run the failing test and adjacent tests.
  5. Summarize root cause, fix, and residual risk.