cursor-mdc-lint
v1.0.0
Published
Lint .mdc rule files for Cursor AI. Catches broken YAML frontmatter, invalid globs, vague prompts, and semantic conflicts between rules. Powered by cursor-doctor.
Maintainers
Readme
cursor-mdc-lint
Lint .mdc rule files for Cursor AI. Find broken frontmatter, invalid globs, and conflicts between rules.
npx cursor-mdc-lintScans every .mdc file in .cursor/rules/ and reports:
- Missing or broken YAML frontmatter
- Rules that will never load (misconfigured
alwaysApplyandglobs) - Vague instructions that waste context window tokens
- Semantic conflicts between rule files
- Invalid glob patterns
- Duplicate content across files
100+ checks. No install, no config, zero dependencies in your project.
Commands
npx cursor-mdc-lint # detailed per-file lint report
npx cursor-mdc-lint scan # quick health grade (A-F)
npx cursor-mdc-lint check # CI-friendly (exits 1 on D/F grade)How it works
This package wraps cursor-doctor, which runs all the actual checks. If you already have cursor-doctor installed, use that directly.
