golang-lint
golang lint
What it does
- Setup mode — configuring .golangci.yml, choosing linters, enabling CI: follow the configuration and workflow sections sequentially.
- golangci-lint: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- Look up the linter in the reference to understand what it checks
- Suppress with //nolint:linter-name // reason if it's a false positive
- Use golangci-lint run --verbose for additional context and timing
- Sub-agent 1: Run golangci-lint run --fix ./... for auto-fixable issues
- Sub-agent 2: Fix security linter findings (bodyclose, sqlclosecheck, gosec)
Requirements & configuration
- | Linter not found | Check golangci-lint linters — linter may need a newer version |
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
golang-lint FAQ
What does the golang-lint skill do?
Linting best practices and golangci-lint configuration for Golang projects — running linters, configuring .golangci.yml, suppressing warnings with nolint directives, interpreting lint output, and selecting linters. Use when configuring golangci-lint, asking about lint warnings or nolint suppressions, setting up code quality tooling, or choosing linters. Also use when the user mentions golangci-lint, go vet, staticcheck, or revive. Setup mode — configuring .golangci.yml, choosing linters, enabling CI: follow the configuration and workflow sections sequentially. golangci-lint: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
What does golang-lint require?
| Linter not found | Check golangci-lint linters — linter may need a newer version |
How do I install golang-lint?
Run: npx -y skills add https://github.com/samber/cc-skills-golang --skill golang-lint --agent claude-code — the source lives at github.com/samber/cc-skills-golang.
Maintain golang-lint?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/samber-cc-skills-golang-golang-lint?ref=badge) npx agentictools info skills/samber-cc-skills-golang-golang-lint The second line is the CLI lookup for this page — handy in READMEs and docs.