
test-guard
Review generated or changed test code against universal testing rules before it
by amelnagdyFree
Description
Test Guard is an agent skill that reviews generated or changed test code before it ships. It runs after an agent writes, edits or generates tests, and before those tests are presented, committed or merged. The skill applies a set of universal testing rules, and it asks the reviewer to be sharp rather than pedantic: flag what wastes maintenance effort or hides real bugs, and ignore cosmetic preferences. The rules target the usual failure modes of coding agents, which tend to over-generate tests. Those include 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 the project's own logic. Before reviewing, the skill adapts to the project, because the rules are universal but how they apply depends on the codebase. It applies to test code in any language, and it also activates when you edit existing tests, review a diff that contains test changes, or ask for tests to be written or reviewed. The skill is open source in the amelnagdy guard-skills repository on GitHub.…
Highlights
- Reviews agent-written tests before they ship
- Flags mock-heavy tests that check implementation details
- Catches near-duplicate test bodies
- Adapts the rules to each project first
Ratings & Reviews
No ratings yet
Be the first to rate test-guard.
People also visit
test-guard FAQ
What does Test Guard do?
It reviews test code that an AI agent wrote or changed, and points out tests that waste maintenance effort or hide real bugs.
When does it run?
After the first test writing pass and before the tests are shown, committed or merged. It also runs when you edit tests or review a diff with test changes.
What kinds of problems does it look for?
Mock-heavy unit tests that assert implementation details, near-duplicate tests, and tests that re-verify the framework.
Does it flag style preferences?
No. The skill is told to ignore cosmetic preferences and focus on problems that cost maintenance or hide bugs.
Is it free?
Yes. The skill is open source on GitHub in the amelnagdy guard-skills repository.
What do the security audits show?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best test-guard alternatives?
Popular alternatives to test-guard include agent-tester, test and test-master. See all test-guard alternatives















