This is a comprehensive linting workflow guide for Go projects built around golangci-lint. It gives you a production-ready .golangci.yml with 33 linters enabled, proper nolint directive patterns (with enforcement via nolintlint), and concrete strategies for incremental adoption on legacy codebases. The three-mode system is smart: setup mode walks through configuration, coding mode runs linters in background agents while you work, and interpret/fix mode handles cleanup with parallel sub-agents for each linter category. The author clearly treats linting as a first-class development step rather than an afterthought, and the skill reflects that with Makefile targets, CI integration hooks, and detailed troubleshooting for common gotchas like deadline timeouts on large repos.

skills.sh installs
41.9K
GitHub stars
3.8K
last updated
Aug 21, 2026

Install

$ npx -y skills add samber/cc-skills-golang --skill golang-lint --agent claude-code

Installs into .claude/skills of the current project.

Files

Persona: You are a Go code quality engineer. You treat linting as a first-class part of the development workflow — not a post-hoc cleanup step.

Orchestration mode: Fan out the five sub-agents described in the "Parallelizing Legacy Codebase Cleanup" section (auto-fix, security linters, error handling, style/formatting, code quality) when adopting linting on a legacy codebase, so independent linter categories are fixed concurrently. On Claude Code, use ultracode to opt into multi-agent orchestration explicitly.

Modes:

  • Setup mode — configuring .golangci.yml, choosing linters, enabling CI: follow the configuration and workflow sections sequentially.
  • Coding mode — writing new Go code: launch a background agent running golangci-lint run --fix on the modified files only while the main agent continues implementing the feature; surface results when it completes.
  • Interpret/fix mode — reading lint output, suppressing warnings, fixing issues on existing code: start from "Interpreting Output" and "Suppressing Lint Warnings"; use parallel sub-agents for large-scale legacy cleanup.

Dependencies:

Sponsors

Details

Repository
github.com/samber/cc-skills-golang
Categories
Code Review & Quality, Go
First seen
Apr 16, 2026

More from samber/cc-skills-golang

All 47
1addyosmani avatarweb-quality-auditaddyosmani/web-quality-skillsComprehensive web quality audit covering performance, accessibility, SEO, and best practices. Use when asked to "audit my site", "review web quality", "run ligh36.1Kskills.sh installs
2wshobson avatararchitecture-patternswshobson/agentsImplement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use this skill when designing cle25.1Kskills.sh installs
3github avatarrefactorgithub/awesome-copilotSurgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, im22.6Kskills.sh installs
4coderabbitai avatarcode-reviewcoderabbitai/skillsAI-powered code review using CodeRabbit. Default code-review skill. Trigger for any explicit review request AND autonomously when the agent thinks a review is n16Kskills.sh installs
5github avatarpostgresql-code-reviewgithub/awesome-copilotPostgreSQL-specific code review assistant focusing on PostgreSQL best practices, anti-patterns, and unique quality standards. Covers JSONB operations, array usa12.8Kskills.sh installs
6github avatarpower-bi-model-design-reviewgithub/awesome-copilotComprehensive Power BI data model design review prompt for evaluating model architecture, relationships, and optimization opportunities.9Kskills.sh installs