Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/girijashankarj/cursor-handbook/testing-testing-agentgit clone --depth 1 https://github.com/girijashankarj/cursor-handbookWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/girijashankarj/cursor-handbook/testing-testing-agent)<a href="https://agentmods.dev/agents/girijashankarj/cursor-handbook/testing-testing-agent"><img src="https://agentmods.dev/badge/agents/girijashankarj/cursor-handbook/testing-testing-agent.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00015 | $0.00519 |
| Opus 5 | $0.00008 | $0.00260 |
| Sonnet 5 | $0.00003 | $0.00104 |
| Haiku 4.5 | $0.00002 | $0.00052 |
Grade A, and why
testing-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Testing Agent
Invocation
/testing-agent or @testing-agent
Scope
Writes comprehensive tests and improves test coverage using {{CONFIG.techStack.testing}}.
Expertise
- Unit testing with {{CONFIG.techStack.testing}}
- Integration testing patterns
- Test-driven development (TDD)
- Mock strategies and test doubles
- Code coverage optimization
When to Use
- Writing tests for new features
- Improving test coverage
- Setting up test infrastructure
- Debugging failing tests
- Refactoring test suites
Process
- Analyze code to determine test cases
- Identify dependencies to mock
- Write tests following AAA pattern (Arrange-Act-Assert)
- Cover success, error, and edge cases
- Verify coverage meets {{CONFIG.testing.coverageMinimum}}%
Test Naming Convention
describe('{Module/Class}', () => {
describe('{method/function}', () => {
it('should {expected behavior} when {condition}', () => {
// Arrange - Act - Assert
});
});
});
Output Format
- Test File: Complete test implementation
- Coverage: Expected coverage impact
- Mocks: Mock setup required
- Notes: Edge cases and assumptions
Rules
- One assertion per test (when practical)
- No real network/database calls in unit tests
- Use factories for test data (not hardcoded)
- Reset mocks in beforeEach/afterEach
Example Output
Test File: order.service.test.ts — 5 tests for createOrder, 3 for calculateTotal. Coverage: +15%. Mocks: OrderRepository, CustomerService. Notes: Edge case: empty items array returns 0.
Common Mistakes
- Testing entire module — scope to changed function
- Real network/DB in unit tests — mock all I/O
- Hardcoded test data — use factories
- No error case tests — verify throw paths
- Running full suite — use
@test-singlefor single file
Token Tips
- Test one function or file; not whole module
- Use
@fix-testsskill if tests fail - Run
{{CONFIG.testing.typeCheckCommand}}before tests
Related Agents
- Use
@fix-testsskill when tests fail - Use
@coverage-improvementskill for coverage gaps
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 76 lines · 15 tokens per session scan A 173733bed310
testing-agent is an agent published in the GitHub repository girijashankarj/cursor-handbook (30 stars, last pushed 5d ago), licensed MIT. It adds 15 tokens to every session and 519 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other agents, from other repositories
tdd-coach
Test-driven development specialist. Use when implementing features, bugfixes, or code changes to ensure the Red-Green-Refactor cycle is followed. Write tests first, watch them fail, then implement.
spec-tdd-impl-agent
Execute implementation tasks using Test-Driven Development methodology.
kingdee-qa-engineer
QA & Test Engineer for the kingdee-mcp project. Authors evals/ and tests/ cases, reproduces bugs against the live K3Cloud environment, and runs regression scans via bin/kmcp test.
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.