The easiest way to set up Cursor AI for your project. One command. Done.
cursor-setup creates a .cursorrules file in your project folder. This file tells Cursor AI how to write code specifically for your tech stack (Python, React, Flutter, etc.).
Before: You Google for rules, copy-paste from random GitHub gists, hope they work...
After: Run one command and you're done! ✨
pip install cursor-setupThat's it! Now you can use cursor-setup anywhere.
Already know what you want? Just run:
cursor-setup install pythonReplace python with your stack: nextjs, flutter, java-spring, laravel, vue, react, rust, golang, svelte...
Done! A .cursorrules file is now in your project folder. 🎉
Not sure what's available? List all templates first:
cursor-setup listYou'll see a nice table like this:
📚 Available Cursor Rule Templates
┏━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Template ┃ Name ┃ Description ┃
┡━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ python │ Python │ Modern Python with type hints... │
│ nextjs │ Next.js │ Next.js 14+ with App Router... │
│ flutter │ Flutter │ Flutter/Dart with clean architecture... │
│ laravel │ Laravel │ Laravel PHP framework with Eloquent... │
│ vue │ Vue.js │ Vue 3 with Composition API... │
│ react │ React │ React 18+ with hooks, TypeScript... │
│ rust │ Rust │ Rust with memory safety patterns... │
│ golang │ Go │ Go with idiomatic patterns... │
└─────────────┴────────────────────┴─────────────────────────────────────────┘
Pick one and install it:
cursor-setup install flutterWant to see what's inside before installing?
cursor-setup show flutterFound a custom .cursorrules file online? Install it directly:
cursor-setup install --url https://example.com/my-rules.txtReal-world example — Install TypeScript rules from awesome-cursorrules:
cursor-setup install --url https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/typescript-cursorrules-prompt-file/.cursorrulesThis is perfect for:
- 🏢 Teams: Share a company-wide rules URL with your team
- 🧪 Experiments: Try community rules before they're officially added
- 🎯 Custom setups: Use your own private rules file
| Template | Best For |
|---|---|
python |
Python projects with type hints, docstrings, pytest |
nextjs |
Next.js 14+ with App Router, Server Components, Tailwind |
flutter |
Flutter/Dart mobile apps with clean architecture |
java-spring |
Spring Boot 3+ REST APIs with modern Java |
laravel |
Laravel PHP with Eloquent, Blade templates |
vue |
Vue 3 with Composition API, TypeScript, Pinia |
react |
React 18+ with hooks, TypeScript patterns |
rust |
Rust with ownership patterns, error handling |
golang |
Go with idiomatic patterns, concurrency |
svelte |
SvelteKit with TypeScript, stores, SSR |
💡 More templates are added regularly! Run
cursor-setup listto see the latest.
| Flag | Short | Description |
|---|---|---|
--url |
-u |
Install from a direct URL |
--force |
-f |
Overwrite existing file without asking |
Examples:
# Skip the "overwrite?" prompt
cursor-setup install python --force
# Short form
cursor-setup install python -f
# Combine flags
cursor-setup install -u https://example.com/rules.txt -f- Local templates are bundled with the package (always available offline)
- Remote templates are fetched from our community registry
- If you're offline, it silently falls back to local templates only
This means:
- ✅ Works offline with built-in templates
- ✅ Gets the latest community templates when online
- ✅ Never fails due to network issues
We'd love your help! The easiest way to contribute:
Add a new template to our registry:
- Fork the repository
- Edit
rules.json - Add your template URL + description
- Submit a PR!
See CONTRIBUTING.md for detailed instructions.
# Clone the repo
git clone https://github.com/ThanhNguyxn/cursor-setup.git
cd cursor-setup
# Create virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Install in dev mode
pip install -e ".[dev]"
# Test it
cursor-setup --helpMIT License — use it however you want!
- Inspired by Cursor editor
- Built with Typer and Rich
- Community templates from awesome-cursorrules
- Thanks to all contributors! ❤️
Found this useful? ⭐ Star us on GitHub!