lint

lint is a command for Claude Code from lyarwood/kubevirt-ai-helpers. It costs 16 tokens per session (1,842 once invoked), scanned A, original, Apache-2.0.

A command that runs Go linters on a selected path in the KubeVirt codebase and creates a plan for fixing the findings. It groups problems by type and organizes fixes into separate commits.

In plain words
What is it for?
Use it to check KubeVirt Go code, plan fixes for formatting, spelling, error handling, static analysis, and style issues, and apply those fixes in separate Conventional Commit changes.
Why use it?
It turns a long list of lint warnings into reviewable work grouped by cause, making changes easier to inspect and undo selectively.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the kubevirt plugin — 4 skills, 17 commands shipped together

Good fit Use it to check KubeVirt Go code, plan fixes for formatting, spelling, error handling, static analysis, and style issues, and apply those fixes in separate Conventional Commit changes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/lyarwood/kubevirt-ai-helpers/lint
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/lyarwood/kubevirt-ai-helpers

Made for: Claude Code.

Or install kubevirt, the plugin that ships this one along with the rest of its 4 skills, 17 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lint

README.md
[![agentmods](https://agentmods.dev/badge/commands/lyarwood/kubevirt-ai-helpers/lint/github.svg)](https://agentmods.dev/commands/lyarwood/kubevirt-ai-helpers/lint)
Your own site
<a href="https://agentmods.dev/commands/lyarwood/kubevirt-ai-helpers/lint"><img src="https://agentmods.dev/badge/commands/lyarwood/kubevirt-ai-helpers/lint/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lint

Your own site · 80×15
<a href="https://agentmods.dev/commands/lyarwood/kubevirt-ai-helpers/lint"><img src="https://agentmods.dev/badge/commands/lyarwood/kubevirt-ai-helpers/lint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,842 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.01842
Opus 5 $0.00008 $0.00921
Sonnet 5 $0.00003 $0.00368
Haiku 4.5 $0.00002 $0.00184

Measured 11d ago against content hash 5912be8e8a6b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

lint scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/kubevirt/commands/lint.md · 160 lines

How it starts

The opening of the file, as written. The whole thing — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Name

kubevirt:lint

Synopsis

/kubevirt:lint <path>

Description

The kubevirt:lint command runs golangci-lint on a specified path within the KubeVirt codebase and generates an actionable plan to fix all linting issues. Each type of linting failure is addressed in a separate commit, making the changes easy to review and bisect.

This command:

  1. Runs golangci-lint with KubeVirt's configuration
  2. Groups issues by linter type
  3. Generates a plan with one task per linter type
  4. Executes fixes with individual commits for each linter category

Commit Strategy

Issues are fixed in separate commits organized by linter type, following the Conventional Commits specification:

Category Linters Commit Format
Formatting gofmt, gofumpt, goimports style(<path>): fix formatting issues
Spelling misspell style(<path>): fix spelling errors
Error handling errcheck, bodyclose, noctx fix(<path>): handle unchecked errors
Static analysis govet, staticcheck, ineffassign, unused refactor(<path>): fix static analysis issues
Style lll, goconst, nakedret, whitespace style(<path>): fix line length and style issues
Complexity gocyclo, funlen, dupl refactor(<path>): reduce function complexity
Security gosec fix(<path>): address security issues
Tests ginkgolinter test(<path>): fix ginkgo linter issues
lint-paths.txt N/A chore(lint): add <path> to lint-paths.txt

Linting Configuration

KubeVirt uses golangci-lint with configuration at hack/linter/.golangci.yml. Key linters:

Category Linters Auto-fixable
Formatting gofmt, gofumpt, goimports Yes
Spelling misspell Yes
Error Handling errcheck, bodyclose, noctx Manual
Static Analysis govet, staticcheck, ineffassign, unused Manual
Style lll, goconst, nakedret, whitespace Partial
Complexity gocyclo, funlen, dupl Manual
Security gosec Manual

Read the full file on GitHub · 160 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 160 lines · 16 tokens per session scan A 5912be8e8a6b

Subscribe to this mod's changes

lint is a command published in the GitHub repository lyarwood/kubevirt-ai-helpers (2 stars, last pushed 8d ago), licensed Apache-2.0. It adds 16 tokens to every session and 1,842 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.