Skip to content

Go Testing Patterns

Guides an agent to write Go tests: table-driven, subtests, benchmarks, fuzzing, coverage, TDD.

Repository
affaan-m/ECC
Stars
295,127
Licence
MIT
Files
1 file

What it does

When installed, the agent follows a set of Go testing conventions when you ask it to write or improve Go code. It works in a test-first style (write a failing test, make it pass, then tidy up), and uses common Go patterns such as table-driven tests, grouped subtests, parallel subtests, helper functions, temporary files and golden files. The skill is a written guide in Spanish; it does not add any tool or program on its own.

Great for

  • Go developers who want consistent, idiomatic tests written by an AI agent
  • Teams practising test-driven development in Go
  • Developers learning how table-driven tests and subtests are structured

Skip it if

  • Non-Go projects, since the examples only cover the Go language and its testing package
  • Experienced Go teams with their own testing standards, where the agent may override house style with these generic examples

Try asking

  • “Write table-driven tests for this Go function covering edge cases”
  • “Help me follow TDD to build a new Go package step by step”
  • “Add a benchmark and a fuzz test for my input parser in Go”
  • “Improve test coverage for the user service package”
Step-by-step guide: how to use Go Testing PatternsInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 1 original files, the MIT licence and an attribution note.

    golang-testing.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip golang-testing.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip golang-testing.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Ask the agent to run go test after each change so the red-green cycle is verified, not assumed.
  • Mention your Go version and existing test conventions so the agent adapts the examples rather than copying them.
  • Review generated tests yourself; the examples are illustrative and some (such as the placeholder update subtest) are incomplete.

What's inside

  • SKILL.md

Redistributed unmodified from affaan-m/ECC under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.