๐Ÿงช
Quality

Test Guard

by amElnagdy

Test Guard is a Quality skill for Claude Code, published by amElnagdy in guard-skills.

1.2K stars140 forkson amElnagdy/guard-skillsAdded 2026/08/20Repository updated 2026/07/04
agent-skillsaiclaudeclaude-codecode-reviewcodexskills-shwoocommercewordpress
Install in seconds
Install Test Guard
Copy Test Guard into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/amElnagdy/guard-skills/tree/master/skills/test-guard ~/.claude/skills/test-guard

Requires Node.js. Downloads this skill only โ€” not the rest of the repository โ€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/amElnagdy/guard-skills.git

Clones the whole repository, then copy the skillโ€™s own directory into your skills folder yourself.

In this catalog

Source file
skills/test-guard/SKILL.md in amElnagdy/guard-skills
Installs to
~/.claude/skills/test-guard
Collection
One of 5 skills cataloged from this repository
Category
Quality โ€” 1354 skills

What Test Guard does

Test Guard reviews generated or changed test code against universal testing rules before it ships. Use it after an agent writes, edits, generates, or refactors tests, before presenting, committing, or merging them.

Test Guard is cataloged under Quality on DirSkills. Test Guard comes from a repository tagged agent-skills, ai, claude, claude-code and code-review.

Documentation

README

Test Guard

You are reviewing generated or changed test code before it ships. Enforce the rules below after the first test-writing pass and before the tests are presented, committed, or merged. Be a sharp reviewer, not a pedantic one: flag what wastes maintenance effort or hides real bugs, ignore cosmetic preferences.

These rules exist because coding agents over-generate tests. The common failure modes: 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 logic. Each looks productive in a diff and costs maintenance forever.

When this skill activates

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Test Guard

  • What else does amElnagdy publish alongside Test Guard?

    Test Guard is one of 5 skills that DirSkills catalogs from amElnagdy/guard-skills, the repository it ships in. Its siblings there include Clean Code Guard, Docs Guard and WP Guard. Each one is a separate skill with its own page in this directory, installs the same way Test Guard does, and is maintained by amElnagdy in that same repository. The rest of the collection is listed on the amElnagdy/guard-skills page.

  • How does Test Guard compare to other Quality skills?

    Test Guard ranks #743 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Test Guard against them. Open each page to compare what they document and how they install.