Skip to content

LLM rules exceed Cursor's 500-line guideline and use overly broad globs #6935

@Panimaster

Description

@Panimaster

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions