agentleFS
trinity-workstrinity-works/frostwind/.cursor/rules/caveman.mdc

frostwind / rules

Cursor rule87 starsChanged 15 days agoMITView on GitHub

Prose budget

The file

We split this caveman.mdc into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep exact: identifiers, numbers, units, negation (not, no, only, except), citation names, and any warning about data loss or security.

    line 34
  2. Very specific:

    Read the file. Rewrite by hand, with exact-match edits.

    line 39

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
caveman.mdc
---
description: Prose budget
globs: "{**/*.md,src/**/*.js,test/**/*.mjs,tools/*.mjs,build.mjs}"
alwaysApply: false
---

# Prose budget

Adapted from https://github.com/juliusbrussee/caveman (MIT).

`tools/context-stats.mjs` is the authority. Run `npm run test:context`. Total
prose stays above the target band, so every edit here moves a measured number.

## Delete first

Compression caps at 10%, the article share. Deletion is the lever.

1. Narrative history. "It used to be summed", "there was a second one until this
   commit", "both are deleted". Git holds it. State the law in the present.
2. A second copy of a law that `docs/CANON.md`, a routed spec, or a module
   already owns. A comment retelling a doc's essay is the third copy.
3. A comment that restates the code.
4. A closing summary and a sentence that announces the next sentence.

A measured failure is not history. Keep the numbers, drop the tense: "summing
makes a 0.30 m bed measure 0.41 m" beats "these terms used to be summed, which
quietly made every floor relative".

## Then compress

Drop articles, filler (`just`, `simply`, `actually`), and hedges. Use
`[thing] [value] [reason]`. Fragments are correct.

Keep exact: identifiers, numbers, units, negation (`not`, `no`, `only`,
`except`), citation names, and any warning about data loss or security.

## Method

Read the file. Rewrite by hand, with exact-match edits. Never reflow prose with
a script. `npm run codehash` proves that a comment pass left the code identical.

An always-loaded word costs every task. A `docs/` word costs one route. Cut
`AGENTS.md` and the rules first.

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.