golangci-lint
Skill0 starsChanged 3 months agoMITView on GitHub
Configure or diagnose golangci-lint with repository-pinned versions, incremental adoption, formatter separation, narrow suppressions, and reproducible local and CI verification.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- bare-bonesSkill
- flow-ideateSkill
- flow-implementSkill
- flow-planSkill
- git-commitSkill
- git-hooksSkill
- githubSkill
- goSkill
- pythonSkill
- rustSkill
- typescriptSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use this skill only for golangci-lint setup, migration, or failures.
- Distinctive: line 14
Start from the repository's current policy.
- Distinctive: line 16
Treat migration commands as in-place writes.
- Very specific: line 19
Use //nolint:<linter> // reason only for a specific, justified exception.
- Distinctive: line 20
Keep security and error checks enabled unless a documented project policy provides equivalent coverage.
- Very specific: line 23
Read references/advanced-configuration.md only for version-specific schema, exclusions, CI, or incremental rollout details.
- Distinctive: line 27
Run the repository's command first.
- Distinctive: line 35
Use commands supported by the pinned version.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
golangci-lint
Use this skill only for golangci-lint setup, migration, or failures. Use the repository's pinned version and .golangci.yml or .golangci.yaml. Check the installed version before changing schema. Do not install latest or replace an established configuration without approval.
Rules
- Start from the repository's current policy. Add linters to address a stated risk, not to maximize count.
- For version 2 configuration, keep formatters in the formatter section. Distinguish lint, formatting, and automatic fixes.
- Treat migration commands as in-place writes. Review and version the result before use.
- Adopt stricter checks incrementally. Do not mix a requested configuration change with unrelated cleanup across the codebase.
- Investigate the loaded config and effective exclusions when local and CI output differ.
- Use
//nolint:<linter> // reasononly for a specific, justified exception. Avoid blanket test-directory exclusions and stale suppressions. - Keep security and error checks enabled unless a documented project policy provides equivalent coverage.
- Match CI's Go version, module mode, working directory, and generated-code policy.
Read references/advanced-configuration.md only for version-specific schema, exclusions, CI, or incremental rollout details.
Verification
Run the repository's command first. A common diagnostic sequence is:
golangci-lint version
golangci-lint config verify
golangci-lint run --verboseUse commands supported by the pinned version. Limit fixes and formatting to intended files. Report unavailable tools rather than installing them.
Adapted from golangci-lint documentation and project examples (MIT).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

