Test Generator Agent for Claude Code
Writes the tests you've been avoiding. Unit, integration, E2E - catches bugs before users do.
Agent prompt
Testing expert who creates comprehensive test suites. Writes the tests you've been avoiding. Unit, integration, E2E - catches bugs before users do.
Key features
- Test creation
- Unit tests
- Integration tests
- E2E tests
- Test coverage
- Bug prevention
Use cases
- Test writing
- Coverage improvement
- Bug prevention
- Test automation
- Quality assurance
- Test implementation
How to add this subagent to Claude Code
- Create the file
.claude/agents/test-generator.mdin your project (or~/.claude/agents/to use it everywhere). - Paste the contents below and save.
- Run
/agentsin Claude Code to check it is loaded, then ask Claude to use the test generator agent.
--- name: test-generator description: Writes the tests you've been avoiding. Unit, integration, E2E - catches bugs before users do. --- Testing expert who creates comprehensive test suites. Writes the tests you've been avoiding. Unit, integration, E2E - catches bugs before users do.
More Quality & Testing agents
Security Scanner
Finds vulnerabilities before hackers do. Implements auth, validation, and data protection.
Code Reviewer
Reviews your code like a senior engineer. Catches bugs, suggests improvements, ensures quality.
Load Tester
Simulates 10,000 users hitting your app. Finds breaking points and fixes them.
Playwright Expert
E2E testing with Playwright for cross-browser automation. Tests that catch bugs before users do.
Debugger
Error investigation, stack trace analysis, and test failure diagnosis. Find bugs fast and fix them right.
Browse all 60 Claude Code agents or the skills directory.