lint

lint is a cursor rule for Cursor from rajitsaha/100xprism. It costs 6 tokens per session (951 once invoked), scanned A, original, MIT.

A code-quality workflow that detects common checking tools for Python, JavaScript, and TypeScript projects, then fixes reported style and type errors.

In plain words
What is it for?
Use it to run and fix Ruff, ESLint, and TypeScript checks in frontend, backend, or Python codebases.
Why use it?
It removes repetitive manual cleanup and catches formatting, lint, and type problems before they reach the rest of the team or users.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./venv/bin/ruff check . --fix.

Good fit Use it to run and fix Ruff, ESLint, and TypeScript checks in frontend, backend, or Python codebases.

Compare 6 cursor rules from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/rajitsaha/100xprism
agentmods
npx agentmods add rules/rajitsaha/100xprism/lint

Made for: Cursor.

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/rules/rajitsaha/100xprism/lint/github.svg)](https://agentmods.dev/rules/rajitsaha/100xprism/lint)
Your own site
<a href="https://agentmods.dev/rules/rajitsaha/100xprism/lint"><img src="https://agentmods.dev/badge/rules/rajitsaha/100xprism/lint/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 lint

Your own site · 80×15
<a href="https://agentmods.dev/rules/rajitsaha/100xprism/lint"><img src="https://agentmods.dev/badge/rules/rajitsaha/100xprism/lint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 951 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.00006 $0.00951
Opus 5 $0.00003 $0.00476
Sonnet 5 $0.00001 $0.00190
Haiku 4.5 $0.00001 $0.00095

Measured 5d ago against content hash 225da43ac53b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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.

.cursor/rules/lint.mdc · 127 lines

How it starts

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

Suggested model tier: fast / low-cost (mechanical task)

Lint — Lint, Format & Type Check

You are a code quality engineer. Auto-detect the linting stack, run it, fix all errors. Zero errors before done.

Do NOT ask for permission — just fix everything.


Step 1 — Detect lint stack

PROJECT_ROOT=$(git rev-parse --show-toplevel)
cd "$PROJECT_ROOT"
ls pyproject.toml ruff.toml eslint.config.* .eslintrc* tsconfig.json 2>/dev/null
ls api/eslint.config.* api/.eslintrc* api/tsconfig.json 2>/dev/null

Determine which apply:

  • ruff (Python): pyproject.toml with [tool.ruff] section
  • ESLint (frontend): eslint.config.* or .eslintrc* in root
  • ESLint (backend JS): eslint.config.* or .eslintrc* in api/
  • TypeScript (frontend): tsconfig.json in root
  • TypeScript (backend): tsconfig.json in api/

Step 2 — Auto-fix

ruff (Python):

./venv/bin/ruff check . --fix
./venv/bin/ruff format .

ESLint (frontend):

npm run lint -- --fix 2>/dev/null || npx eslint . --fix

ESLint (backend JS):

cd api && npm run lint -- --fix 2>/dev/null || npx eslint src --ext .ts --fix

Step 3 — Type check

TypeScript (frontend) — blocking:

npm run typecheck 2>&1 || npx tsc --noEmit 2>&1

TypeScript (backend JS) — blocking:

cd api && npm run typecheck 2>&1 || npx tsc --noEmit 2>&1

Python mypy — non-blocking:

./venv/bin/mypy . --ignore-missing-imports 2>&1 || true

Step 4 — Fix remaining errors manually

For each error auto-fix could not handle, read the file and fix it.

ESLint:

  • no-unused-vars / @typescript-eslint/no-unused-vars → remove or prefix with _
  • @typescript-eslint/no-explicit-any → replace with proper type or unknown
  • no-console → replace with project logger
  • react-hooks/exhaustive-deps → add missing deps or wrap with useCallback/useMemo
  • @typescript-eslint/no-non-null-assertion → add null check instead of !

Read the full file on GitHub · 127 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 · 127 lines · 6 tokens per session scan A 225da43ac53b

Subscribe to this mod's changes

lint is a cursor rule published in the GitHub repository rajitsaha/100xprism (10 stars, last pushed 9d ago), licensed MIT. It adds 6 tokens to every session and 951 once invoked, about $0.0000 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-03.