matdev83/golang-curated-agent-skills/golang-lint
Claude Code and agent skill by matdev83/golang-curated-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Go linting workflow: gofmt, go vet, golangci-lint configuration, safe fixes, suppressions, and CI review.
Install
npx vskill@latest install matdev83/golang-curated-agent-skills/golang-lintSKILL.md
The same SKILL.md was published earlier as matdev83/golang-curated-agent-skills/golang-lint.
Go linting
Use lint as a fast, repeatable signal—not as a substitute for tests, review, or a threat model. Inspect the repository's Go version, existing configuration, generated code, build tags, and CI command before changing policy. Run formatting and checks on the same package set that CI and releases build.
Baseline
Use gofmt -w or the repository-approved formatter for files you own. go vet analyzers depend on Go version and flags; add separate analyzers such as shadow explicitly (it is not a current go vet -shadow flag). A linter configuration is optional and may use any filename/format supported by the installed golangci-lint version. Pin the tool in CI or via the repository's tool management policy.
Choosing linters
Start with built-in analyzers and a small, maintained set. Typical categories include:
- correctness:
govet,staticcheck,unused,ineffassign; - error and resource handling:
errcheck,bodyclose,sqlclosecheck; - security:
gosec,govulncheck(the latter is a vulnerability tool, not a linter); - style:
revive,gofumpt,misspell, when the project wants those conventions.
Enable a linter because it catches a defect or enforces a documented convention. A large list creates noise, slower feedback, and pressure to suppress warnings. Review new linters on representative packages before enforcing them repository-wide.
Interpreting and fixing output
Read the complete diagnostic, source context, analyzer documentation, and whether generated/build-tagged code is included. Fix the root cause first. Do not make broad mechanical edits while another process is editing the same files; run autofix in a reviewed, isolated step, inspect the diff, and rerun tests and lint. --fix is a mutation, not a background task.
For a deliberate exception, prefer the narrowest documented suppression at the line or declaration. Include the linter name and a reason when the tool supports it, and do not suppress security or correctness warnings merely to make CI green. Keep generated-code exclusions explicit and review them when generators or tool versions change. See linter reference and nolint directives.
CI policy
CI should run the pinned formatter/linter version, use the repository's build tags and module/workspace settings, and fail on diagnostics that the project has chosen to enforce. Run security and vulnerability checks as separate visible jobs when their semantics differ from lint. Cache tool downloads carefully and invalidate caches on version/config changes. A passing linter does not establish race freedom, API compatibility, or runtime security.
Review checklist
- Is the command reproducible locally and in CI?
- Does it inspect all relevant modules, generated code, and build tags?
- Are fixes reviewed rather than applied concurrently with other edits?
- Are suppressions narrow, explained, and tracked?
- Do formatting, tests, vet, and security checks pass afterward?
Related local skills: golang-continuous-integration, golang-security, golang-testing, golang-code-style, and golang-dependency-management.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/golang-lint/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/matdev83/golang-curated-agent-skills/golang-lint)