Skip to content

PatrickJS/awesome-cursorrules

Awesome Cursor Rules Awesome

Awesome Cursor Logo

Curated Cursor rules that enhance Cursor AI editor behavior with project-specific guidance and reusable coding standards.

Cursor AI is an AI-powered code editor. Cursor Project Rules are Markdown-based .mdc files that live in .cursor/rules/ and tell Cursor how to behave for specific projects, file types, frameworks, and workflows.

Sponsorships

CodeRabbit.ai Sponsorship Logo Unblocked Sponsorship Logo Warp Sponsorship Logo

Why Cursor Rules?

Cursor rules help developers define project-specific instructions for Cursor AI. This repository uses the modern .mdc Project Rules format.

  1. Customized AI Behavior: Project rules help tailor Cursor's responses to your project's specific needs, ensuring more relevant and accurate code suggestions.

  2. Consistency: By defining coding standards and best practices in .mdc files, you can help Cursor generate code that aligns with your project's style guidelines.

  3. Context Awareness: You can provide the AI with important context about your project, such as commonly used methods, architectural decisions, or specific libraries, leading to more informed code generation.

  4. Improved Productivity: With well-defined rules, the AI can generate code that requires less manual editing, speeding up your development process.

  5. Team Alignment: For team projects, shared .cursor/rules/*.mdc files help all team members receive consistent AI assistance.

  6. Project-Specific Knowledge: You can include information about your project's structure, dependencies, or unique requirements, helping the AI to provide more accurate and relevant suggestions.

By adding selected .mdc files to .cursor/rules/, you can use these rules directly in your project.

Contents

Rules

Frontend Frameworks and Libraries

Backend and Full-Stack

Mobile Development

Games and Graphics

  • ASCII Simulation Game - Cursor rules for ASCII simulation game development.
  • Blender Python Add-ons - Cursor rules for Blender Python add-ons, operators, panels, properties, registration, and API-safe scripting.
  • DragonRuby Best Practices - Cursor rules for DragonRuby development with best practices integration.
  • GameMaker GML - Cursor rules for GameMaker Language projects, objects, events, rooms, data structures, and performance-minded gameplay code.
  • Graphical Apps Development - Cursor rules for graphical apps development with integration.
  • Unity (C#) - Cursor rules for Unity development with C# integration.

CSS and Styling

State Management

  • React (Redux, TypeScript) - Cursor rules for React development with Redux and TypeScript integration.
  • React (MobX) - Cursor rules for React development with MobX integration.
  • React (React Query) - Cursor rules for React development with React Query integration.
  • React (TanStack Router + Query) - Cursor rules for React SPAs combining TanStack Router v1 and TanStack Query v5 for zero-loading-spinner routing and type-safe server state.
  • TanStack Query v5 - Cursor rules for TanStack Query v5 with query options, query key factories, mutations, optimistic updates, infinite queries, Suspense, and prefetching.

Database and API

  • GraphQL (Apollo Client) - Cursor rules for GraphQL development with Apollo Client integration.
  • Snowflake Cortex AI - Cursor rules for Snowflake Cortex AI Functions (AI_COMPLETE, AI_CLASSIFY, AI_EXTRACT, etc.) and Cortex Search for RAG applications.
  • Snowflake Data Engineering - Cursor rules for Snowflake SQL, data pipelines (Dynamic Tables, Streams, Tasks, Snowpipe), semi-structured data, Snowflake Postgres, and cost optimization.
  • Snowflake Snowpark Python & dbt - Cursor rules for Snowpark Python (DataFrames, UDFs, stored procedures) and dbt with the Snowflake adapter.
  • TypeScript (Axios) - Cursor rules for TypeScript development with Axios integration.

Testing

Hosting and Deployments

  • Cloudflare Email to Telegram - Cursor rules for setting up email-to-Telegram forwarding via Cloudflare Email Routing and Workers using the mail2tg CLI.
  • Netlify - Cursor rules for Netlify development with official integration.
  • Vercel - Cursor rules for Vercel deployment including serverless functions, Edge Runtime, middleware, caching, CI/CD, and production-ready configuration.

Build Tools and Development

Language-Specific

Security

  • DevSecOps, SSDLC, and AppSec - Cursor rules for secure coding, secret handling, dependency hygiene, authentication, authorization, security testing, and compliance documentation.

Documentation

Directories

How to Use

Project Rules

  1. Install Cursor AI if you haven't already.
  2. Browse the rules above to find an .mdc rule that suits your needs.
  3. Create a .cursor/rules/ directory in your project if it does not already exist.
  4. Copy the chosen .mdc file into .cursor/rules/.
  5. Customize the rule as needed for your specific project requirements.

Contributing

Contributions are welcome! If you have a great Cursor rule to share:

  1. Fork this repository.

  2. Choose a descriptive slug for the rule, such as react-typescript or python-fastapi.

  3. Add the canonical .mdc rule under rules/.

  4. New rules/*.mdc files must start with frontmatter like this:

    ---
    description: One-line summary of what this rule helps Cursor do
    globs: **/*.ts, **/*.tsx
    alwaysApply: false
    ---
    • description explains the rule's purpose to Cursor and contributors.
    • globs lists the file patterns where the rule should auto-attach.
    • alwaysApply: false keeps the rule scoped to matching or requested context.
    • alwaysApply: true makes the rule apply to every request; use it only for universal guidance.
  5. Update the main README.md file, adding your contribution to the appropriate category.

  6. Ensure your contribution follows the repository formatting and naming guidelines.

  7. Submit a pull request.

Please ensure your contribution is original or properly credited if based on existing work. Keep descriptions neutral, practical, and focused on reusable Cursor rule value.

Sponsorships

CodeRabbit.ai Sponsorship Logo Unblocked Sponsorship Logo Warp Sponsorship Logo


License

CC0

About

📄 Configuration files that enhance Cursor AI editor experience with custom rules and behaviors

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Contributors