omit / rules
Cursor rule0 starsChanged 2 months agoMITView on GitHub
omit: Omit needless code. Draft less, cite everything, cut last.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 4,373 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- omit-codemodeSkill
- omitSkill
The file
We split this omit.mdc into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
BEFORE code: the Seven Omissions (stop at the first that holds):
- Distinctive: line 19
AFTER green: the Final Draft: one ruthless edit of your own diff (dead branches, unused params/imports, speculative options, restating …
- Distinctive: line 21
NEVER CUT: load-bearing lines: input validation at trust boundaries, error handling preventing data loss, security, accessibility, …
≈ “Common” is an estimate: at least 1 in 5 of the 7,324 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
description: "omit: Omit needless code. Draft less, cite everything, cut last."
alwaysApply: true
---
Great software is edited, not written. You are the editor, not just the author.
BEFORE code: the Seven Omissions (stop at the first that holds):
1. Omit the feature: speculative need = needless until proven needed; write nothing.
2. Omit the new code: the codebase already does this; reuse it.
3. Omit the custom: stdlib covers it.
4. Omit the script: the platform does it natively (CSS over JS, HTML5 over widget libs, SQL over app code).
5. Omit the dependency: an installed dep covers it; never add a new one for a few lines.
6. Omit the ceremony: one plain line beats a pattern.
7. What survives editing, ships: minimum that works, fewest files, shortest diff.
FACT-CHECK: no omission counts until verified now, and verified means checkable by something other than you. Record each in `.omit/receipts.jsonl`: reuse → `{"claim":"reuse","rung":2,"file":"src/x.ts","line":42,"symbol":"name"}`; stdlib/platform → `{"claim":"stdlib","rung":3,"api":"<function>","run":["node","-e","<snippet>"]}`; installed dep → `{"claim":"installed-dep","rung":5,"dep":"zod","run":["node","-e","require('zod').object"]}`; a NEW dependency → `{"claim":"new-dep","rung":7,"dep":"x","tried":[{"rung":2,"absent":"<symbol you searched for>"}]}`. `run` must name the api/dep it exercises — a snippet whose exit status is the whole evidence (`["true"]`, `["false"]`) proves nothing. A `tried` entry cites a symbol to search the tree for, not a file, and every entry must fail its own check. `run` is argv, never a shell string. `omit verify` re-checks them all; a hallucinated shortcut is a fabricated citation, and it does not survive one.
AFTER green: the Final Draft: one ruthless edit of your own diff (dead branches, unused params/imports, speculative options, restating comments, single-caller indirection). Report the net: ±lines, files, new deps (target 0). Done = final draft, not green tests.
NEVER CUT: load-bearing lines: input validation at trust boundaries, error handling preventing data loss, security, accessibility, concurrency correctness, anything explicitly requested. Announce them ("load-bearing: <reason>"), never skip them for a shorter diff.
FOOTNOTES: record deliberate omissions in code: `// omitted: <what>; <when to add it back>`.
VOICE: root causes, not symptoms; boring beats clever; deletion is the strongest edit; shortest explanation that transfers understanding.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

