๐ Initialize your Cursor AI context in seconds. Community-driven templates with dynamic updates.
Project description
cursor-setup ๐
The easiest way to set up Cursor AI for your project. One command. Done.
What is this?
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! โจ
๐ฆ Installation
pip install cursor-setup
That's it! Now you can use cursor-setup anywhere.
๐ Usage
โก Quick Start (Fastest Way)
Already know what you want? Just run:
cursor-setup install python
Replace python with your stack: nextjs, flutter, java-spring, laravel, vue, react, rust, golang, svelte...
Done! A .cursorrules file is now in your project folder. ๐
๐ Interactive Mode (Browse Templates)
Not sure what's available? List all templates first:
cursor-setup list
You'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 flutter
Want to see what's inside before installing?
cursor-setup show flutter
๐ Pro Mode (Install from Any URL)
Found a custom .cursorrules file online? Install it directly:
cursor-setup install --url https://example.com/my-rules.txt
Real-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/.cursorrules
This 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
๐ All Available Templates
| 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.
โ๏ธ Options & Flags
| 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
๐ How It Works
- 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
๐ค Contributing
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.
๐ ๏ธ Development
# 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 --help
๐ License
MIT License โ use it however you want!
๐ Credits
- 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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cursor_setup-2.1.0.tar.gz.
File metadata
- Download URL: cursor_setup-2.1.0.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a4401b42df5abce3ad5b3a37e2e43b3bd103cccc54a6ae1a6c11f31255a8dc2
|
|
| MD5 |
e0fb8db93202c6312ab91ec8f35b5055
|
|
| BLAKE2b-256 |
10c2d2bd30a87de6b7c2a789682aa7d1bd85a9cd30f5170fb9eb861cae4f8ad2
|
File details
Details for the file cursor_setup-2.1.0-py3-none-any.whl.
File metadata
- Download URL: cursor_setup-2.1.0-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f92d34d27fa038936da2e97e77bf48dc821c1da085ae761c2f0d4c3369ee616a
|
|
| MD5 |
e622904e8780a0391ee134a5f4882b73
|
|
| BLAKE2b-256 |
a38aca19af0a2eaaf53af12af7495427fb40e7f06d44e0b6175a1e18e2420416
|