
golang-lint
Linting best practices and golangci-lint configuration for Golang projects
by samberFree
Description
golang-lint is an agent skill from the samber cc-skills-golang collection for linting Go projects with golangci-lint. It covers configuring the .golangci.yml file, choosing linters, enabling linting in continuous integration, running linters, reading their output, and suppressing warnings with nolint comments where they are justified. Its persona is a Go code quality engineer who treats linting as part of everyday development, not a clean-up step at the end. The skill has three modes. Setup mode configures the lint file, chooses linters and enables the checks in CI, working through the configuration steps in order. Coding mode runs golangci-lint with auto-fix on the modified files in the background while the agent keeps implementing a feature, then reports the results. Interpret and fix mode reads lint output, suppresses warnings where appropriate and fixes issues in existing code, and for a large legacy codebase it uses parallel sub-agents for auto-fix, security linters, error handling, style and general quality so independent categories are fixed at the same time. The skill describes golangci-lint as the standard Go linting tool, which runs more than 100 linters in parallel from a single binary, and it asks that linters be run often during development and always in CI. Install golangci-lint with go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest. It is listed on skills.sh, where the page shows install counts and GitHub stars for the collection, and its security audits all pass. Install it with npx skills add https://github.com/samber/cc-skills-golang --skill golang-lint.…
Highlights
- golangci-lint configuration
- Linter selection and CI setup
- Background lint with auto-fix
- Interpreting output and nolint use
- Parallel cleanup of legacy code
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate golang-lint.
People also visit
golang-lint FAQ
What does this skill cover?
Linting Go projects with golangci-lint: configuration, choosing linters, CI setup, reading output and suppressing warnings.
What tool does it use?
golangci-lint, which the skill describes as aggregating more than 100 linters into one binary. Install it with go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest.
How does it help on a legacy codebase?
Parallel sub-agents fix independent categories such as style, security and error handling at the same time.
How do I install it?
Run npx skills add https://github.com/samber/cc-skills-golang --skill golang-lint.
What are the security audit results?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
How popular is it?
The page shows about 38.4K installs, and the cc-skills-golang repository has 3.5K GitHub stars.
What are the best golang-lint alternatives?
Popular alternatives to golang-lint include ruff-recursive-fix, plankton-code-quality and lint-and-validate. See all golang-lint alternatives



