
Description
golang-testing is an agent skill from the samber cc-skills-golang collection for writing and reviewing production-ready Go tests. Its guiding idea is that tests are executable specifications that constrain behaviour, not tools for hitting a coverage number. The skill covers table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, and snapshot testing. It has four modes. Write mode scaffolds table-driven tests with gotests and then adds edge cases and error paths. Review mode checks a pull request's test changes for coverage of new behaviour, assertion quality and flakiness. Audit mode looks for gaps, flakiness and bad patterns such as order-dependent tests, missing t.Parallel calls and tests coupled to implementation details, and it can run three sub-agents for unit tests, integration isolation and goroutine or race problems. Debug mode reproduces a failing or flaky test and traces the root cause. The skill needs the gotests tool, installed with go install github.com/cweill/gotests/gotests@latest. It is listed on skills.sh, where the page shows install counts, GitHub stars and security audit results. Install it with npx skills add https://github.com/samber/cc-skills-golang --skill golang-testing.…
Highlights
- Table-driven tests with gotests
- testify suites, mocks and parallel tests
- Fuzzing and goroutine leak checks with goleak
- Write, review, audit and debug modes
- Finds flaky and order-dependent tests
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate golang-testing.
People also visit

golang-patterns
Idiomatic Go patterns, best practices, and conventions for building robust

golang-testing
Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing

go-concurrency-patterns
Master Go concurrency with goroutines, channels, sync primitives, and context
golang-testing FAQ
What does this skill cover?
Writing, reviewing, auditing and debugging Go tests, including table-driven tests, testify, mocks, fuzzing, fixtures and goleak.
What do I need to install first?
The gotests tool, installed with go install github.com/cweill/gotests/gotests@latest.
What does audit mode look for?
Coverage gaps, flaky or order-dependent tests, missing t.Parallel calls, implementation-detail coupling, integration isolation problems and goroutine or race issues.
How do I install it?
Run npx skills add https://github.com/samber/cc-skills-golang --skill golang-testing.
What are the security audit results?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
How popular is it?
The page shows about 41.4K installs, and the cc-skills-golang repository has 3.5K GitHub stars.
What are the best golang-testing alternatives?
Popular alternatives to golang-testing include golang-code-style, golang-error-handling and golang-patterns. See all golang-testing alternatives

