← all repositories
PatrickJS/awesome-cursorrules

Curated guardrails to stop Cursor from freelancing

A community catalog of `.mdc` files that stops Cursor AI from ignoring your stack and generating irrelevant boilerplate.

40.4k stars JavaScript Coding AssistantsLearning
awesome-cursorrules
Velocity · 7d
+13
★ / day
Trend
cooling
star history

What it does This repository is a curated catalog of Markdown-based .mdc files for the Cursor AI editor. Drop a file into .cursor/rules/ and Cursor suddenly knows your framework quirks, preferred libraries, naming conventions, and security constraints instead of generating generic boilerplate. The list spans frontend frameworks, backend stacks, mobile development, databases, testing, and even Shopify Liquid themes.

The interesting bit These files are essentially version-controlled system prompts. One Next.js 15 ruleset includes 27 architecture constraints to prevent specific AI hallucinations like insecure Supabase auth patterns or missing row-level security. It turns editorial guesswork into repeatable, shareable configuration.

Key highlights

  • Covers frontend, backend, mobile, games, CSS, state management, databases, testing, and security.
  • Includes framework-specific guardrails for React Router v7, Svelte 5 vs. Svelte 4, Next.js App Router, and Solid.js.
  • Some rulesets target narrow failure modes, such as Stripe key exposure or deprecated Supabase imports.
  • Shared .mdc files keep every contributor’s AI assistance consistent across a team.
  • Uses the modern .mdc Project Rules format.

Verdict Worth bookmarking if you use Cursor and tire of correcting the AI’s framework guesses. Skip it if you want a library or CLI tool—this is purely a catalog of configuration templates.

Frequently asked

What is PatrickJS/awesome-cursorrules?
A community catalog of `.mdc` files that stops Cursor AI from ignoring your stack and generating irrelevant boilerplate.
Is awesome-cursorrules open source?
Yes — PatrickJS/awesome-cursorrules is open source, released under the CC0-1.0 license.
What language is awesome-cursorrules written in?
PatrickJS/awesome-cursorrules is primarily written in JavaScript.
How popular is awesome-cursorrules?
PatrickJS/awesome-cursorrules has 40.4k stars on GitHub and is currently cooling off.
Where can I find awesome-cursorrules?
PatrickJS/awesome-cursorrules is on GitHub at https://github.com/PatrickJS/awesome-cursorrules.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.