Detects optimal method to run golangci-lint in Go repositories (scripts, Makefile, direct, install) and reports structured issue summary.
From golangnpx claudepluginhub openshift-eng/ai-helpers --plugin golangThis skill uses the workspace's default tool permissions.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
This skill detects the best way to run golangci-lint in the current Go repository and executes it, reporting results in a structured summary.
Use this skill when:
golang:lint-fix)go.mod)golangci-lint installed, or the ability to install it (see Step 6 below)Try the following approaches in order. Proceed to Step 2 once any approach succeeds:
Check project documentation first - Read AGENTS.md or CLAUDE.md in the repository root (if they exist) and look for linting instructions (e.g., make lint, make verify, specific golangci-lint commands, or other linter commands). If found, use those instructions.
Check for lint scripts - Many repositories (especially OpenShift projects) have scripts that run golangci-lint in a containerized way with repo-specific configuration. Check for these patterns and run if found:
hack/go-lint.shhack/lint.shhack/verify-golangci-lint.shhack/verify-lint.shscripts/go-lint.shscripts/lint.sh*lint*.sh script in hack/ or scripts/ directoriesCheck the Makefile - Look for a make target like make lint or make verify-lint, and run it.
Run golangci-lint directly - Try: golangci-lint run
Try GOPATH binary - If golangci-lint was not found on PATH, try:
$(go env GOPATH)/bin/golangci-lint runInstall golangci-lint - If not installed, inform the user how to install it:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bingo install github.com/golangci/golangci-lint/cmd/golangci-lint@latestDuring the linter run:
.golangci.yml or .golangci.yaml, use it with golangci-lint run --config=<path>golangci-lint run --noconfigAfter running the linter:
Do not attempt to fix any issues - this skill is read-only.
Success with issues:
Found 15 issues:
- goconst: 5 issues
- staticcheck: 4 issues
- gocyclo: 3 issues
- revive: 3 issues
Example issues:
- pkg/api/handler.go:42: string "application/json" has 3 occurrences (goconst)
- pkg/utils/helper.go:87: cyclomatic complexity 15 of function ProcessData (gocyclo)
No issues:
Code passes all linter checks (0 issues found)
Error: Installation instructions if golangci-lint could not be installed or run
golangci-lint command that was used, as callers (like golang:lint-fix) may need itgolangci-lint invocation (e.g., --tests, --concurrency 4)--fix; if the user wants fixes, direct them to the /golang:lint-fix command