golang-lint

Configure golangci-lint, run linters, and interpret results for Go projects.

5|1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/omarluq/og-template --skill golang-lint-omarluq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-lint
Source: https://github.com/omarluq/og-template/tree/main/.agents/skills/golang-lint
Command: npx skills add https://github.com/omarluq/og-template --skill golang-lint-omarluq

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Go projects often suffer from inconsistent linting and hard-to-trace quality issues. This Skill provides linting best practices and golangci-lint configuration to enforce consistent code quality across teams.

Core Features & Use Cases

  • Run and configure a multi-linter pipeline with golangci-lint.
  • Suppress warnings with well-justified //nolint directives and interpret lint output for actionable fixes.
  • Set up CI-ready linting and guide linter selection for Go projects, including go vet, staticcheck, revive, and more.

Quick Start

Configure golangci-lint for your Go project and run lint checks to start enforcing code quality.

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 configure golangci-lint by creating a .golangci.yml file to define a multi-linter pipeline, selecting specific linters like go vet and staticcheck. This configuration enforces consistent code quality and can be tailored for projects of varying sizes.

What is the best way to suppress a golangci-lint warning?

The best way to suppress a golangci-lint warning is by using well-justified //nolint directives in your Go code. This allows you to handle specific lint exceptions while maintaining overall code quality standards across your project.

Can I integrate golangci-lint into my CI workflow?

Yes, you can set up CI-ready linting by configuring golangci-lint to run automated checks. This integration allows you to continuously enforce Go code quality and catch issues like incorrect type assertions during the build process.

Why does my golangci-lint check time out before finishing?

Your golangci-lint check likely timed out because the run.timeout value in your .golangci.yml configuration is set too low. Adjusting this timeout setting allows the multi-linter pipeline to complete its analysis on larger Go projects.

How do I interpret static analysis results from golangci-lint?

You interpret static analysis results by triaging the golangci-lint output to determine whether to apply an actionable code fix or use a //nolint directive. This guidance helps resolve identified quality issues efficiently.