Coding
Testing
Get Claude to write tests that actually protect you, not tests that just pass.
Knowledge cards
Best practice
Make Claude Test Behaviour, Not Implementation
A prompting discipline that tells Claude to assert what a unit does from the outside — given these inputs, expect these outputs or effects — rather than how it does it internally. The test describes a contract, not a call sequence.
Best practice
Ask for the Test That Would Have Caught the Bug
A rule for bug fixes: before Claude changes any code, have it write the single test that fails today because of the bug and will pass once the bug is gone. The test, not the patch, is the deliverable you review first.