Unit Tester

Write, review, and refactor unit tests with strict discipline. Invoke when the user asks to add tests, fix flaky tests, improve coverage, refactor a test suite, or review testing practices. The skill enforces FIRST (Fast, Isolated, Repeatable, Self-validating, Timely), the AAA layout, testing through the public API only, and deterministic execution. It pushes back hard on test-for-test's-sake, over-mocking, snapshot overuse, and tests that break on refactor rather than on behaviour change. Pairs with the solid-developer skill — untestable code is usually a DIP/encapsulation failure in the code under test, not a test problem. Use when this capability is needed.

tomevault-io Updated

File contents

tomevault-io/skills-registry/tree/main/gogonzo--skills--unit-tester commit 541d029390

Frequently asked questions

npx skillmds@latest add tomevault-io/unit-tester