Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/gopherguides/gopher-ainpx agentmods add skills/gopherguides/gopher-ai/go-test-coverageWrote 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/gopherguides/gopher-ai/go-test-coverage)<a href="https://agentmods.dev/skills/gopherguides/gopher-ai/go-test-coverage"><img src="https://agentmods.dev/badge/skills/gopherguides/gopher-ai/go-test-coverage/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/gopherguides/gopher-ai/go-test-coverage"><img src="https://agentmods.dev/badge/skills/gopherguides/gopher-ai/go-test-coverage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- 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.00062 | $0.01375 |
| Opus 5.5 | $0.00025 | $0.00550 |
| Sonnet 5.5 | $0.00012 | $0.00275 |
| Haiku 4.5 | $0.00006 | $0.00137 |
Grade A, and why
go-test-coverage scanned grade A with 1 finding 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s -H "Authorization: Bearer $GOPHER_GUIDES_API_KEY" \ How it starts
The opening of the file, as written. The whole thing — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Go Test Coverage
Test coverage gap analysis and recommendations for Go projects. Identifies missing or insufficient test coverage and generates actionable recommendations.
What It Does
- Coverage Analysis — Runs
go test -coverand parses results - Gap Identification — Finds untested exported functions, error paths, and edge cases
- Recommendation Engine — Suggests specific test cases using table-driven patterns
- Stub Generation — Creates ready-to-use test file stubs
Steps
API Integration (Optional)
If GOPHER_GUIDES_API_KEY is set, verify it:
curl -s -H "Authorization: Bearer $GOPHER_GUIDES_API_KEY" \
https://gopherguides.com/api/gopher-ai/me
If not set, local analysis tools (go vet, staticcheck, golangci-lint) still provide comprehensive analysis. Set the key for enhanced API-powered insights. Get your key at gopherguides.com.
1. Measure Current Coverage
# Generate coverage profile
go test -coverprofile=coverage.out ./...
# View per-function coverage
go tool cover -func=coverage.out
# Generate HTML report (optional)
go tool cover -html=coverage.out -o coverage.html
2. Identify Gaps
Parse coverage output to find:
- Untested exported functions — Any
funcwith 0% coverage - Partially covered functions — Functions with branches not hit
- Untested error paths —
if err != nilblocks never executed - Missing edge cases — Boundary conditions not exercised
# Find functions with 0% coverage
go tool cover -func=coverage.out | grep "0.0%"
# Find exported functions without test files
for f in $(find . -name "*.go" ! -name "*_test.go" -path "*/pkg/*" -o -name "*.go" ! -name "*_test.go" -path "*/internal/*"); do
dir=$(dirname "$f")
base=$(basename "$f" .go)
if [ ! -f "${dir}/${base}_test.go" ]; then
echo "Missing test file: ${dir}/${base}_test.go"
fi
done
3. Generate Recommendations
For each untested function, recommend:
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 · 197 lines · 62 tokens per session scan A f0c281796c94
go-test-coverage is a skill published in the GitHub repository gopherguides/gopher-ai (21 stars, last pushed 3d ago), licensed MIT. It adds 62 tokens to every session and 1,375 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
go-test-coverage compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| go-test-coveragegopherguides/gopher-ai | Skill | 21 | 3d ago | MIT | A | 62 | Claude Code, Codex |
| test-masterJeffallan/claude-skills | Skill | 13k | today | MIT | A | 104 | Claude Code |
| migrate-xunit-to-xunit-v3dotnet/skills | Skill | 6.4k | today | MIT | A | 149 | Claude Code |
| go-testingGentleman-Programming/gentle-ai | Skill | 9.7k | yesterday | MIT | A | 26 | Claude Code, Codex |
| dart-testdartsim/dart | Skill | 1.2k | yesterday | BSD-2-Clause | A | 18 | Claude Code, Codex |
| test-generatorrshankras/claude-code-apple-skills | Skill | 918 | 22d ago | MIT | A | 33 | Claude Code |
| restore-internals-seams-in-finally-blocks-after-each-testZaxbyHub/opencode-swarm | Skill | 549 | today | MIT | A | 26 | OpenCode |