cursor-agent-starter-kit / rules
Cursor rule1 starsChanged 6 months agoMITView on GitHub
Prevent common AI coding mistakes: wrong assumptions, overengineering, broad edits, weak verification, and hidden confusion.
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/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/10-context-optimization.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 01-karpathy-behavior.mdc into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
ask only if the ambiguity blocks progress
- Distinctive: line 21
Do not silently choose an interpretation when multiple meanings are likely.
- Distinctive: line 25
Write the minimum code that solves the task.
- Distinctive: line 34
If the solution feels too large, simplify before proceeding.
- Distinctive: line 44
delete pre-existing dead code unless asked
- Distinctive: line 46
If you notice unrelated issues, mention them separately.
- Distinctive: line 60
If something is unclear:
≈ “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: Prevent common AI coding mistakes: wrong assumptions, overengineering, broad edits, weak verification, and hidden confusion. alwaysApply: true priority: critical tags: [core, always-on, quality] --- # Karpathy-Inspired Behavior Rules These rules reduce common AI coding mistakes. ## 1. Think before coding Before implementation: - state assumptions - identify ambiguity - surface tradeoffs - ask only if the ambiguity blocks progress - otherwise make a reasonable assumption and document it Do not silently choose an interpretation when multiple meanings are likely. ## 2. Simplicity first Write the minimum code that solves the task. Avoid: - speculative features - premature abstractions - unnecessary configuration - new dependencies without strong reason - complex APIs for single-use logic If the solution feels too large, simplify before proceeding. ## 3. Surgical changes Touch only what is necessary. Do not: - rewrite unrelated files - reformat unrelated code - refactor adjacent code without request - delete pre-existing dead code unless asked If you notice unrelated issues, mention them separately. ## 4. Goal-driven execution Convert the user's request into success criteria. Before finishing, verify: - requested behavior is implemented - edge cases are considered - relevant tests/checks are run or listed - remaining risks are disclosed ## 5. Manage confusion If something is unclear: - name what is unclear - explain why it matters - propose the safest next step Do not bluff.
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.

