Cette page est affichée en anglais. Une traduction française est en cours.
SkillsMar 28, 2026·3 min de lecture

Awesome Cursor Rules — AI Coding Standards for 30+ Stacks

Curated .cursorrules files for 30+ tech stacks. Drop into your project root so Cursor AI follows your coding standards automatically.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
02-jeecg-claude-code-cost-cut.md
Commande d'installation directe
npx -y tokrepo@latest install ca000374-f5d8-4d75-a30c-460fda0b6b0e --target codex

À exécuter après confirmation du plan en dry-run.

TL;DR
A big, editable rules library for making Cursor AI follow your project conventi…
§01

What it is

Awesome Cursor Rules is a curated library of Cursor Project Rules you can reuse as a starting point for real projects — especially when you want your AI editor to consistently follow the same conventions without repeating instructions in every chat.

Upstream, the repository describes Cursor Project Rules as Markdown-based .mdc files that live under .cursor/rules/. TokRepo editorial note: the workflow you’re viewing may mention older “.cursorrules” conventions, but the upstream repo itself is organized around .mdc rule files — treat the upstream README as the source of truth for current layout and naming.

Think of this library as a menu. You don’t “install the repo”; you borrow a ruleset, paste it into your project, and then tune it until it reflects how your codebase actually works.

Repository signal (verified): 39,509 GitHub stars, license CC0-1.0, last updated 2026-05-14T00:09:14Z (fetched 2026-05-14T00:38:29.999279+00:00).

§02

How it saves time or tokens

Rules aren’t “magic prompts.” They’re a consistency layer that turns repeated corrections into a one-time edit:

  • They reduce back-and-forth by telling the model what your project expects (structure, naming, testing, error-handling).
  • They prevent “policy drift” when multiple people (or multiple agent runs) touch the same codebase.
  • They make review faster because generated code is closer to your norms on the first pass.

The highest-ROI use case is team work: once a rule file matches your repo, you stop spending tokens re-explaining the basics (“use App Router”, “prefer Zod”, “don’t touch auth helpers”, “tests must be deterministic”).

TokRepo editorial heuristic: rules pay for themselves when you can answer “yes” to at least one of these:

  • You work in a repo with established conventions that matter in review.
  • Multiple people (or multiple agents) contribute to the same codebase.
  • Mistakes are costly (auth, payments, data migrations, security).
  • You’ve noticed the AI repeatedly making the same class of error.
§03

How to use

  1. Pick a rule that matches your stack. Start with the closest .mdc file in the upstream rules/ directory; don’t optimize too early.
  2. Install it in your repo. Follow the upstream convention (Cursor Project Rules in .cursor/rules/). If your toolchain still expects a different filename, adapt intentionally and document the choice in your repo.
  3. Make it yours (this is the real work). Replace generic statements with your realities:
  • framework versions and router style,
  • directory conventions and module boundaries,
  • “allowed” vs “banned” dependencies,
  • error-handling and logging expectations,
  • test commands and what a passing run looks like.
  1. Add one explicit “proof step.” A good rule file doesn’t just say what to do; it says how to verify it:
  • “run pnpm test before finishing,”
  • “no changes without updating snapshots,”
  • “typecheck must pass.”
  1. Validate on one real task. Use a small change request (fix a failing test, add one endpoint, refactor one file) and check if the agent behavior matches the rule.
  2. Version it. Keep rule files in git and review them like code. A rules change can be a behavior change.

A practical “rules tuning” checklist

When you paste in a ruleset, do these edits before you call it “done”:

  • Replace placeholders with your actual commands (pnpm vs npm, uv vs pip, go test ./..., etc.).
  • Specify code style where it matters (file naming, component patterns, imports).
  • Add a section for security constraints relevant to your app (secrets handling, auth boundaries).
  • Add a section for what not to change (public API, migrations, config files).
  • Add a short “if unsure, ask” rule (better a question than a confident wrong change).

How .mdc rules are typically scoped (why it matters)

Many Cursor Project Rules use a small YAML frontmatter block to control where a rule applies. You’ll commonly see fields like:

  • description: a human-readable summary of what the rule set is trying to enforce.
  • globs: which files the rule applies to (for example */).
  • alwaysApply: whether the rule should always be active or only in specific contexts.

TokRepo editorial take: scoping is the difference between “helpful guardrails” and “noise.” If you apply a very strict framework rule to every file, the agent can become rigid and less helpful for unrelated tasks (scripts, docs, ops).

A practical pattern that works well:

  1. One small, always-on baseline rule for safety and repo conventions (no secrets, run tests, don’t refactor).
  2. Stack-specific rules (Next.js, Django, Go services) scoped to the folders where they apply.
  3. Task-specific rules for high-risk operations (migrations, auth, payments) that only apply when you’re working in those areas.

This layering keeps agent behavior predictable without turning every interaction into a compliance exercise.

What to include in a high-signal ruleset

If you’re editing a ruleset from this library, prioritize information the agent can use operationally:

  • Project boundaries: “don’t import from X layer into Y layer”, “UI cannot call database directly”.
  • Verification loop: the one command that proves correctness (tests/build/typecheck).
  • Security invariants: “never log tokens”, “don’t change auth flows without tests”.
  • Output expectations: “prefer small diffs”, “keep changes reviewable”, “avoid unrelated refactors”.

Avoid dumping huge style guides into rules. If a rule is to