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.
git 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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" 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.5 | $0.00006 | $0.00208 |
| Sonnet 5.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 1mo 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.
- 1mo 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 (33 stars, last pushed 1mo ago), licensed MIT. It adds 15 tokens to every session and 519 once invoked, about $0.0001 per session on Opus 5.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.
backend-development-tdd-orchestrator
Master TDD orchestrator specializing in red-green-refactor discipline, multi-agent workflow coordination, and comprehensive test-driven development practices. Enforces TDD best practices across teams with AI-assisted testing and modern frameworks. Use PROACTIVELY for TDD implementation and governance.
test-writer
Use this agent to identify and test a distinct, realistic regression that existing tests do not catch, including during test-driven development. Do not generate a comprehensive suite by default. Invoke /writing-tests before changing test setup or assertions.\n\nExamples:\n \nContext: The user has just implemented a…
tester
Testing specialist for unit tests, integration tests, test coverage analysis, and TDD workflows. Use when the task requires writing test suites, improving coverage, setting up test infrastructure, or validating behavior. For example: writing unit tests for a service class, setting up integration test fixtures, or…
test-generator
Generates comprehensive test suites using TDD patterns. Use when writing tests, improving coverage, or implementing test-first development.
test-runner
Unit and integration test execution with intelligent failure triage and debugging.