setup-golangci-lint
Installation
SKILL.md
golangci-lint Environment Setup
Quickly set up a complete golangci-lint environment for Go projects.
Core Principle: Make existing code pass lint by adjusting configuration, do not modify existing code. Only affects new code.
When to Use
- Initializing Go projects and need to add linter
- Adding code quality checks to existing projects
- Integrating lint into CI/CD workflows
Execution Flow
1. Detect Environment
# Check Go version in go.mod (priority)
cat go.mod | grep "^go "