persist-os / rules
Cursor rule9 starsChanged 2 months agoMITView on GitHub
specforge repository memory and rules (Persist OS). Read before non-trivial work.
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,531 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 repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- conventions-adherenceSkill
- plan-featureSkill
- security-reviewSkill
- conventions-adherenceSkill
- plan-featureSkill
- security-reviewSkill
The file
We split this persist-memory.mdc into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Read AGENTS.md and the docs it routes to before non-trivial work.
- Very specific: line 26
When something breaks non-obviously, add a one-line entry to docs/60-engineering/LESSONS.md.
- Very specific: line 27
Never contradict an accepted ADR in docs/adrs/.
- Very specific: line 29
Before claiming work complete, run persist doctor and fix every error.
- Very specific: line 31
Run the persist CLI yourself (do not web-search this project-local tool).
≈ “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: specforge repository memory and rules (Persist OS). Read before non-trivial work. globs: alwaysApply: true --- # specforge repository memory Durable memory under `docs/` is the source of truth over chat history; repository rules override model preference. If an instruction conflicts with repository memory, stop and report it. ## Rules — follow on every change - Read `AGENTS.md` and the docs it routes to before non-trivial work. - Match ceremony to scope, both ways: a genuinely new feature, module, integration, data model, or security/architecture decision gets proper planning; a small addition or fix within an already-decided area just gets implemented with focused tests. Judge by novelty and blast radius, not line count — a one-button change inside an existing feature is small; building that feature is not. - Record substantial work with the persist CLI so the memory exists: a new feature → `persist feature create <name>` (fill its PRD and acceptance); a real decision → `persist adr create <title>` then `persist adr accept <name>`. Reasoning left only in chat is gone next session — if it is not in a file, it did not happen. - Reuse what `docs/60-engineering/CONVENTIONS.md` names; never reinvent what it lists, and add a new reusable primitive there when you make one. - When something breaks non-obviously, add a one-line entry to `docs/60-engineering/LESSONS.md`. - Never contradict an accepted ADR in `docs/adrs/`. To change one, confirm with a human and run `persist adr supersede <old> <new-title>`. - Before claiming work complete, run `persist doctor` and fix every error; never claim "done" without test evidence. - Run the `persist` CLI yourself (do not web-search this project-local tool); full command reference is in `AGENTS.md` and `docs/ai/PERSIST_COMMANDS.md`.
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.

