What problem does it solve? Writing maintainable, well-structured tests is hard: developers struggle with choosing test structures, picking the right test double, writing meaningful assertions, and keeping tests isolated and organized. This Skill provides experienced developers with proven patterns for effective test-driven development. ## Core Features & Use Cases - Test Structure Patterns: AAA (Arrange-Act-Assert), Given-When-Then, and Four-Phase patterns with templates and common mistakes. - Test Doubles Guidance: Clear selection criteria for stubs, mocks, fakes, and spies, with a decision matrix and anti-patterns. - Assertion & Organization Strategies: Single-concept assertions, naming conventions, parameterized tests, and test suite organization by type or feature. - Use Case: When writing a unit test for a service that calls an external API, use this Skill to decide between a stub and a mock, structure the test with AAA, and write specific assertions with helpful failure messages. ## Quick Start Ask the AI to help you structure a test for a specific function using the AAA pattern and recommend the right test double for its dependencies.