go-testing-quality

go-testing-quality is a skill for Claude Code from fusengine/agents. It costs 40 tokens per session (932 once invoked), scanned A, original, MIT.

A guide for testing Go programs with Go’s standard testing package. It covers unit tests, table-driven tests, subtests, mocks, fuzz tests, benchmarks, coverage, race detection, and profiling.

In plain words
What is it for?
Use it to write and review Go tests, add assertions or mocks, fuzz inputs, benchmark code, measure coverage, and profile performance.
Why use it?
It helps developers choose an appropriate test type and find defects, unsafe concurrent access, slow code, or gaps in test coverage.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the fuse-go plugin — 5 skills, 1 agent shipped together

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/fusengine/agents/go-testing-quality
Any agent
npx skills add fusengine/agents --skill go-testing-quality
Clone the repo
git clone --depth 1 https://github.com/fusengine/agents

Made for: Claude Code.

Or install fuse-go, the plugin that ships this one along with the rest of its 5 skills, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/fusengine/agents/go-testing-quality.svg)](https://agentmods.dev/skills/fusengine/agents/go-testing-quality)
Your own site
<a href="https://agentmods.dev/skills/fusengine/agents/go-testing-quality"><img src="https://agentmods.dev/badge/skills/fusengine/agents/go-testing-quality.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 932 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.1 $0.00040 $0.00932
Opus 5 $0.00020 $0.00466
Sonnet 5 $0.00008 $0.00186
Haiku 4.5 $0.00004 $0.00093

Measured 2d ago against content hash 10668323e4f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

go-testing-quality 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 2d 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.

plugins/go-expert/skills/go-testing-quality/SKILL.md · 81 lines

How it starts

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

Go Testing & Quality

Idiomatic, 2026-current testing and quality practices for Go, built on the standard testing package with testify where it adds clarity.

Use when:

  • Writing unit tests for Go code (table-driven, subtests)
  • Adding assertions or mocks with testify (assert / require / mock)
  • Writing fuzz tests, benchmarks, or example tests
  • Measuring coverage (go test -cover) or chasing race conditions (-race)
  • Profiling / optimizing with pprof or setting up PGO
  • Reviewing an existing Go test suite for quality gaps

Do NOT use for:

  • Project layout, routing, DB wiring, DI — use go-architecture
  • SOLID line-limit / interface enforcement — use fuse-solid:solid-go
  • Non-Go test suites (Pest, Vitest, Jest, cargo test) — use the matching expert
  • Security scanning / CVE audit — use fuse-security

Decision Map

Goal Load
Write the standard Go test (table-driven + subtests) table-driven.md
Assertions and mocks with testify testify-mocks.md
Fuzzing, benchmarks, example tests fuzzing-benchmarks.md
Coverage, race detector, pprof, PGO coverage-profiling.md
A complete, runnable test file to copy templates/table-test.md

Core Practices (2026)

  1. Table-driven tests are the idiom. Define a slice of cases, loop, and run each as a subtest with t.Run(tc.name, …) for isolation and readable output.
  2. testify is the de-facto assertion/mock standard. assert for soft checks, require to abort on failure, mock for hand-written mocks, suite for setup/teardown groups. It is maintained at v1 (no breaking v2). Source: https://pkg.go.dev/github.com/stretchr/testify
  3. Fuzzing is native since Go 1.18 (func FuzzXxx(f *testing.F)), and finds edge cases table tests miss.
  4. Always run -race in CI. The race detector catches data races that are otherwise nondeterministic and unreproducible.
  5. Measure before optimizing. Benchmarks (go test -bench) + pprof profiles guide real changes; PGO feeds a production profile back into the compiler.

Read the full file on GitHub · 81 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 81 lines · 40 tokens per session scan A 10668323e4f8

Subscribe to this mod's changes

go-testing-quality is a skill published in the GitHub repository fusengine/agents (25 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 932 once invoked, about $0.0002 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-03.

Related

Other skills, from other repositories

craft-pest

Testing Craft CMS 5 plugins and modules with Pest — test isolation, database safety, and the markhuot/craft-pest-core harness. ALWAYS load when writing, running, fixing, or reviewing tests for a Craft plugin or module, and whenever a suite touches a real Craft install. Covers why rollback is opt-in, tests/Pest.php +…

michtio/craftcms-claude-skills · 353 tokens

generate-tests

Generate unit tests for a .NET service following the coverage-kit conventions. Use when the user asks to 'generate tests', 'backfill tests', 'characterize this service', or 'add tests for' a target after coverage-init has run. Operates in characterization mode (freeze current behavior for existing code) or spec mode…

livlign/claude-skills · 179 tokens

go-testing

Use when writing or fixing Go tests — table-driven cases, parallel safety, helpers, fakes, fuzzing, deterministic time (testing/synctest), goroutine leak detection (goleak), HTTP handlers. Apply proactively when a function gets a new test or a test is flaky. Benchmark methodology: see go-benchmark.

muratmirgun/gophers · 70 tokens

go-test

When the user wants to design, implement, debug, or optimize Go tests using the standard testing package, testify, and related Go ecosystem libraries. Use when the user mentions "go test," "table-driven tests," "t.Run," "subtests," "testify," "require / assert," "go test -race," "go test -bench," "go test -fuzz,"…

aks-builds/quality-skills · 132 tokens

go-testing-with-testify

Write, review, or harden Go tests using stretchr/testify assert, require, mock, or suite. Use for assertion choice, test doubles, subtests, concurrency, and flake triage in an existing Go test setup. Use coding-guidance-go for production code or non-testify tests and tester-mindset for test strategy without concrete…

n-n-code/n-n-code-skills · 79 tokens

golang-test-review

Use when reviewing Go test code (new or changed test.go files, test harnesses, fixtures, or test tooling) for a Go-test-expert pass — behavior-over-surface, determinism, parallel-safety, build-tag correctness, and harness reuse. Complements the general code-reviewer with test-specific rigor.

mickeyyaya/evolve-loop · 70 tokens