Skip to main content

๐Ÿš€ 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.

PyPI version Python 3.9+ License: MIT Downloads


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 list to 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

  1. Local templates are bundled with the package (always available offline)
  2. Remote templates are fetched from our community registry
  3. 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:

  1. Fork the repository
  2. Edit rules.json
  3. Add your template URL + description
  4. 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


Found this useful? โญ Star us on GitHub!

https://github.com/ThanhNguyxn/cursor-setup

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cursor_setup-2.1.0.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cursor_setup-2.1.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

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

Hashes for cursor_setup-2.1.0.tar.gz
Algorithm Hash digest
SHA256 0a4401b42df5abce3ad5b3a37e2e43b3bd103cccc54a6ae1a6c11f31255a8dc2
MD5 e0fb8db93202c6312ab91ec8f35b5055
BLAKE2b-256 10c2d2bd30a87de6b7c2a789682aa7d1bd85a9cd30f5170fb9eb861cae4f8ad2

See more details on using hashes here.

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

Hashes for cursor_setup-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f92d34d27fa038936da2e97e77bf48dc821c1da085ae761c2f0d4c3369ee616a
MD5 e622904e8780a0391ee134a5f4882b73
BLAKE2b-256 a38aca19af0a2eaaf53af12af7495427fb40e7f06d44e0b6175a1e18e2420416

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page