go-linting

go-linting is a skill for Claude Code from muratmirgun/gophers. It costs 85 tokens per session (2,157 once invoked), scanned A, original, MIT.

A set of guidelines for automated Go code checks, commonly called linting. It explains how to configure golangci-lint, record the rules in the project, handle findings, and run the checks in continuous integration (automated checks run for code changes).

In plain words
What is it for?
Use it when setting up linting, creating a .golangci.yml configuration, reviewing lint results, or adding lint checks to a Go project's CI process.
Why use it?
It keeps code-quality checks consistent between developers and automated builds, while discouraging unexplained exceptions and ignored security warnings.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code; built for openclaw.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is Read [references/linter-catalog.md](../../../skills/go-linting/references/linter-catalog.md) when picking from the long tail of correctness, style, security, an.

Part of the gophers plugin — 26 skills, 4 agents shipped together

Good fit Use it when setting up linting, creating a .golangci.yml configuration, reviewing lint results, or adding lint checks to a Go project's CI process.

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/muratmirgun/gophers
agentmods
npx agentmods add skills/muratmirgun/gophers/go-linting

Made for: Claude Code.

Or install gophers, the plugin that ships this one along with the rest of its 26 skills, 4 agents.

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-linting

README.md
[![agentmods](https://agentmods.dev/badge/skills/muratmirgun/gophers/go-linting/github.svg)](https://agentmods.dev/skills/muratmirgun/gophers/go-linting)
Your own site
<a href="https://agentmods.dev/skills/muratmirgun/gophers/go-linting"><img src="https://agentmods.dev/badge/skills/muratmirgun/gophers/go-linting/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-linting

Your own site · 80×15
<a href="https://agentmods.dev/skills/muratmirgun/gophers/go-linting"><img src="https://agentmods.dev/badge/skills/muratmirgun/gophers/go-linting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,157 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00085 $0.02157
Opus 5 $0.00043 $0.01078
Sonnet 5 $0.00017 $0.00431
Haiku 4.5 $0.00009 $0.00216

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

Security

Grade A, and why

go-linting 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 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.

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.

.claude-plugin/skills/go-linting/SKILL.md · 173 lines

How it starts

The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Go Linting

The single most important property of a linting setup is consistency: every contributor and every CI run uses the same rules. golangci-lint is the tool; a checked-in .golangci.yml is the contract.

Core Rules

  1. Every Go project has a .golangci.yml at the repository root. It is the source of truth for which linters run.
  2. Lint runs in CI on every PR. A green build means lint is green.
  3. Lint runs locally before commit. A pre-commit hook or make lint keeps the feedback loop fast.
  4. Suppress with reasons. //nolint:linter // why — never bare //nolint.
  5. Fix the cause first. A suppression should be the last resort, not the default reaction.
  6. Never silence security linters (gosec, bodyclose, sqlclosecheck) without a strong, documented reason.

Setup Procedure

  1. Install: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest (or brew install golangci-lint).
  2. Drop a baseline .golangci.yml at the repo root.
  3. Run golangci-lint run ./....
  4. Fix the findings in order — formatting first, govet next, style last.
  5. Re-run until clean. Commit .golangci.yml and any source fixes together.
  6. Add the CI workflow (see references/ci-integration.md).

Minimum Linter Set

These five catch the most common issues and have the lowest noise rate. Start here:

Linter Catches
errcheck Unchecked error returns
govet Mistakes that compile but are wrong (printf args, shifts, etc.)
staticcheck Bug-prone patterns, dead code, simplifications
ineffassign Assignments whose value is never read
revive Style issues (modern replacement for golint)

Add formatting on top: gofmt / goimports (or gofumpt for stricter rules). With golangci-lint v2 these run via golangci-lint fmt.

Enable these once the baseline is clean:

Read the full file on GitHub · 173 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 · 173 lines · 85 tokens per session scan A a55c14278be0

Subscribe to this mod's changes

go-linting is a skill published in the GitHub repository muratmirgun/gophers (8 stars, last pushed 29d ago), licensed MIT. It adds 85 tokens to every session and 2,157 once invoked, about $0.0004 per session on Opus 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-31.

Related

Other skills, from other repositories

go

Use when writing Go services, CLIs, or libraries. Covers idiomatic error wrapping, goroutine and context discipline, interface design, table-driven tests, and the race detector.

nimadorostkar/Claude-Skills-collection · 38 tokens

golang-pro

Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with generics, interfaces, and robust error handling. Use when building Go applications requiring concurrent programming…

Jeffallan/claude-skills · 95 tokens

developing-genkit-go

Develop AI-powered applications using Genkit in Go. Use when the user asks to build AI features, agents, flows, or tools in Go using Genkit, or when working with Genkit Go code involving generation, prompts, streaming, tool calling, or model providers.

google/skills · 60 tokens

programming

Applies strict, modern language practice (typed errors, exhaustive match, TDD) for Python, Rust, TypeScript, and Go. Use for work on .py, .rs, .ts, or .go files.

code-yeongyu/oh-my-openagent · 49 tokens

authoring-go-sdk-tasks

Writes Airflow task logic in Go using the Airflow Go SDK. Use when the user wants to implement Airflow tasks in Go, asks about BundleProvider/RegisterDags, the bundlev1 Registry/Dag interfaces, registering Go tasks (AddTask/AddTaskWithName), dependency injection by parameter type (context.Context, sdk.TIRunContext…

astronomer/agents · 165 tokens

deploying-go-sdk-bundles

Builds, packs, and deploys compiled Airflow Go SDK bundles so the ExecutableCoordinator can run them. Use when the user wants to compile a Go task bundle, asks about go build, go tool airflow-go-pack, the AFBNDL01 self-contained executable bundle, packing or inspecting a bundle, placing it under executablesroot…

astronomer/agents · 146 tokens