agentleFS
trinity-workstrinity-works/frostwind/.cursor/rules/cost-control.mdc

frostwind / rules

Cursor rule87 starsChanged 15 days agoMITView on GitHub

Working method

The file

We split this cost-control.mdc into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search to find the owner. Read a file whole when you will edit it or reason about its behaviour.

    line 10
  2. Very specific:

    Never read generated or duplicate context: node_modules/, dist/, .claude/worktrees/, artifacts/, reference/*.txt, *.actual.png, *.diff.png.

    line 15

≈ “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
cost-control.mdc
---
description: Working method
alwaysApply: true
---

# Working method

## Read

- Search to find the owner. Read a file whole when you will edit it or reason
  about its behaviour.
- One authority cluster per change and per PR. A wider audit needs the user's
  request.
- Open `docs/CANON.md` or `docs/DECISIONS.md` to add or change a law.
- Never read generated or duplicate context: `node_modules/`, `dist/`,
  `.claude/worktrees/`, `artifacts/`, `reference/*.txt`, `*.actual.png`,
  `*.diff.png`. Never print a bundle, an atlas or golden data.

## Delegate

- Delegate independent clusters in parallel, one worktree each. Brief each
  subagent with its file list, the method, and the check that proves its result.
- A comment-only pass proves itself with `npm run codehash`. A code move proves
  itself with `npm run lint` and the closest test.
- A subagent report is a claim. Read the diff before you merge it.

## Verify

- `npm run lint` after every code edit: undefined names, unused bindings, world
  stage wiring. It takes one second.
- Then the closest `npm run test:<area>`, a domain aggregate when a cluster
  changes, `npm test` once at handoff, `npm run verify` when the build or entry
  point changes. A broad pass supersedes its subsets.
- Repeat a level only after a relevant edit. Never suppress an assertion.
- Regenerate a baseline only after an intentional authority change, through its
  `*:update` script.

## Frames

- Measure first: a structural test or a derived number.
- Then look. Capture with `tools/shot.mjs` and read the PNG. A change to drawn
  output is unverified until its frame has been seen.
- `.cursor/rules/pixel-review-gate.mdc` owns who decides a subjective change.

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.