test-guard
Review generated or changed test code against universal testing rules before it ships. Best used reactively after an agent writes…
What it does
- A coding agent has just written new test functions or test files, in any language
- You are editing existing tests
- You are reviewing a diff that contains test changes
- The user asks you to write, add, or review tests
- Python / pytest → references/pytest.md
- PHP / PHPUnit / Pest / WordPress → references/phpunit.md
- JavaScript / TypeScript / Jest / Vitest → references/jest.md
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
Review generated or changed test code against universal testing rules before it ships. Best used reactively after an agent writes, edits, generates, or refactors tests, before presenting, committing, or merging them. Use for pytest (test_*.py, *_test.py), PHPUnit/Pest (Test.php), Jest/Vitest (.test.ts, .spec.js), Go (_test.go), files under tests/, tests/, or spec/, and review requests like 'write tests for X', 'add tests', 'test this', 'review these tests', or PR diffs containing tests. Can also guide test writing when explicitly invoked before the work. This skill is the quality gate that prevents AI-generated test bloat.
Source
Repository: https://github.com/amelnagdy/guard-skills
test-guard FAQ
What does the test-guard skill do?
Review generated or changed test code against universal testing rules before it ships. Best used reactively after an agent writes, edits, generates, or refactors tests, before presenting, committing, or merging them. Use for pytest (test_*.py, *_test.py), PHPUnit/Pest (*Test.php), Jest/Vitest (*.test.ts, *.spec.js), Go (*_test.go), files under tests/, __tests__/, or spec/, and review requests like 'write tests for X', 'add tests', 'test this', 'review these tests', or PR diffs containing tests. Can also guide test writing when explicitly invoked before the work. This skill is the quality gate that prevents AI-generated test bloat. DO NOT USE for production or implementation code review (use clean-code-guard), CI or test-runner configuration, running or debugging tests, or general architecture discussion. A coding agent has just written new test functions or test files, in any language You are editing existing tests
How do I install test-guard?
Run: npx -y skills add https://github.com/amelnagdy/guard-skills --skill test-guard --agent claude-code — the source lives at github.com/amelnagdy/guard-skills.
Maintain test-guard?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[test-guard on getagentictools](https://getagentictools.com/skills/amelnagdy-guard-skills-test-guard?ref=badge) npx agentictools info skills/amelnagdy-guard-skills-test-guard The second line is the CLI lookup for this page — handy in READMEs and docs.