CursorGen
auto-generate .cursorrules from your actual codebase, not a copy-pasted template
npx -y github:Isco0819/cursor-genEver run into this?
like awesome-cursorrules (20k+ GitHub stars) which proves devs desperately want good cursor rules - but every project is different and pasting generic rules poisons AI context. writing rules by hand takes 30 min and drifts stale as the codebase evolves.
The fix
cursor-gen scans your repo - package.json, tsconfig, eslint config, top-level directory tree - and emits a project-specific .cursor/rules file in seconds. also ships as an MCP server so Claude can self-configure when it enters any new project.
What it does
- auto-detects stack (framework, test runner, linter, package manager) and writes matching opinionated rules
- MCP server mode: Claude calls generate_cursor_rules on project open with zero manual steps
- diff mode: re-run anytime to surface rules that have drifted from current codebase reality