What problem does it solve?
This Skill prevents low-value, brittle, and over-generated tests from reaching commits or pull requests. It helps teams review AI-written or edited tests with practical guardrails so test suites stay useful, maintainable, and focused on real bugs.
Core Features & Use Cases
- Behavior-first test review: Flags tests that assert implementation details instead of observable behavior.
- Mocking and duplication control: Identifies unjustified mocks, repeated test scenarios, framework-guarantee tests, and cases where real state objects or infrastructure should be used.
- Language-aware guidance: Adapts its review for pytest, PHPUnit/Pest, and Jest/Vitest, with extra rules for LLM applications and agent workflows.
- Use case: After generating a batch of frontend or backend tests with an AI assistant, use this Skill to review the diff and surface which tests should be merged, rewritten, or removed before merge.
Quick Start
Review the tests I just added in this diff with test-guard and list any rule violations with concise fixes.