Agent skill

Go Lint

by openshift-eng in openshift-eng/ai-helpers

Run golangci-lint to check Go code quality. An agent skill from openshift-eng/ai-helpers.

Apache-2.0Auto-check passedDevelopment

Install Go Lint

skills CLI
$ npx skills add openshift-eng/ai-helpers --skill go-lint -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install openshift-eng/ai-helpers go-lint --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/openshift-eng/ai-helpers.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/golang/skills/go-lint .claude/skills/go-lint && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
go-lint
GitHub stars
120
Token cost
~439 tokens
SKILL.md length
135 words
Files
1
Skills in repo
118
Repo updated
First seen
Licence
Apache-2.0

At a glance

Run golangci-lint to check Go code quality. An agent skill from openshift-eng/ai-helpers.

  • Works in 3 steps: CLAUDE.md / AGENTS.md: Check for… → Makefile targets: Check for lint or… → Direct invocation: Run golangci-lint run…
  • The user asks to lint
  • SKILL.md covers Discovery, If golangci-lint Is Not Found, Output and Constraint
  • Calls make

What it does

Go Lint is an agent skill from openshift-eng/ai-helpers. 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.

Its SKILL.md is about 440 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Linting and formatting and Code quality. The repository describes itself as: Developer productivity tools for Claude Code & other AI assistants. The licence is Apache-2.0.

When your agent uses it

  • The user asks to lint
  • Check for lint issues
  • Verify code quality in a Go project
  • Linting is appropriate before committing Go code changes

Example prompts

  • “/go-lint”

Requirements

  • Pre-approved tools (allowed-tools): Bash(golangci-lint *), Bash(grep *), Bash(make lint), Bash(make verify-lint), Read

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. CLAUDE.md / AGENTS.md: Check for instructions about linting. If a lint command is documented, use it.
  2. Makefile targets: Check for lint or verify-lint targets (grep -E "^(lint|verify-lint):" Makefile). If found, run make lint or make…
  3. Direct invocation: Run golangci-lint run ./...

What it can do on your machine

Read from SKILL.md and the folder at commit a627176. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(golangci-lint *)
    • Bash(grep *)
    • Bash(make lint)
    • Bash(make verify-lint)
    • Read

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • make

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • golangci-lint.run

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Go Lint loads about 439 tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 135 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~53
When it runs · the whole SKILL.md, loaded when a task matches
~439

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from openshift-eng/ai-helpers at commit a627176, republished under its Apache-2.0 licence (© openshift-eng). 135 words, ~439 tokens.

Download SKILL.mdSave it as .claude/skills/go-lint/SKILL.md (or your agent's skills folder).
name
go-lint
description
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.
allowed-tools
Bash(golangci-lint *), Bash(grep *), Bash(make lint), Bash(make verify-lint), Read
model
haiku
paths
**/*.go, .golangci.yml, .golangci.yaml

Go Lint

Run golangci-lint to check Go code quality and report issues.

Discovery

Find how to run the linter using this cascade — stop at the first match:

  1. CLAUDE.md / AGENTS.md: Check for instructions about linting. If a lint command is documented, use it.
  2. Makefile targets: Check for lint or verify-lint targets (grep -E "^(lint|verify-lint):" Makefile). If found, run make lint or make verify-lint.
  3. Direct invocation: Run golangci-lint run ./...

If golangci-lint Is Not Found

Report that golangci-lint is not available and direct the user to the installation docs. Do not auto-install.

Output

Use this format when issues are found:

text
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:

text
Code passes all linter checks (0 issues found)

Constraint

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).

© openshift-eng, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/golang/skills/go-lint of openshift-eng/ai-helpers.

Open the folder on GitHubat commit a627176

Compare with similar skills

Go Lint next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Go Lint compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Go Lint this skillopenshift-eng/ai-helpers120—~439Automated safety check: PassApache-2.0
Install Anti-Slop Oxlint Rulesdmmulroy/anti-slop5.3k—~2.2kAutomated safety check: PassMIT
Add Opik Code Quality Hookcomet-ml/opik22k—~2.3kAutomated safety check: PassApache-2.0
LobeHub Alint Rule Set Maintenancelobehub/lobehub83k—~1.9kAutomated safety check: PassCustom licence
Code Quality Gatefengshao1227/ccg-workflow5.9k—~593Automated safety check: NotesMIT
Experiment Iterative CoderEvoScientist/EvoSkills4763 repos~2.5kAutomated safety check: PassApache-2.0

Similar skills

  • Installs, updates or migrates the vendored anti-slop Oxlint plugin in a repository, keeping local rule changes and the plugin's license and provenance files.

    5.3k GitHub stars~2.2k tokensUpdated 29 days ago
    DevelopmentAuto-check passed
  • Checklist for wiring a new linter into Opik's Code Quality pipeline: the four files to edit, the silent-failure gotchas and the pass/fail verification loop.

    22k GitHub stars~2.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Maintains LobeHub's model-backed alint rule set: writing rules, removing false positives against real code, deciding warn versus error and tracking token cost.

    83k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Code Quality Gate

    fengshao1227/ccg-workflow

    Scans code for complexity, long functions, duplicated blocks, naming problems and code smells with a Node script, then reports and suggests refactors.

    5.9k GitHub stars~593 tokensUpdated 24 days ago
    DevelopmentAuto-check: notes
  • Experiment Iterative Coder

    EvoScientist/EvoSkills

    Iterative code refinement through plan → code → evaluate → refine cycles.

    476 GitHub starsUsed in 3 repos~2.5k tokens
    DevelopmentAuto-check passed
  • Code Quality

    redis/RedisInsight

    Official

    Code-quality standards for RedisInsight: TypeScript strictness, naming conventions (camelCase, PascalCase, UPPERSNAKECASE), linting rules, no any without reason, no !important in styles, and…

    8.9k GitHub stars~1.2k tokensUpdated 5 days ago
    DevelopmentAuto-check passed

More from openshift-eng/ai-helpers

All 118 skills in this repo
  • Investigate CI Reliability

    openshift-eng/ai-helpers

    Find and independently validate actionable reliability defects across OpenShift release jobs and presubmits, then export portable issue handoffs.

    120 GitHub stars~1.9k tokensUpdated 3 days ago
    Auto-check passed
  • Address Review PR

    openshift-eng/ai-helpers

    Fetch and address all PR review comments — categorize by priority, make code changes, post replies, and push.

    120 GitHub stars~2.9k tokensUpdated 3 days ago
    Auto-check passed
  • Categorize Activity Types

    openshift-eng/ai-helpers

    Categorize Jira issues into Red Hat Sankey Activity Type categories using MCP Jira tools.

    120 GitHub stars~2.4k tokensUpdated 3 days ago
    Auto-check passed
  • Has Review Work

    openshift-eng/ai-helpers

    Decide whether a GitHub PR has unanswered authorized review comments or new required CI failures worth a follow-up agent.

    120 GitHub stars~1.9k tokensUpdated 3 days ago
    Auto-check passed
  • Must Gather Analyzer

    openshift-eng/ai-helpers

    Analyze OpenShift must-gather diagnostic data including cluster operators, pods, nodes, and network components.

    120 GitHub stars~2.3k tokensUpdated 3 days ago
    Auto-check passed
  • Payload Autodl JSON

    openshift-eng/ai-helpers

    Schema for the autodl JSON data file produced by payload-analysis for database ingestion — you must use this skill whenever generating the autodl JSON file

    120 GitHub stars~2.6k tokensUpdated 3 days ago
    Auto-check passed

Categories

Questions about Go Lint

What does Go Lint do?

Run golangci-lint to check Go code quality. An agent skill from openshift-eng/ai-helpers. Go Lint is an agent skill from openshift-eng/ai-helpers. Run golangci-lint to check Go code quality.

When should I use Go Lint?

Go Lint fits situations like: the user asks to lint; check for lint issues; verify code quality in a Go project; linting is appropriate before committing Go code changes.

How do I install Go Lint in Claude Code?

Run `npx skills add openshift-eng/ai-helpers --skill go-lint -a claude-code`. Or copy the skill folder (plugins/golang/skills/go-lint in openshift-eng/ai-helpers) into .claude/skills/go-lint in your project. Claude Code loads it when a task matches its description.

How do I install Go Lint in Codex?

Run `npx skills add openshift-eng/ai-helpers --skill go-lint -a codex`. Or copy the skill folder (plugins/golang/skills/go-lint in openshift-eng/ai-helpers) into .agents/skills/go-lint in your project. Codex loads it when a task matches its description.

Can I use Go Lint in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add openshift-eng/ai-helpers --skill go-lint -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/go-lint, .gemini/skills/go-lint, .github/skills/go-lint and .opencode/skills/go-lint in your project.

What does Go Lint need to run?

Going by SKILL.md and its folder, Go Lint needs the command-line tools its instructions call (make). Its frontmatter pre-approves these tools: Bash(golangci-lint *), Bash(grep *), Bash(make lint), Bash(make verify-lint), Read.

Does Go Lint access the network?

SKILL.md names 1 domain. As links in the text: golangci-lint.run. This is read from the text; nothing was executed.

Is Go Lint safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Go Lint use?

Go Lint is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Go Lint use?

About 439 tokens (SKILL.md is roughly 1.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Go Lint?

Skills that share tags, products or a category with Go Lint: Install Anti-Slop Oxlint Rules (dmmulroy/anti-slop, 5.3k stars), Add Opik Code Quality Hook (comet-ml/opik, 22k stars), LobeHub Alint Rule Set Maintenance (lobehub/lobehub, 83k stars) and Code Quality Gate (fengshao1227/ccg-workflow, 5.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Go Lint?

openshift-eng (a GitHub organization) maintains it in openshift-eng/ai-helpers, which has 120 GitHub stars. The repository holds 118 skills in this directory. The repository was last updated on October 6, 2026.

Source: openshift-eng/ai-helpers on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.