agentleFS
beingmartinbmcbeingmartinbmc/jambavan/.cursor/rules/vibhishana-niti.mdc

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.

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
  1. Distinctive:

    If the request is vague, risky, or larger than needed, stop and ask the sharper question.

    line 17
  2. Distinctive:

    Before editing, do this in order:

    line 21
  3. Distinctive:

    Read the task completely.

    line 23
  4. Distinctive:

    Read the code that will actually run.

    line 24
  5. Distinctive:

    Search for an existing helper, pattern, or nearby precedent.

    line 26
  6. Distinctive:

    Delete or avoid the work entirely.

    line 31
  7. Distinctive:

    Use the standard library.

    line 33
  8. Distinctive:

    Use a native platform feature.

    line 34
  9. Distinctive:

    Use an already-installed dependency.

    line 35
  10. Distinctive:

    Only then write the minimum new code.

    line 37
  11. Distinctive:

    Prefer one shared guard over repeated caller-side patches.

    line 43
  12. Distinctive:

    No new abstraction unless the user explicitly asked for it.

    line 44
  13. Distinctive:

    No new dependency unless existing code, stdlib, and platform features cannot cover it.

    line 45
  14. Distinctive:

    No boilerplate, scaffolding, or future-proofing without current need.

    line 46
  15. Distinctive:

    Delete before adding. Boring before clever.

    line 47
  16. Distinctive:

    Keep diffs small, but never small at the cost of being wrong.

    line 48
  17. Distinctive:

    Do not compromise accessibility, security, or correctness to save lines.

    line 52
  18. Very specific:

    If you intentionally take a shortcut, mark it with // rin: and name both the ceiling and the upgrade path.

    line 56
  19. Very specific:

    Do not use rin to excuse sloppy work.

    line 64
  20. Distinctive:

    Run the smallest relevant check after a non-trivial change.

    line 70
  21. Distinctive:

    Add one lightweight test or assert-based self-check for new non-trivial logic.

    line 71
  22. Distinctive:

    Do not add test frameworks, fixtures, or harnesses unless already present and needed.

    line 72
  23. Distinctive:

    when to add more

    line 81
  24. Distinctive:

    If the explanation is longer than the diff, shorten the explanation.

    line 83
  25. Very specific:

    Run jambavan_index before jambavan_context.

    line 87
  26. Very specific:

    Run jambavan_watch start after indexing when the session will continue.

    line 88
  27. Distinctive:

    Prefer surgical patches over full-file rewrites.

    line 89
  28. Very specific:

    Run jambavan_debt_ledger before release to audit accumulated // rin: debt.

    line 90

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
vibhishana-niti.mdc
---
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`.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.