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-lint-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-lint-audit)<a href="https://agentmods.dev/skills/gopherguides/gopher-ai/go-lint-audit"><img src="https://agentmods.dev/badge/skills/gopherguides/gopher-ai/go-lint-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-lint-audit"><img src="https://agentmods.dev/badge/skills/gopherguides/gopher-ai/go-lint-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00077 | $0.01507 |
| Opus 5 | $0.00039 | $0.00754 |
| Sonnet 5 | $0.00015 | $0.00301 |
| Haiku 4.5 | $0.00008 | $0.00151 |
Grade C, and why
go-lint-audit scanned grade C with 2 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 9d 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.
Hidden instructionshighPrompt injection
Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.
```go // Before os.Remove(tempFile) // After if err := os.Remove(tempFile); err != nil { return fmt.Errorf("failed to remove temp file %s: %w", tempFile, err) } ``` **Ignore:** Only if the file removal is truly best-ef 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 — 227 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Go Lint Audit
Extended lint analysis with human-readable explanations. Wraps golangci-lint with better categorization, explanations, and configuration recommendations.
What It Does
- Runs golangci-lint with comprehensive linter set
- Groups findings by category and severity
- Explains each finding in plain language with fix examples
- Recommends config improvements for
.golangci.yml
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. Check Configuration
# Find existing config
ls .golangci.yml .golangci.yaml .golangci.toml 2>/dev/null
# If no config exists, note it — will recommend one
2. Run Analysis
# Run with all findings shown
golangci-lint run \
--max-issues-per-linter 0 \
--max-same-issues 0 \
--out-format json \
./... 2>&1
If golangci-lint is not installed:
# Install
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
3. Categorize Findings
Group findings into categories:
| Category | Linters | Severity |
|---|---|---|
| Bugs | govet, staticcheck, gosec | 🔴 Critical |
| Error Handling | errcheck, errorlint | 🔴 Critical |
| Performance | prealloc, bodyclose | 🟡 Warning |
| Style | gofmt, goimports, misspell | 🟢 Suggestion |
| Complexity | cyclop, gocognit, funlen | 🟡 Warning |
| Maintainability | gocritic, revive, dupl | 🟡 Warning |
| Security | gosec | 🔴 Critical |
4. Explain Findings
For each finding, provide:
- What it means in plain language
- Why it matters (bug risk, performance, maintainability)
- How to fix it with a code example
- When to ignore it (if applicable, with
//nolintdirective)
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.
- 9d ago First seen · 227 lines · 77 tokens per session scan C a65d3f63b16d
go-lint-audit is a skill published in the GitHub repository gopherguides/gopher-ai (21 stars, last pushed today), licensed MIT. It adds 77 tokens to every session and 1,507 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 2 findings (hidden instructions, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
go-linters
Add and validate custom Go analysis linters in gh-aw.
printing-press-polish
Polish a generated CLI to pass verification and become publish-ready. Runs diagnostics (dogfood, verify, scorecard, go vet, gosec), automatically fixes all issues (verify failures, static-analysis findings, dead code, descriptions, README, MCP tool quality), reports the before/after delta, and offers to publish. Use…
stack-trace-go-probe
Internal helper for meta-stack-trace-investigator. Use when a Go panic or stack trace needs Go-specific nil/error checks, go test reproducer guidance, and patch targets.
golang-troubleshooting
Troubleshoot Golang programs systematically - find and fix the root cause. Use when encountering bugs, crashes, deadlocks, races, or unexpected behavior in Go code. Covers debugging methodology, common Go pitfalls, test-driven debugging, pprof setup and capture, Delve, race detection, GODEBUG tracing, and production…
golang-error-handling
Idiomatic Golang error handling — creation, wrapping with %w, errors.Is/As, errors.Join, custom error types, sentinel errors, panic/recover, the single handling rule, structured logging with slog, HTTP request logging middleware, and samber/oops for production errors. Built to make logs usable at scale with log…
sentry-go-sdk
Full Sentry SDK setup for Go. Use when asked to "add Sentry to Go", "install sentry-go", "setup Sentry in Go", or configure error monitoring, tracing, logging, metrics, or crons for Go applications. Supports net/http, Gin, Echo, Fiber, FastHTTP, Iris, Negroni, and gRPC.