About
This skill provides a comprehensive framework for writing robust, maintainable tests by identifying and blocking common anti-patterns like testing the behavior of mocks instead of real components or adding test-only methods to production classes. It integrates structured 'Gate Functions' that force a pause and reflection before mocking dependencies, ensuring developers understand side effects and maintain the integrity of their production codebase through disciplined TDD practices. By following these rules, developers can avoid fragile test suites that break during refactoring or provide false confidence in system stability.