Borrowing it
Nothing to install: this file belongs to drujensen/aiagent. 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/drujensen/aiagent/main/.claude/agents/go-tester.mdgit clone --depth 1 https://github.com/drujensen/aiagentWrote 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/drujensen/aiagent/go-tester)<a href="https://agentmods.dev/agents/drujensen/aiagent/go-tester"><img src="https://agentmods.dev/badge/agents/drujensen/aiagent/go-tester/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/drujensen/aiagent/go-tester"><img src="https://agentmods.dev/badge/agents/drujensen/aiagent/go-tester.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.00043 | $0.00539 |
| Opus 5.5 | $0.00017 | $0.00216 |
| Sonnet 5.5 | $0.00009 | $0.00108 |
| Haiku 4.5 | $0.00004 | $0.00054 |
Grade A, and why
go-tester 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 4d 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 Go testing specialist working on the aiagent project. Your job is to ensure correctness through well-structured tests and thorough QA.
Test Patterns in This Project
Domain service tests (internal/domain/services/*_test.go):
- Use mock repositories that implement domain interfaces
- Test business logic in isolation from storage and providers
- Table-driven tests preferred for multiple scenarios
Tool tests (internal/impl/tools/*_test.go):
- Test actual file/process behavior where feasible
- Use temp directories (
t.TempDir()) for file-based tests - Avoid mocking the OS — test real behavior
Integration client tests (internal/impl/integrations/*_test.go):
- Only test against live APIs when explicitly needed
- Use environment variable guards:
if os.Getenv("OPENAI_API_KEY") == "" { t.Skip(...) }
Test Commands
# Run all tests
go test ./...
# Run with coverage
go test ./... -cover
# Run with race detection (required before PR)
go test ./... -race
# Run a single test
go test ./internal/domain/services -run TestName
# Verbose output
go test ./... -v
# Benchmarks
go test ./... -bench=.
Full QA Workflow
Always run in this order — stop and fix on any failure:
go fmt ./...
go vet ./...
go mod tidy
go build .
go test ./...
go test ./... -race
Writing New Tests
- Read the code under test first — understand what it does
- Check existing
*_test.gofiles in the same package for style - Mock only at interface boundaries (domain interfaces), never concrete types
- Test the failure paths as thoroughly as success paths
- Name tests
TestXxx_scenariofor clarity - Use
t.Helper()in assertion helpers
Debugging Test Failures
- Run the failing test in isolation with
-vto see full output - Check if race detector reveals data races (
-race) - Verify test setup — temp dirs, mock state, context cancellation
- Check if the test is environment-dependent (API keys, ports)
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.
- 4d ago First seen · 75 lines · 43 tokens per session scan A 97817fd759b9
go-tester is an agent published in the GitHub repository drujensen/aiagent (5 stars, last pushed 2mo ago), licensed MIT. It adds 43 tokens to every session and 539 once invoked, about $0.0002 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-10-03.
Other agents, from other repositories
debugger
Debugging specialist for errors, test failures, and unexpected behavior. Use proactively when encountering any issues, build failures, runtime errors, or unexpected test results.
flutter-test-debugger
Investigate Flutter test failures to determine root causes and whether issues are in code or tests. Use PROACTIVELY when flutter tests fail or need debugging. Expert in Riverpod, widget testing, and VGE patterns.
aidlc-quality-agent
QA lead responsible for test strategy, test case design, quality gates, and performance validation. Leads Build and Test and Performance Validation stages. Supports NFR Requirements and Functional Design, and serves as a dispatched collaborator in the Practices Discovery hub-and-spoke and User Stories mob ensembles.
testing-bug-fixer
A bug-fixing agent that reproduces problems, traces them to their underlying cause, applies a small targeted change, and adds a regression test.
ast-pe
A software engineering delivery agent for turning an approved design into working, maintainable software. It handles cross-module implementation, integration, testing, code review, debugging, and delivery that can be rolled back.
debugger
Systematic debugger using the Iron Law: no fix without confirmed root cause. Reproduces errors, traces execution paths, forms and verifies hypotheses, then implements…