agentic-coding-main/Claude/skills/go-testing/SKILL.md
Applies current Go testing best practices. Use when writing or modifying Go test files or advising on Go testing strategies.
npx skillsauth add ajbcoding/claude-skill-eval writing-go-testsInstall 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.
This skill provides actionable testing guidelines. For detailed implementation patterns, code examples, rationale, and production system references, consult go-testing-best-practices.md.
Always apply these current best practices:
*_test.go namingpackage foo_test) for integration testing and exampleshandler_auth_test.go, handler_validation_test.go)testing/synctest for deterministic concurrent testing (Go 1.24+)t.Parallel() first in test functionscmp.Diff() from google/go-cmp for complex comparisonsgo test -cover and go tool cover -html for analysistestdata directory for test fixtures (automatically ignored by Go toolchain)t.Helper() for accurate error reportingt.Cleanup() for resource cleanup (superior to defer in tests)B.Loop() method as the preferred pattern (prevents compiler optimisations)benchstat for statistical analysis-benchmem for memory profilingTest*, Benchmark*, Fuzz*, Example* (capital letter after prefix)got and want for actual vs expected valuesLoad go-testing-best-practices.md when you need:
The detailed guide contains full context, examples with explanations, and production-proven patterns. This SKILL.md provides the actionable rules to apply.
Focus on meaningful tests that validate behaviour rather than implementation. Pragmatic excellence over theoretical perfection.
content-media
Download YouTube video transcripts when user provides a YouTube URL or asks to download/get/fetch a transcript from YouTube. Also use when user wants to transcribe or get captions/subtitles from a YouTube video.
development
Transform learning content (like YouTube transcripts, articles, tutorials) into actionable implementation plans using the Ship-Learn-Next framework. Use when user wants to turn advice, lessons, or educational content into concrete action steps, reps, or a learning quest.
tools
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.
tools
Replace with description of the skill and when Claude should use it.