plugins/go-expert/skills/go-testing-quality/SKILL.md
Write idiomatic Go tests and measure quality — table-driven tests, subtests with t.Run, testify assertions/mocks, native fuzzing, benchmarks, the race detector, coverage, and pprof/PGO profiling. Use when writing or reviewing Go tests, adding coverage, benchmarking, or profiling a Go program. Do NOT use for CI pipeline wiring — golangci-lint, govulncheck (go-tooling-security) — or non-Go test suites.
npx skillsauth add fusengine/agents go-testing-qualityInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Idiomatic, 2026-current testing and quality practices for Go, built on the standard
testing package with testify where it adds clarity.
Use when:
testify (assert / require / mock)go test -cover) or chasing race conditions (-race)Do NOT use for:
go-architecturefuse-solid:solid-gofuse-security| 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 |
t.Run(tc.name, …) for isolation and readable output.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/testifyfunc FuzzXxx(f *testing.F)), and finds
edge cases table tests miss.-race in CI. The race detector catches data races that are
otherwise nondeterministic and unreproducible.go test -bench) + pprof profiles
guide real changes; PGO feeds a production profile back into the compiler.go test ./... -race -cover and inspect gaps.Overlaps with github.com/samber/cc-skills-golang (community Go skills) — this
skill owns testing and quality tooling; architecture/structure lives in
go-architecture. Cross-referenced for boundaries only, not copied.
testing
Copy self-audit and ban-lists — filler verbs/hype adjectives, slop placeholder names, fake-precise numbers, Title Case headlines, humor in error copy ('Oops!'), em-dash crutch, one copy register per page.
development
Logged-in web apps — dashboards, auth flows, settings, onboarding, data tables, command palettes, modals, toasts. Register `product`: density and glance-speed over marketing polish, no hero/CTA-tricks, every data surface covers empty/loading/error explicitly, tables and dataviz follow preattentive-processing rules.
development
Marketing sites, landing pages, campaign pages — register `brand` (design IS the product). Structure comes from the register's POV + a macrostructure pick, never from copying an inspiration site's section flow. Hero discipline, deviated section order, asymmetric grids, and a silhouette lookalike-test gate before ship.
development
Token-strategy core — OKLCH color rules, neutral tinting, accent-commitment levels, type scale, 8pt spacing grid, touch targets, and the canonical output format of design-system.md (the file the harness gates on). This is routing step 1 of design-method/SKILL.md — read it before design-web/design-webapp/design-ios/design-android, before picking or auditing a single color/type/spacing value.