Test Guard
Test Guard is an agent skill (a SKILL.md file) from amElnagdy/guard-skills. Review generated or changed test code against universal testing rules before it ships. It works with Claude Code, Codex, Cursor and OpenCode and has 1,260 GitHub stars across a repository of 2 listed skills.
github.com/amElnagdy/guard-skills/skills/test-guard (opens in a new tab)
- Multi-skill repo
- Testing & QA
- Maintained
Add this skill
Claude
Claude Code loads skills from ~/.claude/skills/ (all projects) or .claude/skills/ (one project):
git clone --depth 1 https://github.com/amElnagdy/guard-skills.git
cp -r guard-skills/skills/test-guard ~/.claude/skills/test-guard # personal, or .claude/skills in a projectIn the Claude apps, zip the test-guard folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).
ChatGPT / Codex
Codex reads skills from .agents/skills/ in a repo or ~/.agents/skills/ for every project:
git clone --depth 1 https://github.com/amElnagdy/guard-skills.git
cp -r guard-skills/skills/test-guard .agents/skills/test-guard # repo; ~/.agents/skills for all projectsStandalone skills also load in the ChatGPT desktop app.
Cursor
Cursor loads skills from .cursor/skills/ (or ~/.cursor/skills/) and also reads .claude/skills/:
git clone --depth 1 https://github.com/amElnagdy/guard-skills.git
cp -r guard-skills/skills/test-guard .cursor/skills/test-guard # project; ~/.cursor/skills for all projectsSource (checked Oct 7, 2026): code.claude.com/docs/en/skills (opens in a new tab), support.claude.com/en/articles/12512180-using-skills-in-claude (opens in a new tab), learn.chatgpt.com/docs/build-skills (opens in a new tab), cursor.com/docs/context/skills (opens in a new tab)
What this skill does
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.
When it triggers
- Use for pytest (test.
- USE for production or implementation code review (use clean-code-guard), CI or test-runner configuration, running or debugging tests, or general architecture discussion.
More skills in amElnagdy/guard-skills
2 skills are listed from this repository.
Similar skills
More testing & qa skills
Systematic Debugging
obra/superpowers
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
Testing & QAShellTest Driven Development
obra/superpowers
Use when implementing any feature or bugfix, before writing implementation code.
Testing & QAShellVerification Before Completion
obra/superpowers
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims…
Testing & QAShellFinishing A Development Branch
obra/superpowers
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work.
Testing & QAShellDiagnosing Superpowers
obra/superpowers
Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so…
Testing & QAShellTDD
mattpocock/skills
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Testing & QAShell
What is the Test Guard skill?
Test Guard is an agent skill (a SKILL.md file) from amElnagdy/guard-skills. Review generated or changed test code against universal testing rules before it ships. It works with Claude Code, Codex, Cursor and OpenCode and has 1,260 GitHub stars across a repository of 2 listed skills. Its SKILL.md lives at github.com/amElnagdy/guard-skills/skills/test-guard.
How do I install the Test Guard skill?
Copy the test-guard folder (the one containing SKILL.md) into ~/.claude/skills/ for Claude Code, .agents/skills/ for Codex or .cursor/skills/ for Cursor. The agent picks it up automatically when a task matches its description.
Is the Test Guard skill free?
Yes. The repository is open source under the MIT license.
Is Test Guard maintained?
The repository's most recent commit was on Jul 4, 2026. appsgit only lists skills from repositories with a commit in the last six months.