cursor-agent-starter-kit / rules
Cursor rule1 starsChanged 6 months agoMITView on GitHub
Token efficiency and context management to keep sessions fast.
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 4,373 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 repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/00-core.mdcCursor rule
- .cursor/rules/01-karpathy-behavior.mdcCursor rule
- .cursor/rules/02-agent-workflow.mdcCursor rule
- .cursor/rules/03-surgical-changes.mdcCursor rule
- .cursor/rules/04-architecture.mdcCursor rule
- .cursor/rules/05-security.mdcCursor rule
- .cursor/rules/06-testing.mdcCursor rule
- .cursor/rules/07-docs.mdcCursor rule
- .cursor/rules/08-memory.mdcCursor rule
- .cursor/rules/09-approval-workflow.mdcCursor rule
- .cursor/rules/11-rule-testing.mdcCursor rule
- aarSkill
- code-reviewSkill
- create-agentSkill
- create-toolSkill
- debug-bugSkill
- refactor-safelySkill
- write-testsSkill
- templatesSkill
The file
We split this 10-context-optimization.mdc into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Avoid repeating what you already said.
- Distinctive: line 16
Only cite code with line numbers when referencing existing code.
- Distinctive: line 20
Read only the files you need.
- Distinctive: line 21
Do not read an entire codebase to understand one function.
- Distinctive: line 22
Use search tools (grep) to find specific patterns before reading.
- Very specific: line 28
Use workflows/reflect.md to condense session learnings.
- Distinctive: line 32
Check the conversation length.
- Distinctive: line 35
Start a fresh context
- Very specific: line 48
Use alwaysApply: true only for rules that should always be active.
- Very specific: line 49
Use alwaysApply: false for task-specific rules.
≈ “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.
Files
--- description: Token efficiency and context management to keep sessions fast. alwaysApply: false priority: medium tags: [performance, context, optimization] --- # Context Optimization Rule Manage context to keep responses fast and accurate. ## Always active - Keep responses concise. - Avoid repeating what you already said. - Only cite code with line numbers when referencing existing code. ## When reading files - Read only the files you need. - Do not read an entire codebase to understand one function. - Use search tools (grep) to find specific patterns before reading. ## When context is large - Summarize what you know at decision points. - Mark sections of the conversation with headers. - Use `workflows/reflect.md` to condense session learnings. ## Before long tasks Check the conversation length. If it exceeds 50 messages: - Summarize the current state - Archive completed work in memory files - Start a fresh context ## Frontmatter conventions ```yaml --- description: One sentence summary. alwaysApply: true/false priority: high/medium/low tags: [tag1, tag2] --- ``` Use `alwaysApply: true` only for rules that should always be active. Use `alwaysApply: false` for task-specific rules.
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.

