In short.
golang-lint helps Go developers use an AI coding assistant to configure and interpret automated code checks, but its opinionated defaults and inconsistent supporting material require review before adoption. The supplied configuration explicitly enables 48 linters and two formatters, while the references explain findings, justified suppressions and gradual adoption in existing projects. Eleven evaluation scenarios describe expected assistant responses without providing execution results. Conflicting linter counts, timeout guidance and formatter advice reduce confidence in treating the package as a ready-to-use standard.
Researched and written by an AI model and checked by a second AI model. How it works
The scope is skills/golang-lint at commit d68d80aec298e1b74b37c2a472c002b5217248b3: SKILL.md, assets/.golangci.yml, evals/evals.json, references/linter-reference.md and references/nolint-directives.md, together with the repository-root LICENSE. The remaining repository, cross-referenced companion skills, external tools and assistant services are outside scope. Installation, host loading, configuration validity, fixes, formatting, concurrent editing and evaluation outcomes were not assessed through execution.
The overview
Identity
golang-lint is an instruction package in samber/cc-skills-golang. Its metadata names samber as author, declares version 1.4.1 and describes compatibility with Claude Code, Codex or similar AI coding environments working on Go projects.
The assistant loads the skill to receive guidance; golangci-lint performs the underlying code checks. The package contains SKILL.md, a configuration asset, two reference documents and evaluation definitions. Its declared file patterns cover Go source files and .golangci.yml.
Assessment
Its strongest feature is the connection between a concrete configuration and explanations of what individual checks mean. Developers receive guidance on unchecked errors, resource cleanup, formatting and justified exceptions, rather than only a list of enabled tools.
It is a useful starting point for teams willing to own their lint policy. The source describes its configuration as production-ready, but supplies no execution evidence establishing that claim. Internal inconsistencies also make review necessary before using its advice as a team standard.
Users
The skill suits Go developers setting up linting, maintainers interpreting warnings and teams introducing checks into an existing codebase. Beginners get explanations of warning categories and suppression syntax; experienced developers get configurable thresholds, exclusions and incremental-adoption guidance.
It assumes access to an AI coding environment and local development tools. GitHub Actions pipeline wiring is explicitly delegated to the separate golang-continuous-integration skill, whose contents are outside this resource.
Capabilities
Linting checks source code for suspicious patterns and policy violations. This package covers correctness, style, complexity, performance-related suggestions, security and resource handling, logging, testing and modernization. Its configuration explicitly enables 48 linter entries, plus gofumpt and goimports as formatters.
The instructions cover running checks, applying available automatic fixes, formatting code, interpreting file-and-line diagnostics and troubleshooting configuration problems. They also describe limiting reported findings relative to a Git revision when adopting linting gradually.
Suppression guidance requires a named linter and an explanation. The configuration enables nolintlint with require-specific and require-explanation, making those requirements part of the proposed automated checks.
Using it
Requirements
The metadata lists Go and golangci-lint as required executables. The configuration uses version: "2", and the reference states that the enabled modernize linter requires golangci-lint v2.6.0 or later. A minimum release supporting every supplied setting is not established.
The references discuss checks associated with Go 1.22 features, but do not establish one minimum Go version for the entire package. Compatibility needs to account for the project's Go version and the chosen golangci-lint release.
The skill declares file-reading and editing tools, shell access for Go, golangci-lint and Git, and an Agent tool. Actual permission handling and support for background or parallel agents depend on the host and have not been assessed.
Mechanism
The package guides an assistant through setup, coding and warning-interpretation modes. The assistant uses the configuration and references to choose commands, explain findings and propose edits. The underlying linter output identifies a file, line, column, message and linter name.
During coding, the instructions propose a background agent applying automatic fixes to modified files. For legacy cleanup, they propose up to five agents divided among automatic fixes, security, error handling, formatting and code quality. Those categories can affect the same files; the supplied material does not demonstrate conflict handling or successful concurrent cleanup.
Setup
Obtain the complete skill folder and preserve its relative assets and references. The revision-specific source is [https://github.com/samber/cc-skills-golang/tree/d68d80aec298e1b74b37c2a472c002b5217248b3/skills/golang-lint]. Host-specific installation and registration steps are not supplied.
Install Go and a compatible golangci-lint release. The metadata offers the Homebrew golangci-lint formula, while the body provides an unpinned go install command ending in @latest. Neither installation route was executed, and the package does not pin a dependency release.
Use assets/.golangci.yml as a starting configuration at the project root. Review its enabled checks, exclusions and thresholds before applying fixes. The material mentions golangci-lint config verify and golangci-lint linters as ways to inspect configuration validity and available checks; no results from those commands are supplied.
Example
An illustrative request is: Explain an unchecked database error and a function-length warning on a large table-driven test, fixing real problems and justifying any suppression. The skill's intended response is to handle the database error and consider a targeted funlen suppression for a test whose length reflects its case count.
Its documented command sequence includes golangci-lint run ./... for findings, golangci-lint run --fix ./... for available automatic fixes and golangci-lint fmt ./... for formatting. This describes intended use; no commands or resulting changes were executed.
Assessment & evidence
Limitations
The documentation disagrees with itself in several concrete places. SKILL.md describes both 48 and 33 enabled linters; the supplied asset explicitly lists 48. The troubleshooting text says the golangci-lint v2 default timeout is zero, while evaluation assertion 10.1 calls it five minutes. The asset itself sets five minutes, so the conflict concerns default behavior.
Evaluation assertion 11.4 expects advice that goimports is redundant with gofumpt and can be disabled. The configuration instead enables both and gives goimports a distinct import-management purpose. The evidence does not resolve this disagreement.
The default policy is broad: it includes complexity, function-length, whitespace and parallel-test rules alongside bug and security checks. Linter exclusions include vendor, third_party, testutils and examples path patterns; formatter exclusions differ. Although the per-linter issue cap is removed, repeated identical issues remain capped at 50. These choices need to match the project's intended coverage.
Reasoning
The package's useful organizing principle is to distinguish likely correctness problems from contextual style choices. Its references favor fixing unchecked errors and unclosed resources, while allowing explained exceptions for long table-driven tests or intentionally repeated structures.
That principle supports informed review, but individual preferences remain debatable. A complexity threshold or naming rule expresses a policy rather than proving a defect. Likewise, enabling performance-related checks does not establish measured performance improvement. The supplied material contains no comparative results showing that this configuration outperforms a smaller one.
Alternatives
Developers who already understand their lint policy can use golangci-lint directly with a smaller project-owned configuration. That retains the underlying checks while removing the assistant instruction layer. The references also identify focused tools such as govet and staticcheck for narrower needs.
The source points to companion skills for continuous integration, Go code style and broader security tooling. Their contents and suitability have not been assessed here. No comparative evaluation establishes which approach produces better results.
Evidence
The supporting material comprises SKILL.md, assets/.golangci.yml, references/linter-reference.md, references/nolint-directives.md, evals/evals.json and the repository-root LICENSE. Together they establish the intended behavior, proposed configuration, explanatory guidance and reuse terms.
The evaluation file contains 11 scenarios with prompts and expected assertions, covering suppression, configuration structure, prioritization, incremental adoption and troubleshooting. It contains no recorded responses, scores or execution receipts. No installation, assistant integration, configuration verification, lint fixes or evaluation cases were run, so reliability and practical results remain unknown.
Access & freshness
Costs
The MIT license permits use and commercial redistribution, but does not establish a total operating cost. The supplied material gives no AI subscription prices, token usage, execution times or hardware requirements.
Actual costs are unknown. They depend on the assistant environment and project workload; the proposed background and parallel agents introduce additional work whose usage and cost are not quantified.
Rights
The repository license is MIT, with copyright attributed to Samuel Berthe in 2026. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices remain in copies or substantial portions.
The license supplies no warranty and disclaims liability. SKILL.md also declares MIT. These notices support reuse of the supplied skill material; licensing for separately installed tools and AI services is not established by this package.
Freshness
The supplied source snapshot identifies commit d68d80aec298e1b74b37c2a472c002b5217248b3 and a capture time of 2026-11-16T22:23:32.161Z. SKILL.md declares version 1.4.1. The capture time does not establish the release date.
The configuration targets golangci-lint v2 and includes version-sensitive checks, while the installation guidance uses @latest. Changes after the supplied commit and compatibility with subsequently installed tool versions are unknown.
Actions
Before adoption, choose and record a compatible golangci-lint release, verify the configuration against that release and resolve the conflicting timeout and formatter advice. Review exclusions, complexity limits and testing rules against the project's needs.
Begin with a lint run that reports findings before enabling automatic edits. Review proposed fixes and formatting changes. For legacy projects, choose an explicit issues.new-from-rev baseline and track the remaining backlog separately: limiting new findings does not establish that older code is clean.
Keep the full skill folder for its relative references and preserve the MIT notices when redistributing it. Confirm that the chosen assistant environment supports the intended tools and agent behavior before relying on background or concurrent cleanup.
