# Test Guard (agent 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.

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.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/amElnagdy/guard-skills |
| Skill path | skills/test-guard/SKILL.md |
| Skill name | test-guard |
| GitHub stars | 1,260 |
| Installs on skills.sh | not listed |
| License | MIT |
| Skills in repo | 2 |
| Plugin marketplace | no |
| Official | no |
| Works with | Claude Code, Codex, Cursor, OpenCode |
| Category | Testing & QA |
| Last commit | Jul 4, 2026 |

## 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.

## Add this skill

### Claude Code

```sh
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 project
```

In the Claude apps, zip the skill folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).

### ChatGPT / Codex

```sh
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 projects
```

### Cursor

```sh
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 projects
```

Sources (checked 2026-10-07): https://code.claude.com/docs/en/skills, https://support.claude.com/en/articles/12512180-using-skills-in-claude, https://learn.chatgpt.com/docs/build-skills, https://cursor.com/docs/context/skills

---

Canonical page: https://appsgit.com/skills/amelnagdy-test-guard
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
