go-lint-audit

go-lint-audit is a skill for Claude Code, Codex from gopherguides/gopher-ai. It costs 77 tokens per session (1,507 once invoked), scanned C, original, MIT.

A Go code-linting review that runs golangci-lint and related checks, then groups and explains the findings. Linting is automated checking for common mistakes, risky patterns, and style problems.

In plain words
What is it for?
Use it to review a Go project, understand lint failures, and improve files such as .golangci.yml.
Why use it?
It turns a long list of technical warnings into understandable issues and suggests improvements to the lint configuration.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash .github/skills/scripts/audit.sh.

Good fit Use it to review a Go project, understand lint failures, and improve files such as .golangci.yml.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/gopherguides/gopher-ai
agentmods
npx agentmods add skills/gopherguides/gopher-ai/go-lint-audit

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for go-lint-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/gopherguides/gopher-ai/go-lint-audit/github.svg)](https://agentmods.dev/skills/gopherguides/gopher-ai/go-lint-audit)
Your own site
<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.

agentmods 80×15 button for go-lint-audit

Your own site · 80×15
<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>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,507 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 9d ago against content hash a65d3f63b16d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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" \
agent-skills/skills/go-lint-audit/SKILL.md · 227 lines

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

  1. Runs golangci-lint with comprehensive linter set
  2. Groups findings by category and severity
  3. Explains each finding in plain language with fix examples
  4. 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 //nolint directive)

Read the full file on GitHub · 227 lines

Changes

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.

  1. 9d ago First seen · 227 lines · 77 tokens per session scan C a65d3f63b16d

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories

go-linters

Add and validate custom Go analysis linters in gh-aw.

github/gh-aw · 17 tokens

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…

mvanhorn/cli-printing-press · 125 tokens

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.

opensquilla/opensquilla · 42 tokens

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…

samber/cc-skills-golang · 175 tokens

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…

samber/cc-skills-golang · 144 tokens

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.

getsentry/sentry-for-ai · 78 tokens