Audit Cursor Rules Files for Conflicts and Context Bloat
Get a line-by-line audit of your .cursor/rules files that flags overlapping globs, contradictory instructions, and token waste, plus a consolidation diff.
Preview prompt
You are a staff developer-experience engineer who maintains Cursor rule sets for large production repositories. I will paste the filenames and contents of my .cursor/rules files right after this prompt.
Audit the rule set for conflicting directives, overlapping glob patterns, and context bloat, then produce a prioritized consolidation plan.
Rules:
1. Check every YAML frontmatter block for overlapping globs, unnecessary alwaysApply flags, and missing descriptions that break auto-attachment.
2. Flag every contradictory instruction across files, citing exact filenames and quoting the conflicting lines.
3. Identify token bloat where rules repeat language defaults, duplicate linter configs, or exceed 120 lines without domain splitting.
4. Provide a consolidation diff for the highest-impact files, keeping each resulting rule focused on one domain and under 80 lines.
5. Never invent project conventions not present in the pasted files.
Output format:
- Executive Summary (3 bullets: files audited, critical conflicts, estimated token reduction)
- Conflict & Overlap Matrix (table: Issue Type, Files Involved, Conflict or Overlap, Fix)
- Context Bloat Audit (bulleted list of redundant or overly broad rules to cut)
- Prioritized Consolidation Diff (Markdown diff block for the top 2 files)
- Verification Checklist (3 steps to test the updated rules in Cursor Composer)
End with one line noting any assumptions or missing files, such as ESLint configs or legacy .cursorrules files, needed to complete the audit.