test-standards-enforcer
Installation
SKILL.md
Contains Hooks
This skill uses Claude hooks which can execute code automatically in response to events. Review carefully before installing.
Enforce 2026 testing best practices with BLOCKING validation.
Validation Rules
BLOCKING Rules (exit 1)
| Rule | Check | Example Violation |
|---|---|---|
| Test Location | Tests must be in tests/ or __tests__/ |
src/utils/helper.test.ts |
| AAA Pattern | Tests must have Arrange/Act/Assert structure | No clear sections |
| Descriptive Names | Test names must describe behavior | test('test1') |
| No Shared State | Tests must not share mutable state | let globalVar = [] without reset |
| Coverage Threshold | Coverage must be ≥ 80% | 75% coverage |