AGENT SKILL

tdd-regression-tests

Add regression tests before fixing bugs or changing behavior.

License 许可
MIT
最近更新
2026-05-28
Stars
★ 0
Forks
0

01 前言 Front Matter

name
tdd-regression-tests
author
Siming
license
MIT
version
1.0.0
metadata
{ "siming": { "tags": [ "quality", "testing", "tdd" ] } }
description
Add regression tests before fixing bugs or changing behavior.

03 SKILL.md 正文

TDD Regression Tests

Use this skill for bug fixes and behavior changes.

Workflow

  1. Write the smallest test that demonstrates the current failure.
  2. Run it and confirm it fails for the expected reason.
  3. Implement the minimal fix.
  4. Rerun the focused test, then relevant broader checks.
  5. Keep the test focused on behavior, not implementation details.

Checks

  • A new test should fail before the fix.

04 同仓库更多 Skills