Your Cursor rules have bugs. This finds them.
You wrote rules. Cursor still ignores them. cursor-doctor tells you exactly what's wrong: conflicting directives, broken globs, vague instructions the AI can't act on, token budget waste, and 100+ other issues. Treat your rules like code, not config. One command. Zero dependencies.
npx cursor-doctor scanNo install needed. Runs directly with npx.
Also available as a VS Code/Cursor extension — inline diagnostics, status bar health grade, quick-fix code actions. Search "Cursor Doctor" in the extensions panel.
100+ lint rules across these categories:
| Check | Examples |
|---|---|
| Syntax | Broken YAML, missing frontmatter, boolean strings, unclosed code blocks |
| Conflicts | Contradictory instructions across files (48 semantic patterns) |
| Token budget | Rules burning context window, dead rules, excessive alwaysApply |
| Globs | Patterns that don't match files, regex in globs, overlapping coverage |
| Prompt quality | Vague instructions, first person, politeness tokens, negation-only rules |
| Structure | File naming, duplicate content, missing descriptions, legacy .cursorrules |
npx cursor-doctor scan # Find what's wrong (default)
npx cursor-doctor fix # Auto-fix everything (Pro)
npx cursor-doctor fix --preview # Preview fixes (free)
npx cursor-doctor lint # Detailed rule-by-rule output
npx cursor-doctor check # CI pass/fail (exit 0 or 1)
npx cursor-doctor init # Generate rules for your stack
npx cursor-doctor install react # Install community rule packs
npx cursor-doctor audit # Full diagnostic report (Pro)
npx cursor-doctor conflicts # Cross-format conflicts (Pro)
npx cursor-doctor test <file> # AI rule adherence testing (Pro)
npx cursor-doctor team drift # Detect config drift (Pro)Run cursor-doctor help for the full list.
34 auto-fixers: frontmatter repair, glob syntax, boolean strings, whitespace, TODO removal, duplicate descriptions, heading normalization, and more.
npx cursor-doctor fix --preview # See what would change (free)
npx cursor-doctor fix # Apply all fixesGet a Pro key ($9 one-time): nedcodes.gumroad.com/l/cursor-doctor-pro
If Pro doesn't find real, fixable issues, email hello@nedcodes.dev for a full refund.
Search "Cursor Doctor" in the extensions panel. Health grade in your status bar. Inline diagnostics on save. Quick-fix code actions with Pro.
Use cursor-doctor as an MCP tool in your AI coding assistant. Add to .cursor/mcp.json:
{
"mcpServers": {
"cursor-doctor": {
"command": "npx",
"args": ["-y", "cursor-doctor-mcp"]
}
}
}Add to any workflow to catch broken rules before merge:
- uses: nedcodes-ok/cursor-doctor@v1Or with options:
- uses: nedcodes-ok/cursor-doctor@v1
with:
command: lint # 'check' (default, pass/fail) or 'lint' (detailed)Real-time diagnostics in Neovim, Zed, or any LSP-compatible editor:
npm install -g cursor-doctor
# Then configure your editor to use cursor-doctor-lsp
# See docs at nedcodes.dev for Neovim/Zed setup- rule-gen — Generate rules from your codebase with AI.
npx rulegen-ai - rule-porter — Convert rules between Cursor, Claude, Copilot, and Windsurf.
npx rule-porter - nedcodes.dev — Guides, playground, and tools for Cursor AI developers.
MIT
