Cursor rules vs GEMINI.md
Every comparison page on the web is a capability table someone wrote from the vendor docs in an afternoon. None of them can tell you how many real repositories ship each file, how long the median one runs, or how often two of them turn up in the same project. Those answers need a corpus, and RuleStack counts one every night.
| Format | Cursor rules 2026-08-02 | GEMINI.md 2026-08-01 |
|---|---|---|
| Asserted — what the docs say it can express | ||
| File | .cursor/rules/*.mdc | GEMINI.md |
| Status | vendor | vendor |
| Cross-tool | No | No |
| Tools that read it |
|
|
| Frontmatter | Yes | No |
| Glob targeting | Yes | No |
| Imports other files | Yes | Yes |
| Nested / per-directory | Yes | Yes |
| Multiple files | Yes | Yes |
| User-level scope | No | Yes |
| When it applies | Four modes set in frontmatter: Always Apply (every chat session), Apply Intelligently (the agent picks it by description), Apply to Specific Files (globs match the edited file), and Apply Manually (@-mentioned). Rules must carry the .mdc extension — a plain .md file in .cursor/rules is ignored. | Hierarchical memory: a global ~/.gemini/GEMINI.md, then the project file, then nested files, concatenated from broadest to narrowest. |
| Size limits | None | None |
| Measured — counted from real repositories on 2026-08-03 | ||
| Repositories carrying it | 179 | 33 |
| Share of indexed repos | 25.8% | 4.8% |
| Files indexed | 1,279 | 46 |
| Median length (words) | 272 | 257 |
| 90th percentile length | 1,171 | 1,704 |
| Files naming commands | 29.3% | 52.2% |
| Files containing code | 58.0% | 45.6% |
| Median quality score | 52 | 60 |
| Median repository stars | 24 | 11,297 |
How often they turn up together
A capability table cannot answer this at all. Of the repositories carrying the first format, this is the share that also carry the second — counted, both directions, on 2026-08-03.
Cursor rules + GEMINI.md
2026-08-0311
repositories carry both. That is 6.1% of everything with Cursor rules, and 33.3% of everything with GEMINI.md.
What each one is for
Cursor rules
2026-08-02The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.
Strengths
- Glob-scoped activation — the only widely-used format that keeps unrelated rules out of context
- Description-based activation lets the agent pull a rule in on demand
- Many small files are easier to review in a PR than one growing document
Weaknesses
- Cursor-only
- Frontmatter is a schema, and a malformed .mdc silently stops applying
- Fragmentation: rules spread over many files are easy to duplicate and contradict
GEMINI.md
2026-08-01Gemini CLI's memory file, structurally close to CLAUDE.md — @imports and a user-scope layer — which is why repos that carry both usually carry near-identical text in each.
Strengths
- @path imports and a global user file, same composition model as CLAUDE.md
- Explicit hierarchy from global to local
Weaknesses
- Google-only
- No glob targeting
