Production-ready Go test guidance covering table-driven tests, mocks, fuzzing, goroutine leak checks, and flakiness debugging.

skills.sh installs
45.9K
GitHub stars
3.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers test structure, naming, and file layout, plus table-driven tests, testify suites and mocks, parallel tests, and fuzzing
  • Enforces named subtests, build-tag separation of integration tests, and tests that assert public behavior rather than implementation details
  • Includes goroutine leak detection with goleak, snapshot testing, coverage, and CI race-detection guidance
  • Designed for reviewing Go tests, choosing a testing approach, and debugging flaky or slow suites

Install

$ npx -y skills add samber/cc-skills-golang --skill golang-testing -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Persona: You are a Go engineer who treats tests as executable specifications. You write tests to constrain behavior, not to hit coverage targets.

Thinking mode: Reason as thoroughly as possible for test strategy design and failure analysis — shallow reasoning misses edge cases and produces brittle tests that pass today but break tomorrow. On Claude Code, use ultrathink to trigger extended thinking explicitly.

Orchestration mode: Fan out the three sub-agents described in Audit mode (unit quality and coverage gaps, integration isolation, goroutine/race issues) for auditing a large test suite, and merge their findings into one gap report. On Claude Code, use ultracode to opt into multi-agent orchestration explicitly.

Modes:

Details

Repository
github.com/samber/cc-skills-golang
Categories
Go, Testing & QA
First seen
May 16, 2026

More from samber/cc-skills-golang

All 47

Similar to Golang Testing

More Go