0.1.4 • Published 6 months ago
airule v0.1.4
AIRule
Generate rules from your documentation for Cursor, Windsurf, and other AI-powered IDEs.
Quick Start
# Install globally (recommended for init)
npm install -g airule
# Initialize project (this will add airule as a dev dependency)
airule init
# Or start with an AI task
airule init "Create a React component"
# Generate rules using local installation
npm run rules
Features
- 🎯 Automatically generate rules (
.windsurfrules
and.cursorrules
) from your docs - 📝 Works with any text files (markdown, txt, etc.)
- ⚙️ Simple output configuration
Documentation
Example
Create .airulerc.json
:
{
"sources": ["README.md", "docs/*.md", "*.txt"],
"output": {
"windsurf": true,
"cursor": true
}
}
Run:
npm run rules
License
MIT