enforcement-ladder

enforcement-ladder is a cursor rule for Cursor from fmflurry/settings-opencode. It costs 243 tokens per session, scanned A, a copy of enforcement-ladder, MIT.

A set of rules for placing safeguards at the right level: code, automated checks, written instructions, or human review. It explains when a repeated mistake should become code or tooling instead of another prose rule.

In plain words
What is it for?
Use it when deciding how to enforce a repository rule or how to respond after the same failure happens more than once.
Why use it?
It reduces reliance on reminders and manual review when a type, test, linter, or other automated check could prevent the mistake. It also helps keep always-loaded instructions short.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it when deciding how to enforce a repository rule or how to respond after the same failure happens more than once.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/fmflurry/settings-opencode/enforcement-ladder
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.

Clone the repo
git clone --depth 1 https://github.com/fmflurry/settings-opencode

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 enforcement-ladder

README.md
[![agentmods](https://agentmods.dev/badge/rules/fmflurry/settings-opencode/enforcement-ladder/github.svg)](https://agentmods.dev/rules/fmflurry/settings-opencode/enforcement-ladder)
Your own site
<a href="https://agentmods.dev/rules/fmflurry/settings-opencode/enforcement-ladder"><img src="https://agentmods.dev/badge/rules/fmflurry/settings-opencode/enforcement-ladder/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 enforcement-ladder

Your own site · 80×15
<a href="https://agentmods.dev/rules/fmflurry/settings-opencode/enforcement-ladder"><img src="https://agentmods.dev/badge/rules/fmflurry/settings-opencode/enforcement-ladder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 243 This file is loaded in full into every session.
When invoked 243 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00243 $0.00243
Opus 5.5 $0.00097 $0.00097
Sonnet 5.5 $0.00049 $0.00049
Haiku 4.5 $0.00024 $0.00024

Measured 1mo ago against content hash 00492bd0c196, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

enforcement-ladder 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 1mo 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.

Origin

This is a copy

100% identical to enforcement-ladder — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/fmflurry-harness/rules/enforcement-ladder.mdc · 19 lines

What it actually says

Enforcement ladder

why-not-tooled: choosing the level is a judgment; no linter can see that a prose rule should have been code.

The pyramid is inverted: enforcement is wide in code and tooling, and thin in prose and human review. Put a fix at the first level that can hold it.

  1. Code — make the wrong state unrepresentable (types, API, structure, shared helper).
  2. Lint, test, or static analysis — fail the build or the suite.
  3. Prose rule — a rule, instruction, or skill mandate.
  4. Human review — only when the three above cannot catch it.

A prose rule includes why-not-tooled: naming the level that cannot enforce it. Prefer a description trigger or a paths / globs rule over always-on text. Adding always-on prose means deleting or shortening overlapping always-on prose in the same change, so the always-loaded line count does not rise.

The same failure twice means encode it in code or tooling and delete the extra prose. A one-off slip can stay a note.

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. 1mo ago First seen · 19 lines · 243 tokens per session scan A 00492bd0c196

Subscribe to this mod's changes

enforcement-ladder is a cursor rule published in the GitHub repository fmflurry/settings-opencode (170 stars, last pushed 24d ago), licensed MIT. It adds 243 tokens to every session, about $0.0010 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to enforcement-ladder, differing in 0 lines, and is treated as a copy.

Related

enforcement-ladder compared with cursor rules from other repositories

enforcement-ladder next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
enforcement-ladderfmflurry/settings-opencodeCursor rule17024d agoMITA243Cursor
clean-code-reviewerGktuOktay/ai-skillsCursor rule22mo agoMITA0Cursor
sweep-benchmarksbrendancol/xarray-spatial-skillsCursor rule34mo agononeA0Cursor
code-reviewalezmad/claudemeshCursor rule02mo agononeA178Cursor
ponytailDietrichGebert/ponytailCursor rule201k8d agoMITA604Cursor
angular-20angular/angularCursor rule102k4d agoMITA0Cursor
dev-standardapache/supersetCursor rule76ktodayApache-2.0A1,147Cursor