saropa_lints_instructions

saropa_lints_instructions is a cursor rule for coding agents from saropa/saropa_lints. It costs 521 tokens per session, scanned A, original, MIT.

Project-specific instructions for developing Saropa Lints, a Dart package that provides custom checks for Dart code. They describe where to register new checks, how to test them, and which project files to update.

In plain words
What is it for?
Use them when adding or changing lint rules, updating project indexes or release notes, creating test fixtures, and running the required analysis, tests, and formatting.
Why use it?
They keep changes consistent with the package's structure and prevent incomplete work, such as an unregistered lint or missing tests and documentation.

Cursor rule

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 rules/saropa/saropa_lints/saropa_lints_instructions
Clone the repo
git clone --depth 1 https://github.com/saropa/saropa_lints

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 saropa_lints_instructions

README.md
[![agentmods](https://agentmods.dev/badge/rules/saropa/saropa_lints/saropa_lints_instructions.svg)](https://agentmods.dev/rules/saropa/saropa_lints/saropa_lints_instructions)
Your own site
<a href="https://agentmods.dev/rules/saropa/saropa_lints/saropa_lints_instructions"><img src="https://agentmods.dev/badge/rules/saropa/saropa_lints/saropa_lints_instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 521 This file is loaded in full into every session.
When invoked 521 The same file — it is already loaded in full.
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.00521 $0.00521
Opus 5 $0.00260 $0.00260
Sonnet 5 $0.00104 $0.00104
Haiku 4.5 $0.00052 $0.00052

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

Security

Grade A, and why

saropa_lints_instructions 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.

extension/media/saropa_lints_instructions.mdc · 38 lines

How it starts

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

Guidelines when working on the saropa_lints codebase (Dart custom lint rules package).

Essential Files to Update

Workflow

  • Adding a rule: Implement in appropriate lib/src/rules/*_rules.dart, extend DartLintRule or SaropaLintRule, add DartDoc with Bad/Good examples, register in all_rules.dart and tiers.dart, add ROADMAP entry, add fixture in example/ (mark violations with // LINT) and unit test in test/.
  • Validation: Run /analyze, /test, /format. Use Skill(lint-rules) when adding or modifying rules.
  • Example dirs: All example*/ must be in analysis_options.yaml under analyzer > exclude (they contain intentional violations).

You Must NOT

  • Add or support // ignore: or // ignore_for_file: (no quick fixes that insert ignore; no custom ignore-detection in rules). Fix the rule or the code instead.
  • Add quick fixes that only insert a // TODO: ... comment; fixes must make a real code change that resolves the violation.
  • Add Co-authored-by, AI attribution, or emojis to commit messages.

Principles

  • Search first: Check CODE_INDEX.md and lib/src utilities before adding new code.
  • ProjectContext: Use for package detection, platform detection, file classification—do not reimplement.
  • Type checking over string matching; early returns for simple checks.
  • Code quality: Functions ≤50 lines, parameters ≤3, nesting ≤3, files ≤200 lines (self-reviewer enforces).

Commands and Skills

  • /analyze, /test, /format, /review, /commit as in CLAUDE.md.
  • Skill(lint-rules) for rule work; Skill(publishing) for releasing.

Read the full file on GitHub · 38 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 · 38 lines · 521 tokens per session scan A 639e9e261f27

Subscribe to this mod's changes

saropa_lints_instructions is a cursor rule published in the GitHub repository saropa/saropa_lints (8 stars, last pushed 4d ago), licensed MIT. It adds 521 tokens to every session, about $0.0026 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.