Pular para o conteúdo
Kitbay
Skill

tdd

Atualizado em 11 de nov. de 202616.006Estrelas no GitHub

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

O que a skill ensina

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.

O que faz

  • 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