This is a post-generation quality gate for AI-written tests. It enforces nine rules designed to prevent the most common failure modes when agents write tests: mock-heavy unit tests that assert implementation details, near-duplicate test bodies that differ by one value, and tests that re-verify the framework instead of your logic. It triggers after test code is written but before it gets committed, covering pytest, PHPUnit, Pest, Jest, Vitest, and Go test files. The rules are sharp, not pedantic. Mock only at system boundaries, never mock state objects, merge value variants into parametrized tests, and delete tests that only catch typos. Production regression tests are sacred and exempt from the justification rule. Stack-specific reference docs provide concrete patterns for each framework.
npx -y skills add amelnagdy/guard-skills --skill test-guard --agent claude-codeInstalls into .claude/skills of the current project.
Select a file.
wshobson/agents
dbt-labs/dbt-agent-skills
github/awesome-copilot