test-guard
Skill1 starsChanged 4 months agoMITView on GitHub
Automatic test and coverage guardrail for code changes. Use whenever implementation, bug fixes, refactors, API changes, code deletion, or other changes affect executable or observable behavior. Ensure changed behavior is meaningfully tested, existing test patterns are followed, coverage stays at or above 80%, and verification status is reported honestly before completion.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- Abdox-menara/guard-skillstheir own version, first seen Aug 24, 2026
- amElnagdy/guard-skillstheir own version, first seen Jul 4, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- amElnagdy/guard-skills★ 1.3ksame name
- Abdox-menara/guard-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- overengineerSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 15 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Do not complete a code-changing task without considering tests and coverage.
- Distinctive: line 27
Do not wait for the user to mention tests or coverage.
- Distinctive: line 36
Do existing tests cover it?
- Distinctive: line 41
If a meaningful test is required, add it.
- Distinctive: line 50
follow existing repository patterns,
- Distinctive: line 55
add meaningless tests only to increase coverage,
- Distinctive: line 57
test implementation details without behavioral value,
- Distinctive: line 64
Do not consider the task complete if coverage drops below 80%.
- Distinctive: line 66
Use the repository's existing coverage tooling and calculation as the source of truth.
- Distinctive: line 67
Do not lower, bypass, or game coverage thresholds.
- Distinctive: line 68
Do not chase coverage numbers with low-value tests.
- Distinctive: line 74
Add new tests only when touched behavior is insufficiently protected or a concrete regression risk is uncovered.
- Distinctive: line 78
Run the narrowest relevant verification allowed by repository and user instructions.
- Distinctive: line 80
If the agent must not run tests or coverage:
- Distinctive: line 83
do not claim verification ran,
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Test Guard
Do not complete a code-changing task without considering tests and coverage.
Trigger
Apply automatically whenever executable or observable behavior changes.
This includes:
- features,
- bug fixes,
- refactors,
- API changes,
- code deletion,
- behavior-preserving rewrites.
Do not wait for the user to mention tests or coverage.
Skip only changes that cannot affect behavior, such as documentation, comments, or formatting.
Core rule
Before completion, determine:
- What behavior changed or could regress?
- Do existing tests cover it?
- Are new or updated tests required?
- Is coverage still at or above 80%?
- What verification actually ran?
If a meaningful test is required, add it.
Test discipline
Prefer tests that:
- verify observable behavior,
- protect the changed or fixed behavior,
- cover relevant branches and failure paths,
- follow existing repository patterns,
- survive harmless implementation refactors.
Do not:
- add meaningless tests only to increase coverage,
- duplicate existing tests without reason,
- test implementation details without behavioral value,
- introduce a new testing framework or dependency unless required.
Coverage
Maintain test coverage at or above 80% for code changes.
- Do not consider the task complete if coverage drops below 80%.
- Preserve or improve coverage when it is already above 80%.
- Use the repository's existing coverage tooling and calculation as the source of truth.
- Do not lower, bypass, or game coverage thresholds.
- Do not chase coverage numbers with low-value tests.
Refactors
For behavior-preserving refactors, existing tests may be sufficient.
Add new tests only when touched behavior is insufficiently protected or a concrete regression risk is uncovered.
Verification
Run the narrowest relevant verification allowed by repository and user instructions.
If the agent must not run tests or coverage:
- still add or update required tests,
- do not claim verification ran,
- provide the exact command the user should run.
Completion
A code-changing task is complete only when:
- changed behavior is meaningfully covered, or there is a concrete reason no test is needed,
- coverage is at or above 80%,
- unrelated test work was not added,
- verification status is stated honestly.
Compilation alone is not sufficient verification.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

