go-tester

go-tester is an agent for Claude Code from sergeyklay/.agents. It costs 154 tokens per session (2,761 once invoked), scanned A, original, Apache-2.0.

A Go testing agent that writes concise tests with Go's standard testing tools, including table-driven tests, where one test structure covers many input cases.

In plain words
What is it for?
Use it to test Go packages and modules, add regression tests for bugs, verify implementation changes, and test HTTP adapters, errors, fixtures, integrations, or interface behaviour.
Why use it?
It helps catch regressions—new bugs caused by later code changes—without adding tests merely to increase coverage numbers.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions CLAUDE.md; mentions subagents; installed under .agents/ (shared by several agents).

Good fit Use it to test Go packages and modules, add regression tests for bugs, verify implementation changes, and test HTTP adapters, errors, fixtures, integrations, or interface behaviour.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sergeyklay/.agents/go-tester
Install

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.

Clone the repo
git clone --depth 1 https://github.com/sergeyklay/.agents

Made for: Claude Code.

Wrote 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.

agentmods badge for go-tester

README.md
[![agentmods](https://agentmods.dev/badge/agents/sergeyklay/.agents/go-tester/github.svg)](https://agentmods.dev/agents/sergeyklay/.agents/go-tester)
Your own site
<a href="https://agentmods.dev/agents/sergeyklay/.agents/go-tester"><img src="https://agentmods.dev/badge/agents/sergeyklay/.agents/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.

agentmods 80×15 button for go-tester

Your own site · 80×15
<a href="https://agentmods.dev/agents/sergeyklay/.agents/go-tester"><img src="https://agentmods.dev/badge/agents/sergeyklay/.agents/go-tester.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 154 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,761 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00154 $0.02761
Opus 5 $0.00077 $0.01380
Sonnet 5 $0.00031 $0.00552
Haiku 4.5 $0.00015 $0.00276

Measured 5d ago against content hash 6f10e8b25634, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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 5d 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.

.agents/agents/go-tester.md · 131 lines

How it starts

The opening of the file, as written. The whole thing — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Role

You are the Lead Go QA Engineer of a Fortune 500 tech company, operating as the Tester Agent in a multi-agent pipeline. Your goal is to write concise, resilient, and idiomatic Go tests using the stdlib testing package with table-driven patterns, strictly following the implementation summary or testing brief provided in the input.

You specialize in table-driven tests, subtests with t.Parallel(), helpers with t.Helper(), error assertions via errors.As/errors.Is, testdata fixture loading, httptest for HTTP adapters, mock/fake/spy patterns, env-gated integration tests, and adapter conformance. You write tests that catch regressions, not tests that inflate line counts.

Skill Requirement

You MUST load and follow the test-go skill before writing any test code. The skill contains the project's canonical test patterns: table-driven test structure, subtests with t.Parallel(), helper conventions, error-assertion rules, fixture loading from testdata/, httptest patterns, env-gated integration tests, mock/fake/spy patterns, adapter conformance tests, and the validation checklist. All generated tests must conform to the skill. Do not write tests without first loading this skill.

Scope Boundary

Your goal is to write tests that verify the implementation strictly following the testing brief or implementation summary provided in the input. You produce exactly three kinds of output:

  1. New *_test.go files - one test file per source file, co-located with the source
  2. New or updated testdata/ fixtures - for any test data needed to support the tests
  3. Testing summary - what you covered, what you skipped and why, and any gaps the next agent should know about

If a test fails because of a production-code defect, you do NOT fix the production code. You report the defect in your testing summary with file paths and short descriptions for the implementation subagent to address later. Your scope is strictly test code.

Pre-flight check - apply before every file operation:

Read the full file on GitHub · 131 lines

Changes

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.

  1. 5d ago Changed · +1 lines 6f10e8b25634
  2. 9d ago First seen · 130 lines · 154 tokens per session scan A f27bdb72aefa

Subscribe to this mod's changes

go-tester is an agent published in the GitHub repository sergeyklay/.agents (5 stars, last pushed today), licensed Apache-2.0. It adds 154 tokens to every session and 2,761 once invoked, about $0.0008 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-08-31.

Related

Other agents, from other repositories

hex-library-researcher

Researches Elixir libraries on hex.pm. Use when evaluating libraries for a feature, checking alternatives, or verifying library quality and compatibility.

oliver-kriska/claude-elixir-phoenix · 33 tokens

go-concurrency-reviewer

Go concurrency safety reviewer covering race conditions, deadlocks, goroutine leaks, mutex misuse, channel lifecycle, context propagation, and graceful shutdown. Use when Go code changes contain go func, channels, sync primitives (Mutex, RWMutex, WaitGroup), errgroup, singleflight, select statements, or context…

johnqtcg/awesome-skills · 85 tokens

go-error-reviewer

Go error handling and correctness reviewer covering ignored errors, missing error wrapping, panic misuse, nil safety, resource lifecycle (sql.Rows, resp.Body, file handles), transaction rollback patterns, and failure-path integrity. Use when Go code changes contain error returns, panic calls, sql.Rows, tx.Begin, HTTP…

johnqtcg/awesome-skills · 97 tokens

go-logic-reviewer

Go business logic and correctness reviewer covering off-by-one errors, boundary conditions, state machine transitions, data flow integrity, return value contracts, nil/zero-value assumptions, and algorithm correctness. Use when Go code changes modify conditional logic, loops, state transitions, data processing…

johnqtcg/awesome-skills · 81 tokens

atlas

End-to-end and acceptance test execution.

parcadei/Continuous-Claude-v3 · 9 tokens

go-skill-extractor

Dispatch when a Go codebase has accumulated repeated patterns (idiomatic or anti-) worth capturing as a new gophers skill. Walks the module, surfaces repeated structural shapes (3+ occurrences in 2+ packages), confirms each candidate is not already covered by an existing skill, and emits a draft SKILL.md proposal that…

muratmirgun/gophers · 106 tokens