agentleFS
erikhowarderikhoward/agent-tools/skills/golangci-lint/SKILL.md

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.

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
  1. Very specific:

    Use this skill only for golangci-lint setup, migration, or failures.

    line 10
  2. Distinctive:

    Start from the repository's current policy.

    line 14
  3. Distinctive:

    Treat migration commands as in-place writes.

    line 16
  4. Very specific:

    Use //nolint:<linter> // reason only for a specific, justified exception.

    line 19
  5. Distinctive:

    Keep security and error checks enabled unless a documented project policy provides equivalent coverage.

    line 20
  6. Very specific:

    Read references/advanced-configuration.md only for version-specific schema, exclusions, CI, or incremental rollout details.

    line 23
  7. Distinctive:

    Run the repository's command first.

    line 27
  8. Distinctive:

    Use commands supported by the pinned version.

    line 35

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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> // reason only 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 --verbose

Use 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).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.