plugins/golang/skills/lint/SKILL.md
Run golangci-lint to check Go code quality. Use when the user asks to lint, check for lint issues, or verify code quality in a Go project, or when linting is appropriate before committing Go code changes.
npx skillsauth add openshift-eng/ai-helpers lintInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run golangci-lint to check Go code quality and report issues.
Find how to run the linter using this cascade — stop at the first match:
lint or verify-lint targets (grep -E "^(lint|verify-lint):" Makefile). If found, run make lint or make verify-lint.golangci-lint run ./...Report that golangci-lint is not available and direct the user to the installation docs. Do not auto-install.
Use this format when issues are found:
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)
When clean:
Code passes all linter checks (0 issues found)
This skill is read-only. Never modify files or attempt fixes. Use the golang:lint-fix skill for that.
If the user passes additional flags, chain them to the golangci-lint invocation (e.g., --tests, --concurrency 4).
tools
Analyze a JIRA issue and create a pull request to solve it. Use when the user wants to implement a fix or feature described in a Jira issue, push a branch, and open a draft PR.
development
Use when a deeper level of code review is requested. Multi-agent panel code review with specialist reviewers and forced runtime reproducers for all BLOCKING bug findings. Optionally posts to GitHub/GitLab as a PENDING review.
development
Review agentic documentation — verify claims locally against source code first, then use chai-bot for cross-repo and cross-functional verification
development
Use this skill when debugging a failed Prow CI job.