cursorrules

A curated collection of Cursor rules, which are instructions that guide an AI coding assistant, organized by programming topic.

In plain words
What is it for?
Use it to organize rule files for frontend, backend, mobile, databases, testing, build tools, languages, and other topics.
Why use it?
It gives projects a consistent structure for storing and documenting rules across languages, frameworks, tools, and development areas.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/toptalentcoder/cursor-awesomerules/cursorrules
Clone the repo
git clone --depth 1 https://github.com/toptalentcoder/Cursor-AwesomeRules

Made for: Cursor.

Per session 816 This file is loaded in full into every session.
When invoked 816 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00816 $0.00816
Opus 5 $0.00408 $0.00408
Sonnet 5 $0.00163 $0.00163
Haiku 4.5 $0.00082 $0.00082

Measured 2d ago against content hash a958974cc6f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cursorrules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to cursorrules — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursorrules · 82 lines

What it actually says

// Awesome CursorRules // A curated list of awesome .cursorrules files for enhancing Cursor AI experience

// General guidelines Always use Markdown for documentation and README files Maintain the existing structure of the README.md file

// README.md structure Maintain the following structure in the README.md file:

  1. Title and Awesome badge
  2. Logo
  3. Short description
  4. "Why .cursorrules?" section
  5. Table of Contents
  6. Rules section
    • Frontend Frameworks and Libraries
    • Backend and Full-Stack
    • Mobile Development
    • CSS and Styling
    • State Management
    • Database and API
    • Testing
    • Build Tools and Development
    • Language-Specific
    • Other
  7. How to Use section
  8. Contributing section
  9. License section

// Organization of rules Organize .cursorrules files into the following main categories within the 'rules' directory:

  • Frontend Frameworks and Libraries
  • Backend and Full-Stack
  • Mobile Development
  • CSS and Styling
  • State Management
  • Database and API
  • Testing
  • Build Tools and Development
  • Language-Specific
  • Other Place each .cursorrules file directly in the 'rules' folder The folder name for each .cursorrules file should describe the category and content of the file Refer to the README in each folder for guidance on naming conventions and descriptions

// Naming and formatting Use descriptive names for .cursorrules files and their folders, following the pattern: 'technology-focus-cursorrules-prompt-file' Maintain alphabetical order within each category in the README.md file Use consistent formatting for list items in the README.md file

// Content guidelines When creating or editing .cursorrules files, focus on project-specific instructions and best practices Include comments in .cursorrules files to explain complex rules or provide context Use clear and concise language in all documentation and .cursorrules files Provide context on what you're building, style guidelines, or info on commonly-used methods

// Optional README for credit and description Each .cursorrules file may have an accompanying README.md file in its folder Use this README to provide credit to the original author and a brief description of the .cursorrules file's purpose

// Maintenance and updates Update the README.md file when adding new .cursorrules files, placing them in the correct category Ensure all links in the README.md file are relative and correct When updating the README.md, ensure the table of contents remains accurate When adding new categories, update both the 'Contents' and 'Rules' sections of the README.md Regularly review and update categorization as the repository grows

// Best practices Maintain consistency in capitalization and punctuation throughout the repository When referencing Cursor AI, always use the correct capitalization and spacing When adding examples or explanations, focus on practical use cases for Cursor AI users If a .cursorrules file fits multiple categories, place it in the most relevant one and cross-reference in others if necessary Keep the 'Other' category for .cursorrules files that don't fit neatly into the main categories

// Additional insights .cursorrules files are repo-specific "Rules for AI" .cursorrules files should be placed in the root of the repository The content of .cursorrules files will be appended to the global "Rules for AI" settings in Cursor Focus on providing repo-level context and guidelines, not just general coding practices .cursorrules can include information about project structure, architectural decisions, and commonly used libraries or methods Consider including rules for handling specific file types or coding patterns unique to your project Rules can cover both code generation and code understanding aspects for Cursor AI

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 82 lines · 816 tokens per session scan A a958974cc6f7

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository toptalentcoder/Cursor-AwesomeRules (6 stars, last pushed 1y ago), licensed CC0-1.0. It adds 816 tokens to every session, about $0.0041 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to cursorrules, differing in 0 lines, and is treated as a copy.