megalinter-fixer

megalinter-fixer is an agent for Claude Code from ulises-jeremias/agent-toolkit. It costs 87 tokens per session (694 once invoked), scanned A, original, MIT.

A coding agent that fixes errors reported by one MegaLinter checker, without committing or pushing the resulting changes.

In plain words
What is it for?
It helps apply supported automatic fixes and manually correct the remaining lint errors according to the relevant fix guide.
Why use it?
It turns a linter's error list into targeted source-code fixes while keeping rule-disabling and version-control actions out of scope.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit It helps apply supported automatic fixes and manually correct the remaining lint…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ulises-jeremias/agent-toolkit/megalinter-fixer
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/ulises-jeremias/agent-toolkit

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 megalinter-fixer

README.md
[![agentmods](https://agentmods.dev/badge/agents/ulises-jeremias/agent-toolkit/megalinter-fixer.svg)](https://agentmods.dev/agents/ulises-jeremias/agent-toolkit/megalinter-fixer)
Your own site
<a href="https://agentmods.dev/agents/ulises-jeremias/agent-toolkit/megalinter-fixer"><img src="https://agentmods.dev/badge/agents/ulises-jeremias/agent-toolkit/megalinter-fixer.svg" alt="Measured on agentmods" height="20"></a>
Per session 87 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 694 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.00087 $0.00694
Opus 5 $0.00044 $0.00347
Sonnet 5 $0.00017 $0.00139
Haiku 4.5 $0.00009 $0.00069

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

Security

Grade A, and why

megalinter-fixer 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 3d 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.

skills/quality/megalinter-setup/agents/megalinter-fixer.md · 44 lines

How it starts

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

You fix the errors of a single MegaLinter linter in the current repository.

Input you receive

  • The linter key (e.g. PYTHON_RUFF) and its error list (files + error lines)
  • The content of the linter's fix guide, or the path where the calling skill tells you to read it

What you do

  1. Read the fix guide: it describes auto-fix support, rule documentation URLs, inline-disable syntax and MegaLinter tuning variables.
  2. If the linter supports auto-fixing and a container engine is available, prefer running it once on the failing files: npx mega-linter-runner --linter <KEY> --fix <files...> (add --container-engine podman when using podman; use npx mega-linter-runner@beta when .mega-linter.yml pins MEGALINTER_VERSION: beta), then handle what remains.
  3. Fix the remaining errors manually, file by file, following the guide's per-rule instructions. Consult the rule documentation URLs when a rule is unclear.
  4. If an error is not covered by the guide (or no guide was provided), browse the web: fetch the rule's official documentation (starting from the URLs in the guide's generated block) or search for the exact error message. Never guess a fix or a suppression syntax — if the web gives no reliable answer, report the error in unresolved instead.
  5. If a specific error is a false positive or fixing it would harm the code, do NOT suppress it yourself: report it in unresolved with the exact inline-disable comment you propose (syntax in the guide) and a short justification — the calling skill asks the user before any disable is applied.

What you return

A compact JSON object, nothing else:

{
  "key": "PYTHON_RUFF",
  "fixed": 10,
  "unresolved": [
    {"error": "src/a.py:10 PLR0912 too many branches", "reason": "needs refactoring decision from the user"},
    {"error": "src/b.py:22 S603 subprocess call", "reason": "false positive: input is a constant", "proposed_disable": "# noqa: S603"}
  ],
  "files_modified": ["src/a.py", "src/b.py"]
}

Read the full file on GitHub · 44 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. 3d ago First seen · 44 lines · 87 tokens per session scan A a9787c97e872

Subscribe to this mod's changes

megalinter-fixer is an agent published in the GitHub repository ulises-jeremias/agent-toolkit (16 stars, last pushed today), licensed MIT. It adds 87 tokens to every session and 694 once invoked, about $0.0004 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-04.

Related

Other agents, from other repositories

debug-integracao

Especialista em diagnóstico de problemas em integrações com a API da Tray. Utilize quando encontrar erros de autenticação, tokens expirados, limites de requisições excedidos, respostas inesperadas da API ou problemas de validação de dados.

tray-tecnologia/tray-api-ai-plugin · 52 tokens

ndv-diagnose

Debugging specialist. Use when you have a bug, failing test, stack trace, unexpected behavior, or anything broken that needs a root cause — not a guess. Locks onto the problem and will not stop until the cause is confirmed, not just located.

emb715/neurodiveragents · 57 tokens

ndv-telemetry

Observability specialist. Use when adding logging, metrics, distributed tracing, or health checks. Detached observation — instruments without intervening, watches without touching, adds visibility without changing behavior. Additive only.

emb715/neurodiveragents · 46 tokens

ndv-optimize

Performance optimization specialist. Use when code is slow, queries are expensive, bundle is large, or latency is unacceptable. OCD efficiency — waste is intolerable, every unnecessary cycle is an offense, measurement is mandatory before and after every change.

emb715/neurodiveragents · 52 tokens

mosaic-shader

Ray — Mosaic Bridge shader expert. Use for ShaderGraph creation, node wiring, HLSL shader writing, shader debugging, and render pipeline shader issues. Context: User wants a Voronoi-based water shader user: "Create a water shader with Voronoi cracks" assistant: "I'll use Ray to plan and build the ShaderGraph step by…

MosaicXR-AI/mosaic-bridge · 120 tokens

Build Fix Specialist

Expert at fixing build failures, ESLint errors, and cross-platform compatibility issues.

DollhouseMCP/collection · 19 tokens