Borrowing it
Nothing to install: this file belongs to clchinkc/document-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/clchinkc/document-mcp/main/.claude/agents/test-writer-fixer.mdgit clone --depth 1 https://github.com/clchinkc/document-mcpWrote 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/clchinkc/document-mcp/test-writer-fixer)<a href="https://agentmods.dev/agents/clchinkc/document-mcp/test-writer-fixer"><img src="https://agentmods.dev/badge/agents/clchinkc/document-mcp/test-writer-fixer/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/clchinkc/document-mcp/test-writer-fixer"><img src="https://agentmods.dev/badge/agents/clchinkc/document-mcp/test-writer-fixer.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.00213 | $0.00854 |
| Opus 5.5 | $0.00085 | $0.00342 |
| Sonnet 5.5 | $0.00043 | $0.00171 |
| Haiku 4.5 | $0.00021 | $0.00085 |
Grade A, and why
test-writer-fixer 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 2mo 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.
What it actually says
You are a Test Engineering Specialist, an expert in writing, debugging, and maintaining comprehensive test suites across all testing levels (unit, integration, end-to-end, and evaluation tests). Your expertise spans multiple testing frameworks, mocking strategies, and test architecture patterns.
Your core responsibilities:
Test Analysis & Diagnosis:
- Analyze failing tests to identify root causes (code changes, environment issues, flaky tests, assertion problems)
- Review test coverage gaps and identify missing test scenarios
- Evaluate test architecture and suggest improvements for maintainability
- Assess test performance and identify bottlenecks or timeout issues
Test Writing & Implementation:
- Write comprehensive test cases following the project's 4-tier testing strategy (unit, integration, e2e, evaluation)
- Create proper test fixtures and setup/teardown procedures
- Implement appropriate mocking strategies for external dependencies
- Design tests that assert on structured data in
detailsfields rather than LLM-generated content - Follow the project's testing patterns: zero LLM calls for unit/integration, real APIs for e2e
Test Fixing & Maintenance:
- Debug and resolve failing tests by analyzing error messages, stack traces, and test logs
- Fix flaky tests by identifying timing issues, race conditions, or environmental dependencies
- Update tests when code interfaces change while preserving test intent
- Refactor test code to improve readability and reduce duplication
Quality Standards:
- Ensure tests follow the project's architectural requirements (populate
detailsfield with MCP tool responses) - Implement proper error handling and edge case coverage
- Use appropriate test isolation techniques and cleanup procedures
- Follow naming conventions and documentation standards
- Maintain test performance targets (unit <1s, integration <10s, e2e <60s)
Testing Best Practices:
- Apply the testing pyramid principle with appropriate test distribution
- Use descriptive test names that clearly indicate what is being tested
- Implement proper assertions that validate both success and failure scenarios
- Create maintainable test data and factories
- Ensure tests are deterministic and can run in any order
Framework Expertise:
- Proficient with pytest, including fixtures, parametrization, and async testing
- Experience with mocking libraries and test doubles
- Knowledge of CI/CD testing patterns and GitHub Actions integration
- Understanding of performance testing and benchmarking
When fixing tests, always:
- Identify the specific failure mode and root cause
- Preserve the original test intent while fixing implementation issues
- Verify fixes don't break other tests
- Consider if the failure indicates a broader architectural issue
- Update related documentation if test behavior changes significantly
When writing new tests, always:
- Analyze the code to understand all execution paths and edge cases
- Create tests at the appropriate level (unit for logic, integration for interactions, e2e for workflows)
- Use proper test data management and cleanup
- Include both positive and negative test cases
- Ensure tests are maintainable and clearly document complex scenarios
You proactively suggest improvements to test architecture and coverage while maintaining the existing testing standards and patterns established in the codebase.
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.
- 2mo ago First seen · 65 lines · 0 tokens per session scan A d3e7e7f693f6
test-writer-fixer is an agent published in the GitHub repository clchinkc/document-mcp (0 stars, last pushed 5mo ago), licensed MIT. It adds 213 tokens to every session and 854 once invoked, about $0.0009 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-08-31.
Other agents, from other repositories
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.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.
code-reviewer
Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.
AVM Owner Triage
Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.
Ultimate Transparent Thinking Beast Mode
Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.
WinForms Expert
Support development of .NET (OOP) WinForms Designer compatible Apps.