Generate. Validate. Convert.
Your Cursor AI rules, handled.

Three open-source CLI tools that generate rules from your code, find and fix problems in your setup, and convert rules between formats. Zero dependencies.

npx cursor-doctor scan
See all tools ↓
cursor-doctor scan running in terminal
2,100+ weekly npm downloads
60+ lint rules
80+ automated tests
0 dependencies

The toolkit

rule-gen

Free

Generate AI coding rules from your actual source code.

Analyzes your codebase and generates Cursor rules that match how you actually write code. Powered by Gemini. Not just package.json detection — reads your real patterns.

npx rulegen-ai

rule-porter

Free

Port AI rules between Cursor, Windsurf, and CLAUDE.md.

Bidirectional conversion between .mdc, .windsurfrules, CLAUDE.md, AGENTS.md, and legacy .cursorrules. Move your rules wherever you need them.

npx rule-porter

Built to last

Zero dependencies

No supply chain risk. Fast installs. Runs anywhere Node runs.

Security hardened

Input sanitization, path traversal guards, SSRF protection, command injection prevention.

Cross-platform

Full Windows CRLF support. Tested on macOS, Linux, and Windows.

Thoroughly tested

80+ automated tests covering every feature, edge case, and regression.

Start free. Upgrade when you need more.

Run the free scan to find problems. Unlock Pro to fix them automatically, track performance, and sync your team.

npx cursor-doctor scan
Get Pro for $9 →