prime-context-skills / rules
Cursor rule0 starsChanged 6 months agoMITView on GitHub
Prime project context at the start of a session by reading the project's words, mapping the structure, identifying the stack and key files, summarizing current state, and producing a compact orientation.
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 repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- prime-contextSkill
The file
We split this prime-context.mdc into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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
- Very specific: line 14
Read README.md first, then the root manifest (package.json, pyproject.toml, Cargo.toml, go.mod).
- Distinctive: line 32
Read the branch, the last five commits, and the working-tree status.
- Distinctive: line 40
Keep it tight. The point is a model you carry, not a document you file.
≈ “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: Prime project context at the start of a session by reading the project's words, mapping the structure, identifying the stack and key files, summarizing current state, and producing a compact orientation. alwaysApply: false --- # Prime context A priming protocol for the start of a session. Run it when you open a project you have not seen this session, before doing any work. **Tradeoff**: priming costs a few reads up front. For a one-line change in a file you already hold, skip it. ## 1. Read the project's own words Read `README.md` first, then the root manifest (`package.json`, `pyproject.toml`, `Cargo.toml`, `go.mod`). The declared scripts reveal how the project builds, tests, and runs; the dependencies reveal the stack. ## 2. Map the structure List the directory tree two to three levels deep, excluding build and dependency directories. Identify where source, tests, and config live, and name the entry points. ## 3. Identify the stack and key files State the language, framework, package manager, and test runner. Name the three to five files a new contributor would read first. ## 4. Summarize the current state Read the branch, the last five commits, and the working-tree status. Recent git is the difference between the project's intent and its present. ## 5. Produce a compact orientation Collapse the above into a short summary: what the project is, the stack, structure and entry points, current state. Keep it tight. The point is a model you carry, not a document you file.
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.

