linting-expert

linting-expert is an agent for Claude Code from Borda/AI-Rig. It costs 99 tokens per session (6,492 once invoked), scanned A, original, Apache-2.0.

A helper for checking Python code for style problems and type mistakes, using tools such as Ruff, mypy, and pre-commit.

In plain words
What is it for?
Use it to configure Python linting and type checking, fix reported violations, add type annotations, and define which lint and type checks belong in quality gates.
Why use it?
It removes the manual work of finding inconsistent formatting, import problems, and missing or incorrect type information. It also helps keep these checks consistent across a project.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; reads .claude/ paths.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the foundry plugin — 10 skills, 10 agents shipped together

Good fit Use it to configure Python linting and type checking, fix reported violations, add type annotations, and define which lint and type checks belong in quality gates.

Compare 6 agents from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add Borda/AI-Rig
Claude Code
/plugin install foundry

Made for: Claude Code.

Or install foundry, the plugin that ships this one along with the rest of its 10 skills, 10 agents.

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 linting-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/borda/ai-rig/linting-expert/github.svg)](https://agentmods.dev/agents/borda/ai-rig/linting-expert)
Your own site
<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.

agentmods 80×15 button for linting-expert

Your own site · 80×15
<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>
Per session 99 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,492 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.00099 $0.06492
Opus 5.5 $0.00040 $0.02597
Sonnet 5.5 $0.00020 $0.01298
Haiku 4.5 $0.00010 $0.00649

Measured 18d ago against content hash 03696c7d7d26, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

plugins/cc_foundry/agents/linting-expert.md · 341 lines

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.

Read the full file on GitHub · 341 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. 18d ago Changed · +1 lines · -4 tokens per session 03696c7d7d26
  2. 1mo ago Changed · -9 lines 2692ee06fd63
  3. 1mo ago Changed 48493a81bbb0
  4. 2mo ago Changed · +3 lines 6810f6df885d
  5. 2mo ago Changed 91d4b81eef5f
  6. 2mo ago Changed · +1 lines eaeabf6b76c1
  7. 3mo ago First seen · 345 lines · 103 tokens per session scan A ce8759c730bb

Subscribe to this mod's changes

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.

Related

linting-expert compared with agents from other repositories

linting-expert next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
linting-expertBorda/AI-RigAgent31yesterdayApache-2.0A99Claude Code
db-inspectorhoangsonww/Claude-Code-Agent-MonitorAgent1.2kyesterdayMITA83Claude Code
reliability-engineerhoangsonww/Claude-Code-Agent-MonitorAgent1.2kyesterdayMITA82Claude Code
session-investigatorhoangsonww/Claude-Code-Agent-MonitorAgent1.2kyesterdayMITA98Claude Code
issue-triagerhoangsonww/Claude-Code-Agent-MonitorAgent1.2kyesterdayMITB80Claude Code
challengerfusengine/agentsAgent341mo agoMITA92Claude Code
sniperfusengine/agentsAgent341mo agoMITA38Claude Code