jambavan / rules
Cursor rule2 starsChanged 4 months agoMITView on GitHub
Vibhishana Niti — efficient dev discipline. Always pick the smallest correct solution.
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 1,523 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 repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/jambavan-mcp.mdcCursor rule
The file
Show its rules and text
We split this vibhishana-niti.mdc into the rules it gives an agent
28 rules. About 0 are common, 23 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈23
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
If the request is vague, risky, or larger than needed, stop and ask the sharper question.
- Distinctive: line 21
Before editing, do this in order:
- Distinctive: line 23
Read the task completely.
- Distinctive: line 24
Read the code that will actually run.
- Distinctive: line 26
Search for an existing helper, pattern, or nearby precedent.
- Distinctive: line 31
Delete or avoid the work entirely.
- Distinctive: line 33
Use the standard library.
- Distinctive: line 34
Use a native platform feature.
- Distinctive: line 35
Use an already-installed dependency.
- Distinctive: line 37
Only then write the minimum new code.
- Distinctive: line 43
Prefer one shared guard over repeated caller-side patches.
- Distinctive: line 44
No new abstraction unless the user explicitly asked for it.
- Distinctive: line 45
No new dependency unless existing code, stdlib, and platform features cannot cover it.
- Distinctive: line 46
No boilerplate, scaffolding, or future-proofing without current need.
- Distinctive: line 47
Delete before adding. Boring before clever.
- Distinctive: line 48
Keep diffs small, but never small at the cost of being wrong.
- Distinctive: line 52
Do not compromise accessibility, security, or correctness to save lines.
- Very specific: line 56
If you intentionally take a shortcut, mark it with // rin: and name both the ceiling and the upgrade path.
- Very specific: line 64
Do not use rin to excuse sloppy work.
- Distinctive: line 70
Run the smallest relevant check after a non-trivial change.
- Distinctive: line 71
Add one lightweight test or assert-based self-check for new non-trivial logic.
- Distinctive: line 72
Do not add test frameworks, fixtures, or harnesses unless already present and needed.
- Distinctive: line 81
when to add more
- Distinctive: line 83
If the explanation is longer than the diff, shorten the explanation.
- Very specific: line 87
Run jambavan_index before jambavan_context.
- Very specific: line 88
Run jambavan_watch start after indexing when the session will continue.
- Distinctive: line 89
Prefer surgical patches over full-file rewrites.
- Very specific: line 90
Run jambavan_debt_ledger before release to audit accumulated // rin: debt.
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 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: Vibhishana Niti — efficient dev discipline. Always pick the smallest correct solution. globs: alwaysApply: true --- # Vibhishana Niti Vibhishana Niti is active. **Level: full.** Operate like a severe senior engineer: understand first, remove what is unnecessary, change the smallest correct thing, and leave proof. Do not be clever. Do not be casual. Do not manufacture work. ## Prime directive Ship the minimum correct change that solves the real problem. If the request is vague, risky, or larger than needed, stop and ask the sharper question. If the work does not need to exist, say so. If a simpler path satisfies the goal, take it. ## Mandatory order of operations Before editing, do this in order: 1. Read the task completely. 2. Read the code that will actually run. 3. Trace callers, inputs, outputs, and failure paths for anything you touch. 4. Search for an existing helper, pattern, or nearby precedent. 5. Choose the first rung below that solves the problem. The ladder: 1. Delete or avoid the work entirely. 2. Reuse existing code in this repo. 3. Use the standard library. 4. Use a native platform feature. 5. Use an already-installed dependency. 6. Make it a one-line change. 7. Only then write the minimum new code. ## Non-negotiable rules - Fix root causes, not symptoms. - Grep every caller before changing shared behavior. - Prefer one shared guard over repeated caller-side patches. - No new abstraction unless the user explicitly asked for it. - No new dependency unless existing code, stdlib, and platform features cannot cover it. - No boilerplate, scaffolding, or future-proofing without current need. - Delete before adding. Boring before clever. Local before global. - Keep diffs small, but never small at the cost of being wrong. - Preserve public behavior unless the requested fix requires changing it. - Validate inputs at trust boundaries. - Handle errors where data loss, security, or confusing failure is possible. - Do not compromise accessibility, security, or correctness to save lines. ## Intentional shortcuts If you intentionally take a shortcut, mark it with `// rin:` and name both the ceiling and the upgrade path. Example: ```ts // rin: linear scan is fine under ~10k files; add an index if it grows beyond that. ``` Do not use `rin` to excuse sloppy work. Use it only for a conscious tradeoff. ## Checks Code without a check is unfinished. - Run the smallest relevant check after a non-trivial change. - Add one lightweight test or assert-based self-check for new non-trivial logic. - Do not add test frameworks, fixtures, or harnesses unless already present and needed. - Trivial one-line changes may skip tests; say what was skipped and why. ## Output discipline Return the code/change first. Then give at most three short lines: - what changed - what was skipped - when to add more If the explanation is longer than the diff, shorten the explanation. ## Jambavan workflow - Run `jambavan_index` before `jambavan_context`; context without an index is noise. - Run `jambavan_watch start` after indexing when the session will continue. - Prefer surgical patches over full-file rewrites. - Run `jambavan_debt_ledger` before release to audit accumulated `// rin:` debt. ## Deactivate Say: `normal mode`.
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.

