# Introducing Unofficial Cursor Rules CLI: Find the Perfect Rules for Your Project

**URL:** <https://forum.cursor.com/t/introducing-unofficial-cursor-rules-cli-find-the-perfect-rules-for-your-project/58691>\
**Category:** Built for Cursor\
**Created:** [March 3, 2025, 7:31pm UTC](https://forum.cursor.com/t/introducing-unofficial-cursor-rules-cli-find-the-perfect-rules-for-your-project/58691 "2025-03-03T19:31:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanjeed5](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/sanjeed5/32/9610_2.png) [@sanjeed5](https://forum.cursor.com/u/sanjeed5)\
**Post date:** [March 3, 2025, 7:31pm UTC](https://forum.cursor.com/t/introducing-unofficial-cursor-rules-cli-find-the-perfect-rules-for-your-project/58691/1 "2025-03-03T19:31:33Z")

</div>

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

Hey Cursor community! 👋

I’m excited to share a new tool that will make your Cursor experience even better: **Cursor Rules CLI**!

[![asciicast](https://asciinema.org/a/706227.svg)](https://asciinema.org/a/706227)

## What is Cursor Rules CLI?

Cursor Rules CLI is a simple yet powerful tool that helps you find and install the right Cursor rules for your project. It automatically scans your codebase to identify the libraries and frameworks you’re using, then suggests and installs matching MDC (Markdown Cursor) rules to enhance your coding experience.

## Why You’ll Love It

- 🔍 **Auto-detection** : Automatically identifies libraries in your project
- 📝 **Direct specification** : Specify libraries manually if you prefer
- 📥 **One-click installation** : Downloads and installs rules directly into Cursor
- 🎨 **User-friendly interface** : Colorful, intuitive CLI experience
- 🔀 **Custom repositories** : Works with your own rule repositories
- 🔒 **Privacy-focused** : All scanning happens locally on your machine

## Getting Started in Seconds

```bash
# Install with uv (recommended)
uv add cursor-rules

# Or use pip if you prefer
pip install cursor-rules

# Scan your project and install matching rules
cursor-rules

```

That’s it! The tool will scan your project, find the best rules, and install them automatically.

## Power User Options

Want more control? We’ve got you covered:

```bash
# Preview without installing
cursor-rules --dry-run

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

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

# Replace existing rules
cursor-rules --force

```

## How the Rules Were Created

The MDC rules powering this tool were created using a sophisticated two-step process:

1. **Semantic Search with Exa** : We used Exa to perform semantic web searches for each library, gathering the most relevant best practices, common patterns, and expert recommendations.

2. **LLM Enhancement** : The search results were then processed by an LLM (primarily Gemini) to create detailed, structured content optimized for Cursor’s MDC format.

This approach ensures that each rule contains high-quality, up-to-date information that will genuinely improve your coding experience.

## Behind the Scenes

The entire project is built with efficiency in mind:

- Parallel processing for generating rules
- Smart retry system that focuses on failed libraries
- Progress tracking to allow resuming interrupted runs
- Configurable API rate limits and processing parameters

## Contributing

This is just the beginning! We’d love your help to make Cursor Rules CLI even better:

1. Try it out and share your feedback
2. Suggest new libraries to add
3. Create and share your own custom rules
4. Help us test the custom repository feature

## What’s Next?

We can work on:

- Libraries with version rules (next14, next15, etc)
- Extension?
- Support for more frameworks and libraries

## Get Involved

- GitHub: [awesome-cursor-rules-mdc/cursor-rules-cli](https://github.com/sanjeed5/awesome-cursor-rules-mdc/tree/main/cursor-rules-cli#readme)
- Issues/Feedback: [GitHub Issues](https://github.com/sanjeed5/awesome-cursor-rules-mdc/issues)

Try it today and let us know what you think! We’re excited to see how Cursor Rules CLI enhances your development workflow.

Happy coding! 💻✨

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [March 3, 2025, 7:55pm UTC](https://forum.cursor.com/t/introducing-unofficial-cursor-rules-cli-find-the-perfect-rules-for-your-project/58691/4 "2025-03-03T19:55:09Z")

</div>

not sure from where you would get the precise rules because often libraries have their own requirements etc. specially on non python projects.

what you made reads like documentation files which are better handled by @docs

while its cool, there is so much stuff inside thats so irrelevant for actual rules.

1. you did not mention which version of each library you ‘documented’. referencing the wrong info is bad.
2. i read a few of the files you created in the repo. Almost 90% is bland library docu repetitions that no LLM needs. If they were trained on that docu or even projects created with those libraries you do not need any docu at all and much less rules.
3. the files are cross referencing other libraries and setting wrong rules since you dont check the actual libraries needed.
4. lots of the referenced details in the files i found would actually confuse LLMs because they are contradicting each other in specific cases (depending what other libraries you use with the one that you generated rules for.

- configurabe api rate limits? what is that about. so much confusion.

---

<div class="post-metadata">

**Author:** ![sanjeed5](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/sanjeed5/32/9610_2.png) [@sanjeed5](https://forum.cursor.com/u/sanjeed5)\
**Post date:** [March 3, 2025, 8:01pm UTC](https://forum.cursor.com/t/introducing-unofficial-cursor-rules-cli-find-the-perfect-rules-for-your-project/58691/5 "2025-03-03T20:01:44Z")

</div>

Hey @condor thanks for the feedback.

All the points you said make sense, my bad, I’ve updated the Title to make it clear that it’s unofficial.

And other points also make sense.

Would using a better model generate better rules? Or do you think AI compiled rules are not very helpful?

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [March 3, 2025, 8:06pm UTC](https://forum.cursor.com/t/introducing-unofficial-cursor-rules-cli-find-the-perfect-rules-for-your-project/58691/6 "2025-03-03T20:06:55Z")

</div>

hmm i would like framework/library relevant rules.

If the frameworks or libraries werent so broad. 🙂 not your fault of course, but like said they sometimes contradict

e.g. references testing details where the testing library would be one that actually makes tests differently than the ‘generic’ tests showcased in the main library.

Lets see how they fit for others. I use very specific rules for testing, development etc and they are a mix of libraries that are used there were appropriate.

For example in many cases the globs should be empty unless they really will never apply to any other files… e.g. i saw a case where only one file type was used but the library uses several of them.

the trick would be in knowing which globs and rules apply for which part.

note that some of the library/framework rules would be needed in ‘planning’ (feature analysis) and if the rules are wrong it will generate non compliant files.

Also from my experience too many rules expecially if some may be conflicting causes LLms to use wrong ones, hehe

im not completely rejecting the possibility to use standardized rules. thats actually badly needed 🙂

---

<div class="post-metadata">

**Author:** ![sanjeed5](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/sanjeed5/32/9610_2.png) [@sanjeed5](https://forum.cursor.com/u/sanjeed5)\
**Post date:** [March 3, 2025, 8:15pm UTC](https://forum.cursor.com/t/introducing-unofficial-cursor-rules-cli-find-the-perfect-rules-for-your-project/58691/7 "2025-03-03T20:15:57Z")

</div>

@condor this is awesome, appreciate you taking the time out to respond!

This project has a long way to go!

---

<div class="post-metadata">

**Author:** ![xyzatin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/xyzatin/32/38477_2.png) [@xyzatin](https://forum.cursor.com/u/xyzatin)\
**Post date:** [March 4, 2025, 7:32pm UTC](https://forum.cursor.com/t/introducing-unofficial-cursor-rules-cli-find-the-perfect-rules-for-your-project/58691/8 "2025-03-04T19:32:28Z")

</div>

In my opinion, `.cursorrules` didn’t help much—maybe only 20-25%. It was useful at the start of the conversation but later seemed to forget and completely ignore them. It’s not working like system rules, though it should. I’m not sure why.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [June 18, 2026, 10:31am UTC](https://forum.cursor.com/t/introducing-unofficial-cursor-rules-cli-find-the-perfect-rules-for-your-project/58691/9 "2026-06-18T10:31:43Z")

</div>


