behavioral-testing
Installation
SKILL.md
Behavioral Testing
Test observable behavior. Keep tests terse. Never test implementation details.
Core Laws
1. Test what the user sees, not how the code works
2. If a refactor breaks a test, the test was wrong
3. Mocks isolate — they are never the thing being tested
4. Every assertion must trace to a user-observable outcome
5. Terse tests > thorough ceremony
Writing Tests
The Pattern
Related skills
More from caidanw/skills
modern-css
>
47karpathy-guidelines
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.
35distill-to-skill
>-
34architecture-md
>-
26agent-first-repo
>-
26parse-dont-validate
>-
26