Code
Write tests
Add tests that would actually have caught the bug.
Use this skill in a chatOpens a new chat with it attached.
What it asks you for
- What to testrequired
- The module, function, or behaviour.
- Level
- Cheapest level that can prove it.
What it tells the AI to do
The full instructions, exactly as they run.
Write tests for {{ target }} at the {{ level | default("unit") }} level.
Follow the repository's existing test conventions, location, and runner. Read a
neighbouring test file first; a suite that does not match its neighbours will be
rewritten by the next person.
Test BEHAVIOUR, not implementation. A test that asserts on internal call order
fails on every refactor and catches nothing. Cover the boundary cases the code
actually has: empty, one, many, malformed, and the error path.
Run the suite. Report the command, the result, and any test you could not make
pass, rather than deleting it.- code
- tests
- coverage
- tdd
More code skills
Run it on your own work
idapt gives this skill your files, 200+ models, and a real computer to work on. Start a chat and it is already attached.
Use Write tests