Zum Inhalt springen
Kitbay
Einreichen
Skill

tdd

Aktualisiert am 11. Nov. 202616.006GitHub-Sterne

A bug-fix skill from Cursor's pstack harness for Claude Code, run only when invoked, for bugs with a cheap local test path.

Was der Skill vermittelt

A bug-fix skill from Cursor's pstack harness for Claude Code, run only when invoked, for bugs with a cheap local test path. The agent pins down intended and actual behaviour, picks the narrowest kind of test already used for that code path, writes a focused test that should have caught the bug, runs it to confirm it fails for the right reason, makes the smallest fix and reruns it. When a test would need heavy setup, brittle mocks or production state, it uses another executable check such as a script or browser automation instead. The final report names the failing-before and passing-after evidence, or why none could be shown.

Funktionen

  • Write a regression test that fails before the fix
  • Choose the narrowest existing test type for the code path
  • Fall back to a script or manual check when a test is impractical
  • Report failing-before and passing-after evidence