golang-lint

Configure and run golangci-lint to analyze Go projects and interpret results.

2.9k|191|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/samber/cc-skills-golang --skill golang-lint
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-lint
Source: https://github.com/samber/cc-skills-golang/tree/main/skills/golang-linter
Command: npx skills add https://github.com/samber/cc-skills-golang --skill golang-lint

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve?

Go projects often struggle with inconsistent linting, hidden issues, and manual toil checking code quality. This skill provides structured guidance for configuring golangci-lint, running multiple linters, and interpreting results to raise Go project quality.

Core Features & Use Cases

  • Lint configuration guidance for golangci-lint and CI integration
  • Guidance on suppressing warnings with properly justified nolint directives
  • Interpreting lint output and taking concrete action to fix issues
  • Quick setup for common workflows (setup, run, fix, validate)

Quick Start

Run golangci-lint on your module to scan your codebase and begin addressing any findings.

Frequently Asked Questions about golang-lint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure golangci-lint for my Go project?

You can interpret golangci-lint output by analyzing the lint results to identify code defects and take concrete action to fix issues. This skill helps you understand lint findings and apply appropriate corrections to raise project quality.

What is the best way to suppress false positives in golangci-lint?

Suppress false positives in golangci-lint by using properly justified nolint directives within your Go code. This ensures that warnings are only suppressed with valid reasons, maintaining code quality standards without hiding real issues.

How do I integrate Go linting into my development and CI workflows?

Integrate Go linting into CI workflows by configuring golangci-lint to run automatically during your build process. This skill offers guidance for setting up quick workflows including setup, run, fix, and validate to enforce linting standards consistently.

Does golangci-lint work for Go projects of all sizes?

Yes, golangci-lint can be applied to Go projects of all sizes to configure linters and manage settings. It helps reduce defects and establish consistent code quality whether you are working on small modules or large codebases.

Why should I use golangci-lint instead of individual Go static analysis tools?

Using golangci-lint allows you to run multiple linters simultaneously rather than managing individual static analysis tools. It centralizes configuration through .golangci.yml and standardizes code quality checks across your entire Go project.