golangci-lint

Automate golangci-lint setup, configuration, and execution in Go projects.

11|2|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/the-perfect-developer/the-perfect-opencode --skill golangci-lint-the-perfect-developer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golangci-lint
Source: https://github.com/the-perfect-developer/the-perfect-opencode/tree/main/.opencode/skills/golangci-lint
Command: npx skills add https://github.com/the-perfect-developer/the-perfect-opencode --skill golangci-lint-the-perfect-developer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Golangci-lint consolidates dozens of Go linters into a single, easy-to-use tool, helping teams enforce code quality, catch bugs earlier, and standardize coding conventions across projects.

Core Features & Use Cases

  • Install and pin exact versions for reproducible linting across environments
  • Run multiple linters with a single command and customize enable/disable sets
  • Integrate linting into local development, CI pipelines, and pre-commit workflows to maintain code health

Quick Start

Install a pinned version of golangci-lint and run it on your module to start linting.

Frequently Asked Questions about golangci-lint

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

FAQPage Schema
How do I automate golangci-lint for static analysis in Go projects?

Automate static analysis by configuring a minimal .golangci.yml file to run multiple linters in Go projects. This setup targets local development and CI pipelines to enforce code quality and catch bugs earlier.

What is the best way to run multiple Go linters with a single command?

Consolidate dozens of Go linters into a single command using golangci-lint. It allows you to customize enable and disable sets for specific linters, standardizing coding conventions across modules efficiently.

How do I pin exact versions for reproducible Go linting across CI environments?

Pin exact versions of the linter to ensure reproducible Go linting across CI environments. This approach standardizes code health checks and maintains consistent results across different development setups.

Can I integrate linting into pre-commit workflows and CI pipelines for Go code?

Integrate linting into pre-commit workflows and CI pipelines to maintain Go code health. The configuration supports run options and multiple output formats, fitting various local development and automated pipeline contexts.

Does golangci-lint support incremental adoption across multiple Go modules?

Incremental adoption across multiple Go modules is supported. You can configure per-linter settings and run options via the .golangci.yml configuration, allowing gradual integration into existing projects.