simplicity

simplicity is a cursor rule for Cursor from louisbrulenaudet/monorepo-template. It costs 835 tokens per session, scanned A, original, Apache-2.0.

A coding rule that favors the smallest correct change. It tells an agent to understand the existing code first, then reuse repository code, platform features, or installed dependencies before adding new code.

In plain words
What is it for?
Use it when implementing a feature, fixing a bug, or deciding whether to add a helper, layer, fallback, or dependency.
Why use it?
It reduces unnecessary abstractions, duplicate helpers, dependencies, and defensive code. This keeps changes easier to review and less likely to introduce unrelated problems.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when implementing a feature, fixing a bug, or deciding whether to add a helper, layer, fallback, or dependency.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/louisbrulenaudet/monorepo-template/simplicity
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/louisbrulenaudet/monorepo-template

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 simplicity

README.md
[![agentmods](https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/simplicity/github.svg)](https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/simplicity)
Your own site
<a href="https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/simplicity"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/simplicity/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 simplicity

Your own site · 80×15
<a href="https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/simplicity"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/simplicity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 835 This file is loaded in full into every session.
When invoked 835 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 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.00835 $0.00835
Opus 5.5 $0.00334 $0.00334
Sonnet 5.5 $0.00167 $0.00167
Haiku 4.5 $0.00084 $0.00084

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

Security

Grade A, and why

simplicity 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 15d 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/quality/simplicity.mdc · 49 lines

How it starts

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

Simplicity

The best diff is the smallest one that fully solves the problem. Agents over-build - a layer, a helper, a fallback, a dependency "for later"; later can build for itself. Writing less code never means understanding less.

Understand first

  • Read the task and every file the change touches, and trace the real flow end to end before choosing a solution: the smallest change in the wrong place is a second bug.
  • A bug report names a symptom. Grep every caller of the function you are about to touch and fix the shared function once, not only the reported path.

The ladder

Stop at the first rung that holds:

  1. Does it need to exist? Skip a speculative need and say so in one line.
  2. Is it already in the repo? Reuse the @repo/* package, helper, schema, or pattern a few files over; re-implementing what exists is the most common agent slop.
  3. Does the platform do it? Web and Workers APIs (URL, URLSearchParams, Intl, crypto.randomUUID, structuredClone, AbortSignal.timeout, Response.json), CSS over JS, a native element over a widget, a database constraint over app code.
  4. Does an installed dependency do it? Hono helpers and middleware, Zod, TanStack Query and Router features. Never add a dependency for what a few lines do; a justified one goes through the catalog.
  5. Only then write the minimum code that works.

Between two options of the same size, take the one correct on edge cases: less code, not a flimsier algorithm.

Do not generate

  • An interface, factory, generic, or strategy with one implementation; a wrapper that only delegates; a layer with one caller.
  • Options, parameters, flags, or config nobody sets. A value that never changes is a const.
  • A new file for a helper with one caller, or a barrel that re-exports one thing.
  • Defensive code the types already rule out: a null check on a non-nullable value, re-parsing data a Zod schema already parsed, a try/catch that only rethrows or that logs and swallows.
  • Fallbacks, retries, or caches no observed failure or measurement asked for.
  • Back-compat aliases, shims, or re-exports for code with no external caller - update the callers and delete the old name.
  • Stubs, TODO scaffolding, and extension points "for later".

Read the full file on GitHub · 49 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. 15d ago Changed · -1 lines · -13 tokens per session d04f3a8e0db5
  2. 16d ago First seen · 50 lines · 848 tokens per session scan A d25aad7e7023

Subscribe to this mod's changes

simplicity is a cursor rule published in the GitHub repository louisbrulenaudet/monorepo-template (19 stars, last pushed 3d ago), licensed Apache-2.0. It adds 835 tokens to every session, about $0.0033 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-09-29.