lint-fix

lint-fix is a command for coding agents from VersoXBT/claude-initial-setup. It costs 11 tokens per session (517 once invoked), scanned A, original, MIT.

An automated code-maintenance command that finds and fixes formatting and lint problems. Linters check code for common mistakes and style issues; formatters make its layout consistent.

In plain words
What is it for?
Use it to detect the project's formatting and lint tools, apply their fixes, review changed files, and rerun checks for remaining issues.
Why use it?
It removes many style corrections automatically and identifies problems that still need a developer to fix by hand.

Command

Part of the claude-initial-setup plugin — 75 skills, 15 commands, 14 agents, 2 hooks shipped together

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.

agentmods
npx agentmods add commands/versoxbt/claude-initial-setup/lint-fix
Clone the repo
git clone --depth 1 https://github.com/VersoXBT/claude-initial-setup

Or install claude-initial-setup, the plugin that ships this one along with the rest of its 75 skills, 15 commands, 14 agents, 2 hooks.

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/versoxbt/claude-initial-setup/lint-fix.svg)](https://agentmods.dev/commands/versoxbt/claude-initial-setup/lint-fix)
Your own site
<a href="https://agentmods.dev/commands/versoxbt/claude-initial-setup/lint-fix"><img src="https://agentmods.dev/badge/commands/versoxbt/claude-initial-setup/lint-fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 517 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00011 $0.00517
Opus 5 $0.00005 $0.00259
Sonnet 5 $0.00002 $0.00103
Haiku 4.5 $0.00001 $0.00052

Measured 4d ago against content hash 99d503c7273c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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.

commands/lint-fix.md · 55 lines

How it starts

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

Lint Fix

Run linters and formatters to fix code style issues, then report any remaining manual fixes needed.

Steps

  1. Detect the project's lint and format tools:

    • Check for ESLint, Prettier, Biome, or similar in the config files and package.json.
    • Check for language-specific tools: ruff/black (Python), gofmt (Go), rustfmt (Rust), etc.
    • Identify the configuration files (.eslintrc, .prettierrc, biome.json, ruff.toml, etc.).
  2. Run the formatter first:

    • Execute the formatter with auto-fix (e.g., prettier --write ., black ., gofmt -w .).
    • Capture and note any files that were modified.
    • If no formatter is configured, skip this step.
  3. Run the linter with auto-fix:

    • Execute the linter with fix flag (e.g., eslint --fix ., ruff check --fix .).
    • Capture the output and note auto-fixed issues.
    • Record any issues that cannot be auto-fixed.
  4. Review remaining manual issues:

    • For each unfixable issue, read the affected code and understand the problem.
    • Fix issues that require code logic changes (unused variables, unreachable code, type errors).
    • Do not suppress warnings without justification — fix the root cause.
  5. Run the linter again:

    • Verify all auto-fixed issues are resolved.
    • Verify manually fixed issues are resolved.
    • Confirm zero lint errors and zero warnings (or only intentionally suppressed warnings).
  6. Verify the build:

    • Run the build to ensure lint fixes did not break compilation or bundling.
    • Run the test suite to ensure lint fixes did not change behavior.
    • If anything breaks, revert the problematic fix and apply a different solution.

If the Linter Configuration Is Missing

  • Do not introduce a new linter without user approval.
  • Note the absence and recommend a linter setup for the project's language.

If Auto-Fix Changes Break Tests

  • Revert the auto-fix changes that caused the failure.
  • Apply fixes manually with more care for the specific context.
  • Run tests after each manual fix.

Read the full file on GitHub · 55 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. 4d ago First seen · 55 lines · 11 tokens per session scan A 99d503c7273c

Subscribe to this mod's changes

lint-fix is a command published in the GitHub repository VersoXBT/claude-initial-setup (4 stars, last pushed 3mo ago), licensed MIT. It adds 11 tokens to every session and 517 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.