What problem does it solve? Code changes often break existing unit tests, leaving developers to manually triage failures across mocks, assertions, factories, and snapshots. This Skill automates the diagnosis and repair of broken tests while flagging structural problems that need human judgment. ## Core Features & Use Cases - Failure Diagnosis: Runs the test suite, groups failures by file, and categorizes each one (stale mock, outdated assertion, missing factory field, stale snapshot, changed import). - Convention-Aware Fixes: Loads repo test patterns via the test-context tool so fixes match existing mock and assertion styles instead of introducing inconsistencies. - Human Escalation: Surfaces structural test architecture issues for review rather than guessing, and refuses to suppress errors with ts-ignore or weakened assertions. - Use Case: After refactoring a service interface, run this Skill to update all affected mocks and assertions, regenerate intentional snapshot changes, and receive a report of what was fixed versus what needs a human decision. ## Quick Start Fix the unit tests that are failing after my recent changes to the user service.