I kept seeing threads here asking “how do I know if my rules are even working?” and the usual answer is to add a test marker like “always respond with
” and see if it shows up.
That works but it’s kind of a pain, especially if you have multiple .mdc files and want to check them all.
So I made a quick CLI tool that scans your project and flags common mistakes:
npx cursor-lint
It checks for:
- using
.cursorrulesinstead of.mdcfiles (agent mode ignores.cursorrules) - missing
alwaysApply: truein frontmatter - vague rules that don’t actually change output (“write clean code”, etc.)
- broken YAML frontmatter
- comma-separated globs instead of arrays
No install, no config, just run it in your project directory. Exit code 1 on errors so you can throw it in CI if you want.
It’s pretty basic right now (v0.1) but if there are other checks you’d want, let me know. Curious what mistakes other people keep running into