go-linting

Standardize Go linting with golangci-lint and a curated .golangci.yml configuration.

Updated Feb 28, 2026
One-click install
npx skills add https://github.com/phant-app/phant --skill go-linting-phant-app
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: go-linting
Source: https://github.com/phant-app/phant/tree/main/.agents/skills/go-linting
Command: npx skills add https://github.com/phant-app/phant --skill go-linting-phant-app

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Go projects often struggle with inconsistent linting across teams and CI/CD pipelines. Establishing a standardized linting setup improves code quality, reduces bugs, and speeds onboarding.

Core Features & Use Cases

  • Recommended Linters: errcheck, goimports, revive, govet, staticcheck to catch common Go mistakes and enforce style.
  • Lint Runner: golangci-lint provides fast, unified analysis across large codebases.
  • Configuration Guidance: Example configuration with a .golangci.yml to enable the above linters and shared settings.
  • Use Cases: Integrate into CI for pull requests, enforce local development standards, and maintain consistent code quality across multiple Go modules.

Quick Start

Install golangci-lint, configure the recommended linters in a .golangci.yml, and run golangci-lint across your module to start linting.

Frequently Asked Questions about go-linting

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

FAQPage Schema
How do I set up golangci-lint for consistent Go code quality across my modules?▼

Set up Go code quality linting by configuring a .golangci.yml file with recommended linters like errcheck, goimports, revive, govet, and staticcheck. Run golangci-lint across your Go modules to enforce consistent style and catch common mistakes.

What linters should I enable in my .golangci.yml configuration?▼

A recommended .golangci.yml configuration for Go linting includes enabling errcheck, goimports, revive, govet, and staticcheck. These linters work together within golangci-lint to catch common Go mistakes and enforce code style.

How do I integrate Go static analysis into my CI/CD pipelines?▼

Integrate Go static analysis into CI/CD pipelines by running golangci-lint during your build workflows. Standardizing on a shared .golangci.yml configuration ensures consistent linting results across pull requests and continuous integration environments.

Does golangci-lint work across multiple Go modules in a monorepo?▼

Yes, golangci-lint provides fast, unified static analysis across large codebases and multiple Go modules. Configuring a shared .golangci.yml ensures consistent linting standards are applied uniformly across all modules in your repository.

Why is standardized Go linting important for development teams?▼

Standardized Go linting improves code quality, reduces bugs, and speeds up onboarding by enforcing consistent rules. Using golangci-lint with a curated set of linters eliminates inconsistent local development standards and pipeline configurations.

What is the best way to enforce Go code style in pull requests?▼

The best way to enforce Go code style in pull requests is to run golangci-lint as a CI/CD pipeline step. Using a recommended .golangci.yml configuration with linters like revive and goimports ensures automated style and quality checks on every submission.