go-testing

go-testing is a skill for Claude Code, Codex from clubpay/ronykit. It costs 60 tokens per session (921 once invoked), scanned A, original, BSD-3-Clause.

A set of practices for writing Go tests, including tests that check application logic and tests that check real database or cache behavior.

In plain words
What is it for?
Use it when adding or fixing Go code, writing table-based tests, fuzz tests, benchmarks, repository integration tests, or application unit tests.
Why use it?
It helps catch broken behavior, missing error cases, flaky tests, and problems that only appear when code interacts with real services.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/clubpay/ronykit/go-testing
Any agent
npx skills add clubpay/ronykit --skill go-testing
Clone the repo
git clone --depth 1 https://github.com/clubpay/ronykit

Made for: Claude Code, Codex.

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-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/clubpay/ronykit/go-testing.svg)](https://agentmods.dev/skills/clubpay/ronykit/go-testing)
Your own site
<a href="https://agentmods.dev/skills/clubpay/ronykit/go-testing"><img src="https://agentmods.dev/badge/skills/clubpay/ronykit/go-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 921 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00060 $0.00921
Opus 5 $0.00030 $0.00461
Sonnet 5 $0.00012 $0.00184
Haiku 4.5 $0.00006 $0.00092

Measured 4d ago against content hash b1aa8c5961c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

go-testing 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.

ronyup/internal/skeleton/skills/go-testing/SKILL.md · 113 lines

How it starts

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

Go Testing

Tests are documentation that runs. Make them readable, deterministic, and fast.

Repo integration tests (mandatory — enforced by verify.sh)

Every method on every repository port in internal/repo/port.go must have an integration test in internal/repo/integration_test/ using x/testkit against real Gnomock Postgres/Redis — not mocks.

Per method, cover:

  • Happy path — creates/reads/updates as intended
  • Not found — missing row / empty result
  • Conflict — unique violation or constraint error

Read MCP architecture/integration-tests. Scaffold provides setup_test.go; add *_test.go files per domain. Run go test ./internal/repo/integration_test/... and confirm green before treating the repo as done.

App unit tests (mandatory — enforced by verify.sh)

Every exported method on internal/app.App needs a unit test in internal/app/*_test.go. Test business rules with injected fakes/mocks at the port boundary — not integration tests.

When to use

  • Adding tests for new Go behavior or covering a bug fix.
  • Designing table-driven tests, subtests, fuzz tests, or benchmarks.
  • Diagnosing flaky, slow, or order-dependent tests.

Conventions

  • Table-driven + subtests. One t.Run(tc.name, ...) per case so failures point at the exact scenario.
  • Arrange / Act / Assert. Keep the three sections visually distinct.
  • Deterministic. No real clocks, randomness, network, or sleeps. Inject time/IDs; use context.Context with deadlines.
  • Parallel where safe. t.Parallel() for independent cases; capture loop variables (not needed in Go 1.22+, but be explicit if unsure).
  • Helpers call t.Helper() so failures report the caller's line.
  • Golden files for large outputs; gate updates behind a -update flag.

Framework

Use standard testing with github.com/stretchr/testify (assert / require). Prefer table-driven tests and t.Run subtests. Match surrounding package style; do not introduce alternate assertion libraries.

Read the full file on GitHub · 113 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. 4d ago First seen · 113 lines · 60 tokens per session scan A b1aa8c5961c1

Subscribe to this mod's changes

go-testing is a skill published in the GitHub repository clubpay/ronykit (38 stars, last pushed 3d ago), licensed BSD-3-Clause. It adds 60 tokens to every session and 921 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-08-30.