What problem does it solve?
This Skill prevents the accumulation of brittle, redundant, or low-value tests generated by AI, ensuring that your test suite remains a reliable asset rather than a maintenance burden.
Core Features & Use Cases
- Pragmatic Quality Gate: Evaluates test code against nine universal rules to ensure tests verify behavior rather than implementation details.
- Language-Specific Guidance: Provides deep-dive references for Python (pytest), PHP (PHPUnit/Pest), and JavaScript (Jest/Vitest) to ensure idiomatic and effective testing patterns.
- Use Case: When an agent generates a suite of mock-heavy unit tests, use this Skill to identify violations of boundary-testing principles and refactor them into meaningful integration or behavior-driven tests.
Quick Start
Use the test-guard skill to review the newly generated test file in the current diff for adherence to testing best practices.