A VSCode extension for dynamic management and analysis of .cursorrules
files in your Cursor AI projects.
- 🔍 Dynamic Analysis: Automatically analyzes your project's codebase to suggest and update
.cursorrules
configurations - 🔄 Real-time Monitoring: Watches for file changes and suggests rule updates based on evolving code patterns
- 📝 Template Management: Browse and apply pre-configured rule templates for various project types
- 🛠️ Format Conversion: Convert between different
.cursorrules
formats with preview and backup capabilities - 📊 Project Scanning: Scan your project to detect patterns and generate optimized rules
- 🔐 Version Control: Maintains backups and history of rule changes
-
Install the extension from the VSCode marketplace or GitHub Packages:
npm install @flexrpl/cursor-rules-dynamic
-
Configure your GitHub Personal Access Token for package access:
export NODE_AUTH_TOKEN=your_github_pat
The extension provides several commands through the VSCode Command Palette (Cmd/Ctrl + Shift + P):
Cursor Rules: Show Status
- Display the current status of rule monitoringCursor Rules: Convert to JSON
- Convert a.cursorrules
file to JSON formatCursor Rules: Browse Templates
- Browse and apply rule templatesCursor Rules: Scan Project
- Analyze project and suggest rule updates
The extension continuously analyzes your project's code patterns, including:
- Naming conventions
- Project structure
- Code formatting
- Documentation styles
- Testing patterns
- Browse curated templates for different project types
- Preview templates before applying
- Automatic backup of existing rules
- Custom template support
- Detect code patterns and conventions
- Suggest rule updates based on analysis
- Preview changes before applying
- Maintain rule version history
- Node.js ≥ 18.x
- VSCode ≥ 1.96.0
- TypeScript 5.3.3
-
Clone the repository:
git clone https://github.com/fleXRPL/cursor-rules-dynamic.git cd cursor-rules-dynamic
-
Install dependencies:
cd vscode-extension npm install
-
Build the extension:
npm run compile
Run the test suite:
npm test
Generate coverage report:
npm run test:coverage
Create a VSIX package:
npm run package
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
Please ensure your PR:
- Passes all tests
- Includes relevant tests
- Updates documentation
- Follows the existing code style
This project is licensed under the MIT License - see the LICENSE file for details.
- File an issue
- Join the discussions
- Check the wiki for detailed documentation