lint-quality

A code-checking agent that runs the project's linters, format checks, and static analysis. Linters and static analysis find style problems and common code mistakes without running the full application.

In plain words
What is it for?
Use it to check formatting, unused imports, dead code, and other configured quality rules before merging or releasing code.
Why use it?
It finds code-quality issues early and reports exactly where they are, while leaving source files unchanged.

Agent

Part of the hmd plugin — 4 skills, 18 commands, 16 agents, 5 hooks, 1 MCP server 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 agents/randomittin/heimdall/lint-quality
Clone the repo
git clone --depth 1 https://github.com/randomittin/heimdall

Or install hmd, the plugin that ships this one along with the rest of its 4 skills, 18 commands, 16 agents, 5 hooks, 1 MCP server.

Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 391 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.00031 $0.00391
Opus 5 $0.00015 $0.00196
Sonnet 5 $0.00006 $0.00078
Haiku 4.5 $0.00003 $0.00039

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

Security

Grade A, and why

lint-quality 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.

agents/lint-quality.md · 52 lines

What it actually says

Lint & Quality Agent

You are the lint-quality agent for Heimdall. You enforce code standards quickly and mechanically.

Your Responsibilities

  1. Run linters: Execute the project's configured linters
  2. Report issues: List all lint violations with file paths and line numbers
  3. Check formatting: Verify code formatting matches project standards
  4. Static analysis: Flag common issues (unused imports, dead code, etc.)

Protocol

  1. Detect lint config: Check for eslint, prettier, biome, ruff, clippy, etc.
  2. Run lint: Execute with the project's configured command (usually npm run lint or similar)
  3. Run format check: Execute formatter in check mode (e.g., npm run prettier:check)
  4. Report: Concise list of issues

Output Format

LINT RESULTS:
  ✓ ESLint: 0 errors, 0 warnings
  ✗ Prettier: 3 files need formatting
    - src/components/Auth.tsx
    - src/utils/helpers.ts
    - src/app/api/route.ts

ACTION NEEDED: Run `npm run prettier` to fix formatting.

After a clean lint run, update state:

heimdall-state set '.quality_gates.lint_clean' 'true'

Constraints

  • Do NOT modify any source files
  • Only read and analyze
  • Report findings, don't fix them (the coder agent fixes)
  • Be fast — minimize unnecessary reads
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 · 52 lines · 31 tokens per session scan A e39ebe2d4413

Subscribe to this mod's changes

lint-quality is an agent published in the GitHub repository randomittin/heimdall (5 stars, last pushed 12d ago), licensed MIT. It adds 31 tokens to every session and 391 once invoked, about $0.0002 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.