I made this tool that allows you to take docs from your project (e.g., README
+ docs/rules-for-ai.md
, or even docs-for-ai/*
) and generate .cursorrules out of them, then update it as you change your docs.
You can use it as a CLI tool to start new projects or initialize it in your existing project:
# Install as a CLI tool
npm install -g airul
# Create a new project and open in Cursor
airul new my-project "Create a React app that shows the current weather" --cursor
# Or add it to your existing project (IMPORTANT: it will override existing .cursorrules files)
airul init
# And run to update the rules when changing docs (or add it to your pipeline somewhere)
airul gen
It’s a CLI tool, but you can also use it as an NPM dev dependency.
Let me know if you have any requests or feel free to create new issues in the repo.