Cursor rules: .cursor/rules and .cursorrules in open source repos
Cursor rules are instruction files that Cursor reads from the repo. The current form is a .cursor/rules/ folder of .mdc files, each covering one topic such as architecture or naming. The older form is a single .cursorrules file at the repo root.
How many repos pass
Of the 371 repos on the leaderboard, 15 pass in full (4%), 3 pass in part (0.8%) and 353 fail (95%).
Why agents need it
Cursor's Rules docs name .cursor/rules/*.mdc and AGENTS.md as the places it takes repo instructions from. No other agent we score reads the Cursor files, so this check only affects the Cursor score.
How we score it
- Full pass: a
.cursor/rules/folder with at least one.mdcfile. - 50%: only the legacy
.cursorrulesfile. Cursor still reads it, but it is deprecated. - Fail: neither is present.
The methodology has the formula that turns checks into a score.
How to pass
Create .cursor/rules/ and add one .mdc file per topic: how the code is organised, naming and style rules, how to run tests. If you have a .cursorrules file, move its content into .mdc files.
Which agents count it most
- Cursor12% of its score
Pass rate by language
Top-scoring repos that pass
- Rust · 33.1k ★
- apache/superset92.2Python · 75.1k ★
- Python · 46k ★
- Ruby · 48k ★
- PostHog/posthog84.7Python · 40.2k ★
- novuhq/novu81.1TypeScript · 40.1k ★
- Shopify/cli80.5TypeScript · 753 ★
- Python · 155.6k ★
- hsnice16/tula78.1TypeScript · 0 ★
- simstudioai/sim75.4TypeScript · 29.8k ★
- TypeScript · 2k ★
- trpc/trpc72.6TypeScript · 40.7k ★
Popular repos that fail it
- TypeScript · 391.8k ★
- react/react66.9JavaScript · 250.9k ★
- TypeScript · 213k ★
- n8n-io/n8n83.4TypeScript · 207.1k ★
- microsoft/vscode71.3TypeScript · 193.6k ★
- TypeScript · 190.9k ★
- Python · 187.5k ★
- ollama/ollama80.0Go · 182.9k ★