Back to articles
Add cursor-doctor to your CI pipeline in 2 minutes
How-ToTools

Add cursor-doctor to your CI pipeline in 2 minutes

via Dev.toNed C

i built cursor-doctor after watching teams waste hours debugging Cursor rules that "stopped working." The problem is always the same: someone added a rule with broken YAML frontmatter, or two rules contradicted each other, or a glob pattern had a typo. Cursor doesn't warn you. The rule silently fails. Here's how to catch that in CI. tl;dr Add this to .github/workflows/cursor-rules.yml : - uses : nedcodes-ok/cursor-doctor@v1 Every PR now checks your Cursor rules for errors before merge. GitHub Actions setup Create .github/workflows/cursor-rules.yml : name : Cursor Rules Health Check on : push : branches : [ main ] pull_request : branches : [ main ] jobs : lint-cursor-rules : runs-on : ubuntu-latest steps : - uses : actions/checkout@v4 - uses : nedcodes-ok/cursor-doctor@v1 If cursor-doctor finds issues, the workflow fails and the PR can't merge. The action handles Node.js setup automatically. No setup-node step needed. action inputs Two optional inputs: - uses : nedcodes-ok/cursor-doctor

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles