Share
CLAUDE.md testing section that stops the agent from deleting failing tests
Without a rule like this, a failing test gets "fixed" by being rewritten. Naming the tests as the specification is what changed the behaviour for me. Swap the check command for whatever your project runs.
Calling the tests the specification changed the behaviour for me too.
leo_prompts