lint-fix

lint-fix is a command for Claude Code from wangke19/gemini-ai-helpers. It costs 12 tokens per session (989 once invoked), scanned A, original, Apache-2.0.

A Go code-quality command that runs golangci-lint and fixes issues it can fix automatically. It also tracks the remaining problems until the configured checks pass.

In plain words
What is it for?
Use it to lint a Go repository and fix issues reported by checks such as static analysis, complexity, unused parameters, and allocation warnings.
Why use it?
It removes the need to sort through linter output manually and helps address recurring style and correctness warnings systematically.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: positional $N argument.

Good fit Use it to lint a Go repository and fix issues reported by checks such as static analysis, complexity, unused parameters, and allocation warnings.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/wangke19/gemini-ai-helpers/lint-fix
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/wangke19/gemini-ai-helpers

Made for: Claude Code.

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-fix

README.md
[![agentmods](https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/lint-fix/github.svg)](https://agentmods.dev/commands/wangke19/gemini-ai-helpers/lint-fix)
Your own site
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/lint-fix"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/lint-fix/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-fix

Your own site · 80×15
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/lint-fix"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/lint-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 989 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.00012 $0.00989
Opus 5 $0.00006 $0.00495
Sonnet 5 $0.00002 $0.00198
Haiku 4.5 $0.00001 $0.00099

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

Security

Grade A, and why

lint-fix 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 5d 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.

extensions/golang/commands/lint-fix.md · 107 lines

How it starts

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

Name

golang:lint-fix

Synopsis

/golang:lint-fix
/golang:lint-fix [<linter-flags>]

Description

This command runs golangci-lint and systematically fixes all reported issues in the codebase. It creates a todo list to track progress and fixes issues by category until all linter checks pass.

This command handles common linter categories including goconst, gocyclo, prealloc, revive, staticcheck, and unparam with appropriate fix strategies for each.

Implementation

Follow this process:

  1. Run the "Go Lint" skill to identify all issues, extract the golangci-lint exact call from the skill and remember it. Pass through any additional flags the user provided.

  2. With the exact golangci-lint command, run with --fix appended, to automatically fix any auto-fixable issues.

    • Note: If the "Go Lint" skill used hack/go-lint.sh (a containerized script), the --fix flag cannot be passed to it. In this case, run golangci-lint run --fix directly (using the same config file if one exists in the repo, e.g., --config=.golangci.yaml).
  3. For the rest of the issues, create a todo list to track fixing each category of issues

  4. Fix all issues systematically using these example strategies:

    • goconst: Add constants for repeated strings (3+ occurrences)
    • gocyclo: Add //nolint:gocyclo comments for complex test functions with justification
    • prealloc: Pre-allocate slices when capacity is known using make([]T, 0, capacity)
    • revive: Fix comment spacing issues (add space after //)
    • staticcheck: Fix deprecated code, remove redundant checks, fix naming conventions (ErrFoo for errors)
    • unparam: Remove unused parameters or always-nil error returns
  5. Re-run exact golangci-lint command again after each category to verify fixes

  6. Continue until all issues are resolved

Important Guidelines

  • For test files with high cyclomatic complexity, add //nolint:gocyclo with reason "Table-driven test with inherent complexity"
  • For generated files, add //nolint comments rather than modifying the code
  • For Ginkgo/Gomega dot imports, add //nolint:staticcheck,revive with reason "Ginkgo/Gomega DSL convention"
  • When creating constants, check if one already exists in the package before adding a new one
  • Use existing constants from other packages when appropriate
  • For functions that always return nil error, remove the error return and update all callers
  • For unused parameters, either remove them or add //nolint:unparam if they're needed for interface compatibility

Read the full file on GitHub · 107 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. 5d ago First seen · 107 lines · 12 tokens per session scan A f69406cec397

Subscribe to this mod's changes

lint-fix is a command published in the GitHub repository wangke19/gemini-ai-helpers (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 12 tokens to every session and 989 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-09-03.