lint-audit

A structured audit of one Biome or ESLint lint rule. Lint rules automatically detect code patterns that may violate a project’s style, correctness, or safety conventions.

In plain words
What is it for?
Use it to run the relevant lint checks, count and locate violations, research the rule’s guidance, and choose whether to fix, configure, or leave the findings.
Why use it?
It shows where the rule is violated, explains what the rule means, and turns the findings into an actionable fix strategy.

Command

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/bengous/claude-code-plugins/lint-audit
Clone the repo
git clone --depth 1 https://github.com/bengous/claude-code-plugins
Per session 20 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,914 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.00020 $0.01914
Opus 5 $0.00010 $0.00957
Sonnet 5 $0.00004 $0.00383
Haiku 4.5 $0.00002 $0.00191

Measured 2d ago against content hash 4948117aac9a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lint-audit 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 2d 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.

code-quality/commands/lint-audit.md · 263 lines

How it starts

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

Lint Rule Audit

Rule: $ARGUMENTS

Your Task

Execute a systematic lint rule audit following these phases. Take action at each phase—run commands, spawn subagents, analyze code—rather than only suggesting. Research best practices, analyze violations in the codebase, and provide actionable recommendations.

Phase 1: Discovery

Run the lint command to find all violations:

# Try common lint scripts - adapt to project
bun run lint:only $ARGUMENTS 2>/dev/null || \
bunx biome lint --only=nursery/$ARGUMENTS . 2>/dev/null || \
bunx biome lint --only=style/$ARGUMENTS . 2>/dev/null || \
bunx biome lint --only=suspicious/$ARGUMENTS .

Capture and report:

  • Total violation count (errors, warnings, infos)
  • Number of files affected
  • Primary locations (which directories/modules)

When zero violations are found, report:

No violations found for $ARGUMENTS in this codebase. The rule is either not enabled or the code already complies.

Then proceed directly to the Decision phase (Phase 6) with "Do nothing" as the recommended option.

Phase 2: Research

Primary Source: Biome CLI (fast, offline)

bunx biome explain $ARGUMENTS

This provides:

  • Summary (name, fix availability, severity, version, category)
  • Domains (framework dependencies like react@>=16.0.0)
  • Full description
  • Invalid examples (what gets flagged)
  • Valid examples (correct patterns)

Secondary Sources (parallel subagents)

Spawn these when:

  • Rule is in nursery (experimental/controversial)
  • User asks for "best practices" or "modern approach"
  • Biome explanation lacks context on WHY the rule exists

Read the full file on GitHub · 263 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. 2d ago First seen · 263 lines · 20 tokens per session scan A 4948117aac9a

Subscribe to this mod's changes

lint-audit is a command published in the GitHub repository bengous/claude-code-plugins (4 stars, last pushed 2d ago), licensed MIT. It adds 20 tokens to every session and 1,914 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.