Go Helper
shepherdjerred/monorepo
Current Go development guidance for modules, toolchains, workspaces, testing, fuzzing, concurrency, profiling, security, and Go tooling.
A skill your agent uses when writing or running Go tests — table-driven cases, named subtests, parallel isolation, fakes instead of mock frameworks, coverage profiles, benchmarks, fuzzing, golden…
$ npx skills add ericrisco/rsc-harness --skill testing-go -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ericrisco/rsc-harness testing-go --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/testing-go .claude/skills/testing-go && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "testing-go" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/testing-go into .claude/skills/testing-go/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "testing-go", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ericrisco/rsc-harness/tree/main/skills/testing-goType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ericrisco/rsc-harness --skill testing-go -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ericrisco/rsc-harness testing-go --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/testing-go .agents/skills/testing-go && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "testing-go" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/testing-go into .agents/skills/testing-go/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "testing-go", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ericrisco/rsc-harness --skill testing-go -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ericrisco/rsc-harness testing-go --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/testing-go .cursor/skills/testing-go && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "testing-go" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/testing-go into .cursor/skills/testing-go/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "testing-go", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ericrisco/rsc-harness.git --path skills/testing-go--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ericrisco/rsc-harness --skill testing-go -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ericrisco/rsc-harness testing-go --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/testing-go .gemini/skills/testing-go && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "testing-go" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/testing-go into .gemini/skills/testing-go/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "testing-go", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ericrisco/rsc-harness testing-goInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ericrisco/rsc-harness --skill testing-go -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/testing-go .github/skills/testing-go && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "testing-go" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/testing-go into .github/skills/testing-go/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "testing-go", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ericrisco/rsc-harness --skill testing-go -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ericrisco/rsc-harness testing-go --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/testing-go .opencode/skills/testing-go && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "testing-go" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/testing-go into .opencode/skills/testing-go/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "testing-go", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
testing-goA skill your agent uses when writing or running Go tests — table-driven cases, named subtests, parallel isolation, fakes instead of mock frameworks, coverage profiles, benchmarks, fuzzing, golden…
Testing Go is an agent skill from ericrisco/rsc-harness. Use when writing or running Go tests — table-driven cases, named subtests, parallel isolation, fakes instead of mock frameworks, coverage profiles, benchmarks, fuzzing, golden files, and testing concurrent goroutines deterministically. NOT general Go code or modules (that is go), NOT pytest fixtures (that is testing-py), NOT browser user flows (that is e2e-testing).
Its SKILL.md is about 3.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `evals/README.md`, `evals/cases.yaml` and `references/coverage-and-benchmarks.md`).
It sits in Security, covering Async programming, UX design and End-to-end testing. It works with pytest. The repository describes itself as: Your agent invents things because it has no memory, and can't touch your database because it has no arms. rsc is the meta-harness that gives it both, plus the trade to know the… The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit e3d5b33. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Shell), which the agent can run.
Shell commands in SKILL.md call:
gogitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Testing Go loads about 3.7k tokens when it runs, and up to ~6.8k if it reads all its reference files. Until then it costs about 96 tokens; SKILL.md has 1,566 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from ericrisco/rsc-harness at commit e3d5b33, republished under its MIT licence (© ericrisco). 1,566 words, ~3,696 tokens.
.claude/skills/testing-go/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.You test behavior at the package boundary, not private internals. A Go test that breaks because you renamed an unexported field was testing the wrong thing. Target Go 1.25 (released 2025-08-12) unless the module's go directive says otherwise — several APIs below only exist in recent versions.
Default stack, in order of reach:
testing package. It is enough for ~90% of tests.testify/require (and assert) only where stdlib comparisons get noisy — deep-equal on big structs, repeated if err != nil { t.Fatal }. Not as a reflex.gomock for code you own.Run go test ./... early and often. Add -race for anything that touches a goroutine. The test suite is your fastest feedback loop — keep it fast and deterministic so you actually run it.
| Situation | Reach for |
|---|---|
| Pure logic, many input/output cases | Table-driven test + t.Run subtests |
An HTTP client or http.Handler | net/http/httptest (server or recorder) |
Goroutines, timers, timeouts, context deadlines | testing/synctest + -race |
| "Is it fast / did my change regress?" | testing.B.Loop + benchstat |
| "Does it crash or misbehave on weird input?" | func FuzzXxx(f *testing.F) |
| A dependency you own (DB, payment client, clock) | A hand-written interface fake |
If you find yourself reaching past the standard library for the first row, stop — table-driven tests need nothing else.
The canonical shape: a slice of anonymous structs with a name, run as named subtests.
func TestReverse(t *testing.T) {
tests := []struct {
name string
in string
want string
}{
{name: "empty", in: "", want: ""},
{name: "ascii", in: "abc", want: "cba"},
{name: "unicode", in: "héllo", want: "olléh"},
}
for _, tc := range tests {
t.Run(tc.name, func(t *testing.T) {
got := Reverse(tc.in)
if got != tc.want {
t.Errorf("Reverse(%q) = %q, want %q", tc.in, got, tc.want)
}
})
}
}t.Run(tc.name, ...) gives you go test -run TestReverse/unicode to target one case, and a readable failure path instead of "index 2".t.Errorf, not t.Fatalf, inside the loop unless the rest of the case is meaningless after the failure. Fatalf stops the whole subtest; Errorf lets the other cases still run.Bad — copy-pasted near-identical functions:
func TestAddOne(t *testing.T) { if Add(1) != 2 { t.Fail() } }
func TestAddTwo(t *testing.T) { if Add(2) != 3 { t.Fail() } }
func TestAddZero(t *testing.T) { if Add(0) != 1 { t.Fail() } }Good — one table, each case named, failures localized (see the TestReverse shape above).
for _, tc := range tests {
t.Run(tc.name, func(t *testing.T) {
t.Parallel() // this subtest runs concurrently with its siblings
got := Process(tc.in)
if got != tc.want {
t.Errorf("Process(%q) = %v, want %v", tc.in, got, tc.want)
}
})
}tc := tc before t.Run. Go 1.22+ gives each loop iteration its own variable scope, so the historical copy is dead ceremony. Only modules whose go.mod declares go 1.21 or older still need it — and you should bump the directive instead.t.Cleanup(fn) over defer for teardown that must run even when a helper calls t.Fatal. Cleanups run LIFO after the test, and they nest correctly through helpers where a defer in main would not.t.Helper() as the first line of any assertion helper, so failures point at the caller's line, not inside the helper.t.TempDir() for filesystem tests — auto-removed, unique per test, parallel-safe. Never hardcode /tmp/mytest.t.Context() (Go 1.24+) gives a context cancelled when the test and its cleanups finish — pass it to anything taking a context.Context instead of context.Background().t.Setenv and T.Chdir forbid t.Parallel(). They mutate process-global state; the test panics if you call them in a parallel test. Keep env/cwd-mutating tests serial.Define the interface where you consume it (the test's package), keep it tiny, and hand-roll a fake with func fields you set per test.
// Charger is what the service needs — declared at the consumer, not the vendor.
type Charger interface {
Charge(ctx context.Context, cents int64) (string, error)
}
type fakeCharger struct {
charge func(ctx context.Context, cents int64) (string, error)
}
func (f fakeCharger) Charge(ctx context.Context, cents int64) (string, error) {
return f.charge(ctx, cents)
}
func TestCheckout_chargesOnce(t *testing.T) {
var calls int
f := fakeCharger{charge: func(_ context.Context, c int64) (string, error) {
calls++
return "txn_123", nil
}}
if err := Checkout(t.Context(), f, 999); err != nil {
t.Fatalf("Checkout: %v", err)
}
if calls != 1 {
t.Errorf("Charge called %d times, want 1", calls)
}
}This is faster to read than a generated mock and never couples your test to call order. Reach for go.uber.org/mock (gomock) or testify/mock only when a team already mandates them or the interface is large and call-sequence assertions are the point — templates and the decision in references/mocks-and-fakes.md. For HTTP dependencies use net/http/httptest (server, recorder, or a fake RoundTripper) instead of a fake — same reference.
testing/synctest graduated to GA in Go 1.25. It runs your code in an isolated "bubble" with a fake clock that jumps forward instantly the moment every goroutine in the bubble is durably blocked — so a test of a 30-second timeout finishes in microseconds, deterministically.
func TestTimeout(t *testing.T) {
synctest.Test(t, func(t *testing.T) {
ctx, cancel := context.WithTimeout(t.Context(), 5*time.Second)
defer cancel()
done := make(chan error, 1)
go func() { done <- slowOperation(ctx) }()
synctest.Wait() // wait until the goroutine is durably blocked
select {
case err := <-done:
if !errors.Is(err, context.DeadlineExceeded) {
t.Errorf("got %v, want DeadlineExceeded", err)
}
case <-time.After(time.Minute): // fake time — never really waits
t.Fatal("operation did not time out")
}
})
}-race (go test -race ./...). The race detector finds data races that pass silently otherwise.synctest.Wait() blocks the bubble until all other bubble goroutines are durably blocked, letting you assert at a known point.synctest.Test(t, ...), not the old synctest.Run — Run is deprecated as of Go 1.26.time.Sleep to "let the goroutine finish." That is the flaky-test factory. Full bubble semantics, durable-block definition, and goroutine-leak detection live in references/synctest-and-concurrency.md.go test -cover ./... # quick per-package %
go test -coverprofile=cover.out ./... # write a profile
go tool cover -html=cover.out # open annotated source
go test -coverpkg=./... -coverprofile=cover.out ./... # cross-package coverage
go build -cover -o ./bin/app . # coverage for integration binaries (1.20+)A coverage percentage is a smoke alarm, not a goal. 100% line coverage with no assertions on the values is worthless; 70% on the branches that actually carry logic is fine. Use -coverpkg=./... when your tests live in a separate package and exercise code across the module, or the number undercounts. Profiles, integration-binary coverage, and reading the HTML report are in references/coverage-and-benchmarks.md.
Coverage tells you which code ran; it cannot tell you whether any test would have noticed if that code were wrong. A table-driven test whose cases all assert err == nil and nothing else raises coverage without detecting anything. Mutation testing plants bugs on purpose — flip a < to <=, drop an early return, replace a returned value with the zero value — and a mutant the suite still passes is a test that asserts nothing.
This is not fuzzing. Fuzzing hunts inputs your code mishandles; mutation hunts tests that would not catch a bug you already know about. They find different things and neither substitutes for the other.
Go has no mature mutation tool — go-mutesting and gremlins exist but neither is a dependable default — so this is the manual procedure, and that makes the discipline stricter here, not looser:
tools/mutants.go or a shell driver); do not hand-edit N times, because you will need to rerun it and a restore mistake is silent.&&/||, return the zero value. go test ./... must fail for every one.git diff that nothing else moved, and rerun the suite green.N/N killed, naming the mutants.The runner must prove it executed each mutant. A hand-rolled driver that can report a kill it never ran only ever inflates the score — so that defect can never surface as a red run, and no failing test will ever tell you about it. Assert the mutated file changed on disk (compare hashes before and after) and that the test command actually exited non-zero for the reason you expect, rather than trusting the loop.
A survivor is not automatically a failure. Some mutants are semantically equivalent and cannot be killed; classify those with the reason instead of writing a test that asserts non-behaviour. Scale the whole layer to risk (P7): reach for it where a bug is expensive — money, auth, data loss, concurrency, a public API — not on every change.
Use for b.Loop() (Go 1.24+), not the legacy for i := 0; i < b.N; i++. b.Loop manages the timer itself (setup before the loop and teardown after are excluded automatically), runs the body the right number of times, and the compiler is taught not to dead-code-eliminate calls inside it.
func BenchmarkHash(b *testing.B) {
data := bytes.Repeat([]byte("x"), 1024) // setup excluded from timing
b.ReportAllocs()
for b.Loop() {
_ = Hash(data)
}
}Bad — legacy loop with manual timer juggling and a sink to fool the optimizer:
func BenchmarkHash(b *testing.B) {
data := bytes.Repeat([]byte("x"), 1024)
b.ResetTimer()
var sink uint64
for i := 0; i < b.N; i++ {
sink = Hash(data)
}
_ = sink
}b.ReportAllocs() always — allocation count regresses long before wall-clock does, and it is the first thing to optimize.benchstat, never eyeball two numbers — a single run's noise is larger than most real changes. Install and workflow in references/coverage-and-benchmarks.md.sink/runtime.KeepAlive dance is only needed in pre-1.24 modules; inside b.Loop() it is redundant.Built in since Go 1.18. Worth it for parsers, decoders, and anything that ingests untrusted input — places where a malformed byte sequence can panic or corrupt state.
func FuzzParse(f *testing.F) {
f.Add("key=value") // seed corpus
f.Add("")
f.Fuzz(func(t *testing.T, s string) {
got, err := Parse(s)
if err != nil {
return // rejecting bad input is fine; crashing is not
}
if out := got.String(); out != s {
t.Errorf("round-trip: Parse(%q).String() = %q", s, out)
}
})
}Run it with go test -fuzz=FuzzParse -fuzztime=30s. Without -fuzz the seed corpus runs as ordinary cases on every go test, so seeds are also free regression tests.
| Anti-pattern | Why it bites | Do instead |
|---|---|---|
Testing unexported internals via export_test.go for everything | Tests rename-break on every refactor; you're testing structure, not behavior | Test through the public API; reserve export_test.go for genuinely untestable seams |
| Asserting on log output to check a code path ran | Couples tests to message wording; brittle and slow | Assert on returned values or fake-recorded calls |
time.Sleep to synchronize goroutines | Flaky on loaded CI, slow always | testing/synctest + synctest.Wait(), or a channel |
One giant TestEverything func | First failure hides the rest; no targetable subtests | Table-driven with named t.Run subtests |
| Chasing 100% coverage | Inflates with assertion-free tests; false confidence | Cover the branches that carry logic; read the profile |
tc := tc before t.Run in a go 1.22+ module | Dead ceremony; signals copied-from-old-blog code | Delete it; bump the go directive if older |
gomock/testify/mock to fake an interface you own | Ceremony + coupling to call order for a 12-line job | Hand-rolled func-field fake |
Benchmark without b.ReportAllocs() | Misses allocation regressions, the cheapest win | Add b.ReportAllocs(); compare with benchstat |
t.Parallel() in a test calling t.Setenv/T.Chdir | Panics — they mutate process-global state | Keep env/cwd tests serial |
Run scripts/verify.sh [dir] to check emitted tests: it runs gofmt -l, go vet ./..., and go test ./... -count=1 (with -race when supported) inside the first Go module it finds, and no-ops cleanly when there is none.
references/synctest-and-concurrency.md — bubble model, durable-block definition, fake clock, synctest.Wait, -race, goroutine-leak detection, the GOEXPERIMENT→GA migration.references/mocks-and-fakes.md — fakes vs testify/mock vs gomock decision and minimal templates; httptest server/recorder/RoundTripper recipes.references/coverage-and-benchmarks.md — coverage profiles, -coverpkg, integration go build -cover, benchstat install and workflow, -cpuprofile/-memprofile.© ericrisco, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 6 other files (scripts, references) in skills/testing-go of ericrisco/rsc-harness.
Open the folder on GitHubat commit e3d5b33
Testing Go next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Testing Go this skillericrisco/rsc-harness | 167 | — | ~3.7k | Automated safety check: Pass | MIT | |
| Go Helpershepherdjerred/monorepo | 112 | — | ~1.7k | Automated safety check: Pass | GPL-3.0 | |
| Concurrency Fuzzing Testingdzhalaevd/Donatello | 135 | — | ~3.3k | Automated safety check: Pass | Apache-2.0 | |
| ContributingGoogleCloudPlatform/race-condition | 234 | — | ~930 | Automated safety check: Pass | Custom licence | |
| Golang Testingunxed/f4 | 241 | 1 repos | ~4.5k | Automated safety check: Pass | MIT | |
| Python ProJeffallan/claude-skills | 12k | — | ~1.6k | Automated safety check: Pass | MIT |
shepherdjerred/monorepo
Current Go development guidance for modules, toolchains, workspaces, testing, fuzzing, concurrency, profiling, security, and Go tooling.
dzhalaevd/Donatello
Use as the lead skill when Python tests must expose scheduler/interleaving bugs in asyncio, threading, queues, workers, databases, caches, or mixed-concurrency code
GoogleCloudPlatform/race-condition
Guides the developer workflow for contributing to Race Condition.
unxed/f4
Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration…
Jeffallan/claude-skills
Writes type-annotated Python 3.11+ with async patterns, dataclasses and pytest suites, validated with mypy in strict mode, black and ruff.
genkovich/sdd
A skill your agent uses to derive the user flows of a UI-touching feature after the spec is clarified — one mermaid flowchart per UI-touching §4 user story (happy + alt/error branches from §5 ACs)…
ericrisco/rsc-harness
A skill your agent uses when designing or analyzing a controlled experiment — falsifiable hypothesis, sample size from an MDE, reading significance/CI/power, CUPED, or rescuing tests that won't go…
ericrisco/rsc-harness
A skill your agent uses when making a web UI conform to WCAG 2.2 Level AA — axe-core or Lighthouse a11y violations, keyboard operability, focus management, ARIA roles/names/live regions, contrast…
ericrisco/rsc-harness
A skill your agent uses when running or fixing paid acquisition on Google or Meta — campaign structure (Performance Max, Demand Gen, Search, Advantage+), platform-fit creative, budget/scaling rules…
ericrisco/rsc-harness
A skill your agent uses when measuring whether an LLM or agent system actually got better and gating merges on it: golden sets, fixing an inflated LLM-as-judge, scoring RAG (faithfulness, contextual…
ericrisco/rsc-harness
A skill your agent uses when a creative goal must become a finished media file: pick and order generative-media models per modality — AI voiceover, image-to-video clips, score — then glue them with…
ericrisco/rsc-harness
A skill your agent uses when instrumenting product or web analytics — GA4/PostHog SDK wiring, event taxonomy, funnels, double-counted events, consent gating, PII scrubbing.
Works with
Categories
A skill your agent uses when writing or running Go tests — table-driven cases, named subtests, parallel isolation, fakes instead of mock frameworks, coverage profiles, benchmarks, fuzzing, golden…. Testing Go is an agent skill from ericrisco/rsc-harness. Use when writing or running Go tests — table-driven cases, named subtests, parallel isolation, fakes instead of mock frameworks, coverage profiles, benchmarks, fuzzing, golden files, and testing concurrent goroutines deterministically.
Testing Go fits situations like: running Go tests — table-driven cases; parallel isolation; fakes instead of mock frameworks; coverage profiles.
Run `npx skills add ericrisco/rsc-harness --skill testing-go -a claude-code`. Or copy the skill folder (skills/testing-go in ericrisco/rsc-harness) into .claude/skills/testing-go in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ericrisco/rsc-harness --skill testing-go -a codex`. Or copy the skill folder (skills/testing-go in ericrisco/rsc-harness) into .agents/skills/testing-go in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ericrisco/rsc-harness --skill testing-go -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/testing-go, .gemini/skills/testing-go, .github/skills/testing-go and .opencode/skills/testing-go in your project.
Going by SKILL.md and its folder, Testing Go needs a shell for the scripts in its folder and the command-line tools its instructions call (go and git). Our summary lists: A Bash shell.
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Testing Go is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.7k tokens (SKILL.md is roughly 15k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.1k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Testing Go: Go Helper (shepherdjerred/monorepo, 112 stars), Concurrency Fuzzing Testing (dzhalaevd/Donatello, 135 stars), Contributing (GoogleCloudPlatform/race-condition, 234 stars) and Golang Testing (unxed/f4, 241 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ericrisco (a GitHub user) maintains it in ericrisco/rsc-harness, which has 167 GitHub stars. The repository holds 227 skills in this directory. The repository was last updated on October 7, 2026.
Source: ericrisco/rsc-harness on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.