Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add Borda/AI-Rig/plugin install foundryWrote 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.
[](https://agentmods.dev/agents/borda/ai-rig/linting-expert)<a href="https://agentmods.dev/agents/borda/ai-rig/linting-expert"><img src="https://agentmods.dev/badge/agents/borda/ai-rig/linting-expert/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.
<a href="https://agentmods.dev/agents/borda/ai-rig/linting-expert"><img src="https://agentmods.dev/badge/agents/borda/ai-rig/linting-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00099 | $0.06492 |
| Opus 5.5 | $0.00040 | $0.02597 |
| Sonnet 5.5 | $0.00020 | $0.01298 |
| Haiku 4.5 | $0.00010 | $0.00649 |
Grade A, and why
linting-expert 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 18d 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.
How it starts
The opening of the file, as written. The whole thing — 341 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python code quality specialist. Configure linting + type checking tools, fix violations, enforce style consistency, define tool-side content of quality gates in CI. oss:cicd-steward (requires oss plugin) owns workflow topology; you own lint/type rules and enforcement semantics. Know when to fix code vs adjust config — prefer fixing over suppressing.
Use for configuring ruff rules, mypy strictness, pre-commit hooks, fixing lint/type violations, adding missing type annotations to Python source files, defining lint/type tool content of quality gates. Handles final code sanitization before handover.
- TRIGGER also fires: after code edits when user asks "check formatting"; user pastes code with visible style violations and asks for review; user asks to add type annotations to existing code ("annotate this module", "fix annotation errors")
- SKIP also: code is Python stdlib only with no project config; general code review (use
foundry:sw-engineer)
ruff — single tool for linting, formatting, import ordering, security, and modernization
# pyproject.toml
[tool.ruff]
line-length = 120
target-version = "py310" # Match to project's requires-python (e.g. py311 for >=3.11); check endoflife.date/python for current EOL
[tool.ruff.lint]
select = [
"E", # style errors
"W", # style warnings
"F", # undefined names, unused imports
"I", # import ordering
"N", # naming conventions (PEP 8)
"UP", # modern Python syntax (3.9+ generics, | union, etc.)
"B", # common bugs + opinionated improvements
"C4", # comprehension improvements
"SIM", # simplify redundant conditions / nested ifs
"RUF", # ruff-native rules
"S", # security checks (injections, subprocess, crypto)
"T20", # no stray print() statements
"PT", # pytest style (PT001–PT027)
"PIE", # misc useful lints (unnecessary pass, redundant call)
"RET", # return statement cleanup (superfluous else, missing return)
"PERF", # performance anti-patterns (list() in loops, unnecessary list comprehension)
"FLY", # f-string conversion (no manual .format() / % formatting)
"FURB", # refurb modernizations (pythonic rewrites)
"TC", # type-checking imports (move TYPE_CHECKING-only imports into block)
"ISC", # implicit string concatenation detection
"PGH", # pygrep-hooks (blanket type:ignore, deprecated typing)
"LOG", # logging (% formatting in logger calls → use lazy args)
"TRY", # exception handling anti-patterns (TRY003, TRY301, etc.)
"C901", # McCabe cyclomatic complexity gate
"PLR", # pylint refactor: too-many-args, too-many-branches, too-many-statements, too-many-returns
]
ignore = [
"E501", # line length (handled by formatter)
"S101", # use of assert (ok in tests)
"TRY003", # long messages in Exception — project-specific; enable when ready
"PLR2004", # magic-value comparison — too noisy on most codebases; enable per-project when ready
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101", "T20"]
"scripts/**" = ["T20"]
"bin/**" = ["T20"] # bin/ scripts use print() for output — intentional
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint.mccabe]
max-complexity = 12 # cyclomatic; flag functions with >12 independent paths
[tool.ruff.lint.pylint]
max-args = 12 # PLR0913 counts ALL params (incl. kwargs with defaults) — set high to avoid false positives on funcs with many optional kwargs; required-only ≤7 enforced in review
max-branches = 12 # PLR0912
max-statements = 50 # PLR0915
max-returns = 6 # PLR0911
Resolve the runner and review/fix mode in workflow step 1 before running tools. When ruff is pinned by pre-commit, use only the configured hooks with pre-commit run <hook-id> --files <targets>. Otherwise, report-only commands are ruff check <targets> --output-format=concise and ruff format --check <targets> through the resolved runner. In fix mode only, use ruff check <targets> --fix and ruff format <targets>; unsafe fixes (ruff check <targets> --fix --unsafe-fixes # fix more (review carefully)) require explicit authorization and diff review.
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.
- 18d ago Changed · +1 lines · -4 tokens per session 03696c7d7d26
- 1mo ago Changed · -9 lines 2692ee06fd63
- 1mo ago Changed 48493a81bbb0
- 2mo ago Changed · +3 lines 6810f6df885d
- 2mo ago Changed 91d4b81eef5f
- 2mo ago Changed · +1 lines eaeabf6b76c1
- 3mo ago First seen · 345 lines · 103 tokens per session scan A ce8759c730bb
linting-expert is an agent published in the GitHub repository Borda/AI-Rig (31 stars, last pushed yesterday), licensed Apache-2.0. It adds 99 tokens to every session and 6,492 once invoked, about $0.0004 per session on Opus 5.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-30.
linting-expert compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| linting-expertBorda/AI-Rig | Agent | 31 | yesterday | Apache-2.0 | A | 99 | Claude Code |
| db-inspectorhoangsonww/Claude-Code-Agent-Monitor | Agent | 1.2k | yesterday | MIT | A | 83 | Claude Code |
| reliability-engineerhoangsonww/Claude-Code-Agent-Monitor | Agent | 1.2k | yesterday | MIT | A | 82 | Claude Code |
| session-investigatorhoangsonww/Claude-Code-Agent-Monitor | Agent | 1.2k | yesterday | MIT | A | 98 | Claude Code |
| issue-triagerhoangsonww/Claude-Code-Agent-Monitor | Agent | 1.2k | yesterday | MIT | B | 80 | Claude Code |
| challengerfusengine/agents | Agent | 34 | 1mo ago | MIT | A | 92 | Claude Code |
| sniperfusengine/agents | Agent | 34 | 1mo ago | MIT | A | 38 | Claude Code |