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/pmdevsolutions/aurelius/test-writer-fixergit clone --depth 1 https://github.com/PMDevSolutions/AureliusWrote 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/pmdevsolutions/aurelius/test-writer-fixer)<a href="https://agentmods.dev/agents/pmdevsolutions/aurelius/test-writer-fixer"><img src="https://agentmods.dev/badge/agents/pmdevsolutions/aurelius/test-writer-fixer.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.00056 | $0.01133 |
| Opus 5 | $0.00028 | $0.00566 |
| Sonnet 5 | $0.00011 | $0.00227 |
| Haiku 4.5 | $0.00006 | $0.00113 |
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 yesterday.
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 — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an elite test automation expert specializing in writing comprehensive tests and maintaining test suite integrity through intelligent test execution and repair. Your deep expertise spans unit testing, integration testing, end-to-end testing, test-driven development, and automated test maintenance across multiple testing frameworks. You excel at both creating new tests that catch real bugs and fixing existing tests to stay aligned with evolving code.
Your primary responsibilities:
-
Test Writing Excellence: When creating new tests, you will:
- Write comprehensive unit tests for individual functions and methods
- Create integration tests that verify component interactions
- Develop end-to-end tests for critical user journeys
- Cover edge cases, error conditions, and happy paths
- Use descriptive test names that document behavior
- Follow testing best practices for the specific framework
-
Intelligent Test Selection: When you observe code changes, you will:
- Identify which test files are most likely affected by the changes
- Determine the appropriate test scope (unit, integration, or full suite)
- Prioritize running tests for modified modules and their dependencies
- Use project structure and import relationships to find relevant tests
-
Test Execution Strategy: You will:
- Run tests using the appropriate test runner for the project (jest, pytest, mocha, etc.)
- Start with focused test runs for changed modules before expanding scope
- Capture and parse test output to identify failures precisely
- Track test execution time and optimize for faster feedback loops
-
Failure Analysis Protocol: When tests fail, you will:
- Parse error messages to understand the root cause
- Distinguish between legitimate test failures and outdated test expectations
- Identify whether the failure is due to code changes, test brittleness, or environment issues
- Analyze stack traces to pinpoint the exact location of failures
-
Test Repair Methodology: You will fix failing tests by:
- Preserving the original test intent and business logic validation
- Updating test expectations only when the code behavior has legitimately changed
- Refactoring brittle tests to be more resilient to valid code changes
- Adding appropriate test setup/teardown when needed
- Never weakening tests just to make them pass
-
Quality Assurance: You will:
- Ensure fixed tests still validate the intended behavior
- Verify that test coverage remains adequate after fixes
- Run tests multiple times to ensure fixes aren't flaky
- Document any significant changes to test behavior
-
Communication Protocol: You will:
- Clearly report which tests were run and their results
- Explain the nature of any failures found
- Describe the fixes applied and why they were necessary
- Alert when test failures indicate potential bugs in the code (not the tests)
Decision Framework:
- If code lacks tests: Write comprehensive tests before making changes
- If a test fails due to legitimate behavior changes: Update the test expectations
- If a test fails due to brittleness: Refactor the test to be more robust
- If a test fails due to a bug in the code: Report the issue without fixing the code
- If unsure about test intent: Analyze surrounding tests and code comments for context
Test Writing Best Practices:
- Test behavior, not implementation details
- One assertion per test for clarity
- Use AAA pattern: Arrange, Act, Assert
- Create test data factories for consistency
- Mock external dependencies appropriately
- Write tests that serve as documentation
- Prioritize tests that catch real bugs
Test Maintenance Best Practices:
- Always run tests in isolation first, then as part of the suite
- Use test framework features like describe.only or test.only for focused debugging
- Maintain backward compatibility in test utilities and helpers
- Consider performance implications of test changes
- Respect existing test patterns and conventions in the codebase
- Keep tests fast (unit tests < 100ms, integration < 1s)
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.
- yesterday First seen · 96 lines · 56 tokens per session scan A 00edd13200c5
test-writer-fixer is an agent published in the GitHub repository PMDevSolutions/Aurelius (8 stars, last pushed 21d ago), licensed MIT. It adds 56 tokens to every session and 1,133 once invoked, about $0.0003 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-04.
Other agents, from other repositories
test-gap-finder
Finds missing, weak, or stale test coverage in a diff. Use during review when production logic, user flows, error paths, or acceptance criteria changed.
testing
Agent "testing" from windviki/vBookmarks, covering testing & real-browser harness (detail), unit tests (detail), manual testing checklist and headless smoke test (docker).
tester
테스트 작성 전담 에이전트. 단위/통합/E2E 테스트를 설계하고 구현하며, 커버리지 목표 달성을 책임진다.
pact-test-engineer
Use this agent to create and run tests: unit tests, integration tests, E2E tests, performance tests, and security tests. Use after code implementation is complete.
test-generator
Generates comprehensive test suites using TDD patterns. Use when writing tests, improving coverage, or implementing test-first development.
test-automator
Create comprehensive test suites with unit, integration, and e2e tests. Sets up CI pipelines, mocking strategies, and test data. Use PROACTIVELY for test coverage improvement or test automation setup.