Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add bobmatnyc/claude-mpm-skills --skill golang-testing-strategiesgit clone --depth 1 https://github.com/bobmatnyc/claude-mpm-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/bobmatnyc/claude-mpm-skills/golang-testing-strategies)<a href="https://agentmods.dev/skills/bobmatnyc/claude-mpm-skills/golang-testing-strategies"><img src="https://agentmods.dev/badge/skills/bobmatnyc/claude-mpm-skills/golang-testing-strategies/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/bobmatnyc/claude-mpm-skills/golang-testing-strategies"><img src="https://agentmods.dev/badge/skills/bobmatnyc/claude-mpm-skills/golang-testing-strategies.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk pass
- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.04896 |
| Opus 5.5 | $0.00013 | $0.01958 |
| Sonnet 5.5 | $0.00006 | $0.00979 |
| Haiku 4.5 | $0.00003 | $0.00490 |
Grade A, and why
golang-testing-strategies scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 766 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Go Testing Strategies
Overview
Go provides a robust built-in testing framework (testing package) that emphasizes simplicity and developer productivity. Combined with community tools like testify and gomock, Go testing enables comprehensive test coverage with minimal boilerplate.
Key Features:
- 📋 Table-Driven Tests: Idiomatic pattern for testing multiple inputs
- ✅ Testify: Readable assertions and test suites
- 🎭 Gomock: Type-safe interface mocking
- ⚡ Benchmarking: Built-in performance testing
- 🔍 Race Detector: Concurrent code safety verification
- 📊 Coverage: Native coverage reporting and enforcement
- 🚀 CI Integration: Test caching and parallel execution
When to Use This Skill
Activate this skill when:
- Writing test suites for Go libraries or applications
- Setting up testing infrastructure for new projects
- Mocking external dependencies (databases, APIs, services)
- Benchmarking performance-critical code paths
- Ensuring thread-safe concurrent implementations
- Integrating tests into CI/CD pipelines
- Migrating from other testing frameworks
Core Testing Principles
The Go Testing Philosophy
- Simplicity Over Magic: Use standard library when possible
- Table-Driven Tests: Test multiple scenarios with single function
- Subtests: Organize related tests with
t.Run() - Interface-Based Mocking: Mock dependencies through interfaces
- Test Files Colocate: Place
*_test.gofiles alongside code - Package Naming: Use
package_testfor external tests,packagefor internal
Test Organization
File Naming Convention:
- Unit tests:
file_test.go - Integration tests:
file_integration_test.go - Benchmark tests: Prefix with
Benchmarkin same test file
Package Structure:
mypackage/
├── user.go
├── user_test.go // Internal tests (same package)
├── user_external_test.go // External tests (package mypackage_test)
├── integration_test.go // Integration tests
└── testdata/ // Test fixtures (ignored by go build)
└── golden.json
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 766 lines · 32 tokens per session scan A 59622b2fed0b
golang-testing-strategies is a skill published in the GitHub repository bobmatnyc/claude-mpm-skills (79 stars, last pushed 4mo ago), licensed MIT. It adds 32 tokens to every session and 4,896 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
golang-testing-strategies compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| golang-testing-strategiesbobmatnyc/claude-mpm-skills | Skill | 79 | 4mo ago | MIT | A | 32 | Claude Code |
| golang-testingaffaan-m/ECC | Skill | 313k | 7d ago | MIT | A | 37 | Claude Code, Kiro |
| golang-patternsaffaan-m/ECC | Skill | 313k | 7d ago | MIT | A | 45 | Claude Code, Kiro |
| ax-go-agent-optimizeax-llm/ax | Skill | 3.0k | today | Apache-2.0 | A | 51 | Claude Code, Codex |
| golang-testingsamber/cc-skills-golang | Skill | 4.0k | 21d ago | MIT | A | 115 | Claude Code |
| golang-samber-oopssamber/cc-skills-golang | Skill | 4.0k | 21d ago | MIT | A | 74 | Claude Code |
| golang-uber-fxsamber/cc-skills-golang | Skill | 4.0k | 21d ago | MIT | A | 122 | Claude Code |