klimkit-tdd
Installation
SKILL.md
Klimkit TDD
Use TDD to protect intent, not to create mechanical coverage. Keep each loop small enough that a failing test names the behavior being changed.
Workflow
- Ensure operator-scoped Klimkit context exists. If
.klimkit/<operator>/is missing or ambiguous, useklimkit-setupfirst. - Read the request, acceptance checklist, existing tests, and nearby implementation before writing a test.
- Choose one vertical behavior slice. Avoid broad refactors before the first red test.
- Write or update the smallest test that should fail for the requested behavior.
- Run the focused test and confirm it fails for the expected reason.
- Implement the smallest robust change that makes the test pass.
- Run the focused test again.
- Refactor only the code touched by this slice, preserving green tests.
- Repeat for the next slice until the checklist is complete.
- Run broader checks that match the blast radius.
- Record the red/green evidence, final checks, skipped checks, and residual risk in
.klimkit/<operator>/tasks/<feature>/.