Skip to main content

A CLI tool to scan projects and install relevant Cursor rules

Project description

Cursor Rules CLI

Disclaimer: This project is not officially associated with or endorsed by Cursor. It is a community-driven initiative to enhance the Cursor experience.

Cursor Rules CLI - Auto-install relevant Cursor rules with one simple command | Product Hunt

A simple tool that helps you find and install the right Cursor rules for your project. It scans your project to identify libraries and frameworks you're using and suggests matching rules.

Cursor Rules CLI Demo

Features

  • 🔍 Auto-detects libraries in your project
  • 📝 Supports direct library specification
  • 📥 Downloads and installs rules into Cursor
  • 🎨 Provides a colorful, user-friendly interface
  • 🔀 Works with custom rule repositories
  • 🔒 100% privacy-focused (all scanning happens locally)

Installation

pip install cursor-rules

Basic Usage

# Scan current project and install matching rules
cursor-rules

# Specify libraries directly (skips project scanning)
cursor-rules --libraries "react,tailwind,typescript"

# Scan a specific project directory
cursor-rules -d /path/to/my/project

Common Options

Option Description
--dry-run Preview without installing anything
--force Replace existing rules
-v, --verbose Show detailed output
--quick-scan Faster scan (checks package files only)
--max-results N Show top N results (default: 20)

Custom Repositories (not tested yet)

# Use rules from your own repository
cursor-rules --custom-repo your-username/your-repo

# Save repository setting for future use
cursor-rules --custom-repo your-username/your-repo --save-config

Configuration

# View current settings
cursor-rules --show-config

# Save settings globally
cursor-rules --save-config

# Save settings for current project only
cursor-rules --save-project-config

Full Options Reference

Run cursor-rules --help to see all available options.

License

MIT

Todo:

  • Test the custom repo feature

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_rules-0.5.1.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

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

cursor_rules-0.5.1-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file cursor_rules-0.5.1.tar.gz.

File metadata

  • Download URL: cursor_rules-0.5.1.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for cursor_rules-0.5.1.tar.gz
Algorithm Hash digest
SHA256 27087383cf891fb7ab2e893558e7d3518da90e9fde547c4dbade7218d289a0a9
MD5 e9ef23b8c95495b415df73561e7478a0
BLAKE2b-256 73b2ad6d82898c7f2210f1df303a5996709c86a5c676cf2ad55332f1278da6cb

See more details on using hashes here.

File details

Details for the file cursor_rules-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: cursor_rules-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 28.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for cursor_rules-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 492bbadbabfb5e48f2e738f7d8c19efc0bada6b90e2454c1ca6ae1cf484b2e1b
MD5 9ac24c7661469e63e15d9078297ca2e0
BLAKE2b-256 3e09274ada5b60e0954bb8101de69b9f564175cecd57527c90f4483a67503bbd

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