
Go Linting
Consistent golangci-lint setup for Go projects, with a verified v2 baseline config and linter selection guidance.
- skills.sh installs
- 1.4K
- GitHub stars
- 196
- last updated
- Aug 21, 2026
What it does
- Covers setup, running, nolint rules, and CI or pre-commit integration for golangci-lint v2
- Includes a
scripts/setup-lint.shgenerator, anassets/golangci.ymlbaseline, and a table of minimum and additional linters - Requires
//nolint:linter // reasondirectives with a justification and rejects bare//nolint - Designed for Go projects that need consistent static analysis in local development and CI
Install
$ npx -y skills add cxuu/golang-skills --skill go-linting -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Go Linting
Core Principle
More important than any "blessed" set of linters: lint consistently across a codebase.
Consistent linting helps catch common issues and establishes a high bar for code quality without being unnecessarily prescriptive.
Resource Routing
scripts/setup-lint.sh- Run when generating a.golangci.yml, validating the first lint pass, or producing JSON metadata.assets/golangci.yml- Use as the v2 golangci-lint baseline for established projects.
Setup Procedure
- Create
.golangci.ymlwithscripts/setup-lint.shor copyassets/golangci.yml - Run
golangci-lint run ./... - If errors appear, fix them category by category (formatting first, then vet, then style)
- Re-run until clean
After generating .golangci.yml, run golangci-lint config verify --config .golangci.yml
to verify the configuration schema before relying on lint results.
Minimum Recommended Linters
These linters catch the most common issues while maintaining a high quality bar:
Details
- Repository
- github.com/cxuu/golang-skills
- Categories
- Go, Code Review & Quality
- First seen
- May 16, 2026
More from cxuu/golang-skills
All 20- Go Interfaces1.4K
- Go Documentation1.3K
- Go Style Core1.3K
- Go Performance1.3K
- Go Context1.3K
- Go Naming1.3K
- Go Defensive1.3K
- Go Packages1.3K
- Go Functional Options1.3K
- Go Data Structures1.3K
- Go Control Flow1.3K
- Go Logging1.1K
- Go Functions1.1K
- Go Generics1.1K
- Go Declarations1.1K
- Go Code Review1.8K
- Go Testing1.4K
- Go Error Handling1.4K
- Go Concurrency1.4K
Similar to Go Linting
More Go
golang-lintSkillsamber/cc-skills-golang42.3K installsConfiguration and workflow guidance for golangci-lint, covering linter selection, nolint suppression rules, and output interpretation.
go-code-reviewSkillcxuu/golang-skills1.8K installsGo code review checklist covering formatting, errors, naming, concurrency, interfaces, and security checks with tooling.
golang-linterSkillsamber/cc-skills-golang26.5K installsRuns Go linting checks directly in your Claude Code workflow, catching style issues, bugs, and code smells without leaving your editor. Given the 26.5K installs
go-style-coreSkillcxuu/golang-skills1.3K installsCore Go style guidance covering clarity-first priorities, gofmt, early returns, and semicolon rules.
megalinterPluginoxsecurity/megalinter2.7K starsSet up, run and fix MegaLinter on any repository: 100+ linters for 69+ languages, 23+ formats and 21+ tooling formats, from CI or locally.