plugins/golang/skills/lint-fix/SKILL.md
Run golangci-lint and fix all reported issues. Use only when explicitly asked to fix lint issues in a Go project.
npx skillsauth add openshift-eng/ai-helpers lint-fixInstall 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 and fix all reported issues, using auto-fix first then AI for the rest.
This skill always calls golangci-lint directly (required for --fix). Discovery finds any project-specific flags, config, or plugins to carry into those calls.
lint or verify-lint targets (grep -E "^(lint|verify-lint):" Makefile). Inspect the target body to extract flags such as --config, --timeout, --build-tags, or module plugin references.golangci-lint run ./... with no extra flags.Collect all discovered flags into a $FLAGS variable used throughout the Fix Process.
Report that golangci-lint is not available and direct the user to the installation docs. Do not auto-install.
golangci-lint run $FLAGS ./... and record the issue count.golangci-lint run --fix $FLAGS ./... to resolve all automatically fixable issues.golangci-lint run $FLAGS ./... again to see remaining issues.golangci-lint run $FLAGS ./... after each batch of AI fixes.//nolint directives. Use //nolint only as a last resort with a comment explaining why.// Code generated header. Add //nolint at the call site or exclude the file in .golangci.yml instead.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.