lint

lint is a command for Claude Code from vishnu2kmohan/mcp-server-langgraph. It costs 15 tokens per session (1,350 once invoked), scanned A, original, MIT.

A command that runs code-quality checks for style, formatting, imports, type annotations, and common security issues.

In plain words
What is it for?
Use it to check or fix Python formatting and imports, run linting and type checks, perform a security scan, and simulate commit or push checks.
Why use it?
It catches problems before code is committed or pushed, and can automatically fix some formatting issues.

Command for Claude Code

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/vishnu2kmohan/mcp-server-langgraph/lint
Clone the repo
git clone --depth 1 https://github.com/vishnu2kmohan/mcp-server-langgraph

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 lint

README.md
[![agentmods](https://agentmods.dev/badge/commands/vishnu2kmohan/mcp-server-langgraph/lint.svg)](https://agentmods.dev/commands/vishnu2kmohan/mcp-server-langgraph/lint)
Your own site
<a href="https://agentmods.dev/commands/vishnu2kmohan/mcp-server-langgraph/lint"><img src="https://agentmods.dev/badge/commands/vishnu2kmohan/mcp-server-langgraph/lint.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 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,350 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.00015 $0.01350
Opus 5 $0.00008 $0.00675
Sonnet 5 $0.00003 $0.00270
Haiku 4.5 $0.00002 $0.00135

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

Security

Grade A, and why

lint 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 5d 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.

.claude/commands/lint.md · 199 lines

How it starts

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

Run Comprehensive Lint Checks

Execute comprehensive code quality checks to ensure code passes all lint validations before commit/push.

Quick Lint Operations

Check for Issues (Non-destructive)

make lint-check

Runs all lint checks without modifying files:

  • flake8 (syntax errors, code style)
  • black (formatting check)
  • isort (import order check)
  • mypy (type checking - warning-only, non-blocking during gradual rollout)
  • bandit (security scan)

Auto-fix Formatting Issues

make lint-fix

Automatically fixes:

  • Code formatting (black)
  • Import order (isort)

Then run make lint-check to verify remaining issues.

Pre-commit/Pre-push Simulation

Test Pre-commit Hook

make lint-pre-commit

Simulates what will run when you commit:

  • Runs on all files (or staged files if available)
  • Auto-fixes black/isort issues
  • Runs flake8, mypy, bandit validation
  • Shows exactly what the pre-commit hook will do

Test Pre-push Hook

make lint-pre-push

Simulates what will run when you push:

  • Runs on files changed from origin/main
  • Comprehensive validation (flake8, black, isort, mypy, bandit)
  • Blocks if any check fails

Individual Linters

Flake8 (Syntax & Style)

uv run --frozen flake8 src/ --count --select=E9,F63,F7,F82 --show-source --statistics

Catches:

  • Syntax errors
  • Undefined names
  • Import issues
  • Critical code issues

Black (Code Formatting)

# Check only
uv run --frozen black --check src/ --line-length=127

# Auto-fix
uv run --frozen black src/ --line-length=127

Isort (Import Sorting)

# Check only
uv run --frozen isort --check src/ --profile=black --line-length=127

# Auto-fix
uv run --frozen isort src/ --profile=black --line-length=127

Mypy (Type Checking)

uv run --frozen mypy src/ --ignore-missing-imports --show-error-codes

Checks type safety based on pyproject.toml configuration.

Note: Mypy is currently non-blocking (warning-only) during gradual rollout. 500+ type errors remain to be fixed. Mypy will be made blocking in future once type error count is significantly reduced.

Read the full file on GitHub · 199 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. 5d ago First seen · 199 lines · 15 tokens per session scan A 523486d8870e

Subscribe to this mod's changes

lint is a command published in the GitHub repository vishnu2kmohan/mcp-server-langgraph (4 stars, last pushed 5d ago), licensed MIT. It adds 15 tokens to every session and 1,350 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.