⚠️ This action now uses cursor-doctor — the evolution of cursor-lint with broader diagnostics and auto-fix.
Lint your Cursor .mdc and .cursorrules files in CI. Catches silent failures before they reach your team.
- Missing YAML frontmatter (silent failure — rules don't load)
- Malformed YAML (silent failure — no warning, no error)
- Missing
alwaysApply: true(rules ignored in agent mode) - Missing descriptions (agent can't trigger the rule)
- Vague rules ("follow best practices" has zero effect)
- Bad glob syntax
- Conflicting rules across files
name: Lint Cursor Rules
on: [push, pull_request]
jobs:
cursor-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nedcodes-ok/cursor-lint-action@v1| Input | Description | Default |
|---|---|---|
directory |
Directory to lint | . |
version |
cursor-doctor version | latest |
- uses: nedcodes-ok/cursor-lint-action@v1
with:
directory: './packages/frontend'- uses: nedcodes-ok/cursor-lint-action@v1
with:
version: '1.1.4'Two out of seven ways an .mdc file can be malformed cause silent failures. No warning, no error — the rule just doesn't load. In a team setting, one bad commit can break everyone's AI rules without anyone noticing.
This action catches those in CI so they never merge.
cursor-doctor Pro ($9 one-time) — full diagnostic report with conflict detection, redundancy analysis, token budget breakdown, and auto-fix.
MIT