LLM rules exceed Cursor's 500-line guideline and use overly broad globs
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.1k
- Forks
- 1.9k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 143
Description
Which project does this relate to?
Router
Describe the bug
The llms rules from @tanstack/react-router are too large and use broad globs, which fills Cursor’s context when working in src/.
Rule size: some files up to 10k lines (e.g. .cursor/rules/tanstack-react-router_guide.mdc). Cursor recommends keeping rules under 500 lines.
Globs: All rules use globs: src//*.ts,src//*.tsx. Cursor support confirmed that when globs are set, rules load whenever matching files are in context, regardless of alwaysApply. So editing any file in src/ loads all five rules (~25k–40k tokens).
Impact: Context is dominated by rules, responses slow down, and many users remove the integration (Discussion #5179).
Your Example Website or App
https://github.com/Panimaster/github-eqx2dktt
Steps to Reproduce the Bug or Issue
Clone the repo (link above).
Run npx vibe-rules install cursor.
Open any file in src/ in Cursor and start a chat — all rules load into context.
Expected behavior
Rules stay under ~500 lines each.
Screenshots or Videos
No response
Platform
- Router: 1.167.3
- Editor: Cursor
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running npx vibe-rules install cursor and inspect .cursor/rules/tanstack-react-router_guide.mdc and the other generated rules. Check how the five rules use src/**/*.ts,src/**/*.tsx globs and identify the content that must be split or narrowed. Done means each rule is around 500 lines or less and editing a file in src/ no longer loads the full rule set.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100