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-code-auditWrote 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-code-audit)<a href="https://agentmods.dev/skills/gopherguides/gopher-ai/go-code-audit"><img src="https://agentmods.dev/badge/skills/gopherguides/gopher-ai/go-code-audit/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-code-audit"><img src="https://agentmods.dev/badge/skills/gopherguides/gopher-ai/go-code-audit.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.00084 | $0.01117 |
| Opus 5.5 | $0.00034 | $0.00447 |
| Sonnet 5.5 | $0.00017 | $0.00223 |
| Haiku 4.5 | $0.00008 | $0.00112 |
Grade A, and why
go-code-audit 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 2mo 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 — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Go Code Audit
Comprehensive code quality analysis against Go best practices. Identifies code smells, anti-patterns, and non-idiomatic patterns with categorized findings.
What It Checks
Idiomatic Go Patterns
- Proper use of interfaces (accept interfaces, return structs)
- Channel and goroutine patterns
- Error wrapping with
%wand sentinel errors - Use of
context.Contextas first parameter - Functional options pattern where appropriate
Naming & Style
- Package naming (short, lowercase, no underscores)
- Exported name stuttering (
user.UserService→user.Service) - Acronym consistency (
URL,HTTP,ID) - Variable scope and naming length conventions
Package Structure
internal/usage for non-public packages- Circular dependency detection
- Package cohesion (single responsibility)
cmd/andpkg/conventions
Error Handling
- Unchecked errors (
errcheckpatterns) - Bare
log.Fatalin library code - Panics in recoverable code paths
- Error wrapping without context
Code Smells
- Global mutable state
init()function overuse- Empty interfaces where concrete types suffice
- Overly complex functions (cyclomatic complexity)
- Dead code and unused exports
How to Run
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.
Full Project Audit
Analyze the entire Go project:
# Run static analysis tools
go vet ./...
staticcheck ./...
golangci-lint run --max-issues-per-linter 0 --max-same-issues 0 ./...
Then review the codebase for patterns the tools don't catch:
- Read each package's exported API — check for stuttering, interface bloat, and naming
- Trace error paths — ensure all errors are wrapped with context
- Review concurrency — check goroutine lifecycle management
- Check test coverage — identify untested critical paths
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.
- 2mo ago First seen · 159 lines · 84 tokens per session scan A 8731b79298d5
go-code-audit is a skill published in the GitHub repository gopherguides/gopher-ai (21 stars, last pushed 4d ago), licensed MIT. It adds 84 tokens to every session and 1,117 once invoked, about $0.0003 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-code-audit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| go-code-auditgopherguides/gopher-ai | Skill | 21 | 4d ago | MIT | A | 84 | Claude Code, Codex |
| pr-to-go-lintergithub/gh-aw | Skill | 5.6k | yesterday | MIT | A | 22 | Claude Code, Codex |
| golang-refactoringsamber/cc-skills-golang | Skill | 3.8k | 5d ago | MIT | A | 220 | Claude Code |
| go-spec-reviewerspf13/go-skills | Skill | 697 | yesterday | MIT | A | 99 | Claude Code |
| design-reviewdimetron/pi-go | Skill | 222 | 3d ago | MIT | A | 30 | Claude Code, Codex |
| agents-mddimetron/pi-go | Skill | 222 | 3d ago | MIT | A | 138 | Claude Code, Codex |
| ring:verifying-codeLerianStudio/ring | Skill | 218 | 6d ago | Apache-2.0 | A | 101 | Cursor |