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.
Cursor rules help developers define project-specific instructions for Cursor AI. This repository uses the modern .mdc Project Rules format.
-
Customized AI Behavior: Project rules help tailor Cursor's responses to your project's specific needs, ensuring more relevant and accurate code suggestions.
-
Consistency: By defining coding standards and best practices in
.mdcfiles, you can help Cursor generate code that aligns with your project's style guidelines. -
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.
-
Improved Productivity: With well-defined rules, the AI can generate code that requires less manual editing, speeding up your development process.
-
Team Alignment: For team projects, shared
.cursor/rules/*.mdcfiles help all team members receive consistent AI assistance. -
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.
- Awesome Cursor Rules
- Angular (Novo Elements) - Cursor rules for Angular development with Novo Elements UI library.
- Angular (TypeScript) - Cursor rules for Angular development with TypeScript integration.
- Astro (TypeScript) - Cursor rules for Astro development with TypeScript integration.
- Beefree SDK (TypeScript, JavaScript, CSS, HTML, React, Angular, Vue) - Cursor rules for embedding Beefree SDK's no-code content editors (for emails, pages, and popups) into a web application.
- Cursor AI (React, TypeScript, shadcn/ui) - Cursor rules for Cursor AI development with React, TypeScript, and shadcn/ui integration.
- Next.js 15 (React 19, Vercel AI, Tailwind) - Cursor rules for Next.js development with React 19, Vercel AI, and Tailwind CSS integration.
- Next.js 15 (Supabase, TypeScript, Security) - 27 architecture rules preventing AI hallucinations: insecure auth (getSession vs getUser), synchronous params, deprecated imports, missing RLS, and Stripe key exposure. Built for Cursor Agent and Claude Code.
- Next.js 14 (Tailwind, SEO) - Cursor rules for Next.js development with Tailwind CSS and SEO optimization.
- Next.js (React, Tailwind) - Cursor rules for Next.js development with React and Tailwind CSS integration.
- Next.js (React, TypeScript) - Cursor rules for Next.js development with React and TypeScript integration.
- Next.js (SEO Development) - Cursor rules for Next.js development with SEO optimization.
- Next.js (Supabase Todo App) - Cursor rules for Next.js development with Supabase integration for a Todo app.
- Next.js (TanStack Query v5) - Cursor rules for Next.js App Router with TanStack Query v5, covering the HydrationBoundary pattern, Server Actions as mutations, and optimistic updates.
- Next.js (Type LLM) - Cursor rules for Next.js development with Type LLM integration.
- Next.js (Tailwind, TypeScript) - Cursor rules for Next.js development with Tailwind CSS and TypeScript integration.
- Next.js (TypeScript App) - Cursor rules for Next.js development with TypeScript integration.
- Next.js (TypeScript) - Cursor rules for Next.js development with TypeScript integration.
- Next.js (TypeScript, Tailwind) - Cursor rules for Next.js development with TypeScript and Tailwind CSS integration.
- Next.js (Vercel, Supabase) - Cursor rules for Next.js development with Vercel and Supabase integration.
- Next.js (Vercel, TypeScript) - Cursor rules for Next.js development with Vercel and TypeScript integration.
- Next.js (App Router) - Cursor rules for Next.js development with App Router integration.
- Next.js (Material UI, Tailwind CSS) - Cursor rules for Next.js development with Material UI and Tailwind CSS integration.
- Qwik (Basic Setup with TypeScript and Vite) - Cursor rules for Qwik development with TypeScript and Vite integration.
- Qwik (with Tailwind CSS) - Cursor rules for Qwik development with Tailwind CSS integration.
- React Components Creation - Cursor rules for React component creation and development.
- React (FormEngine AI Form Builder) - Cursor rules for generating React forms from screenshots, PDFs, HTML, or text descriptions with validated FormEngine JSON schema. Renders through RSuite, Material UI, or Mantine.
- React (Next.js UI Development) - Cursor rules for React development with Next.js UI integration.
- React Router v7 - Cursor rules for React Router v7 framework mode, data routers, loaders, actions, route modules, and progressive enhancement.
- React (TypeScript, Next.js, Node.js) - Cursor rules for React development with TypeScript, Next.js, and Node.js integration.
- React (TypeScript, Symfony) - Cursor rules for React development with TypeScript and Symfony integration.
- Semiotic (React, D3, Data Visualization) - Cursor rules for Semiotic data visualization library with 30+ chart types, MCP server, and AI-assisted chart generation.
- Shopify Theme (Liquid, JavaScript, CSS) - Cursor rules for Shopify theme development with Liquid templates, section schemas, frontend assets, performance, and accessibility.
- Solid.js (Basic Setup) - Cursor rules for Solid.js development with basic setup.
- Solid.js (TypeScript) - Cursor rules for Solid.js development with TypeScript integration.
- Solid.js (Tailwind CSS) - Cursor rules for Solid.js development with Tailwind CSS integration.
- Svelte 5 vs Svelte 4 - Cursor rules for comparing Svelte 5 and Svelte 4 development.
- SvelteKit (RESTful API, Tailwind CSS) - Cursor rules for SvelteKit development with RESTful API and Tailwind CSS integration.
- SvelteKit (Tailwind CSS, TypeScript) - Cursor rules for SvelteKit development with Tailwind CSS and TypeScript integration.
- SvelteKit (TypeScript Guide) - Cursor rules for SvelteKit development with TypeScript integration.
- TanStack Router (React) - Cursor rules for TanStack Router v1 with file-based routing, typed params, search validation, loaders, auth guards, and route preloading.
- Vue 3 (Nuxt 3 Development) - Cursor rules for Vue 3 development with Nuxt 3 integration.
- Vue 3 (Nuxt 3, TypeScript) - Cursor rules for Vue 3 development with TypeScript integration.
- Vue 3 (Composition API) - Cursor rules for Vue 3 development with Composition API integration.
- Vue/Nuxt Full AI Stack - Complete AI coding setup for Vue 3 & Nuxt 3 with Cursor Project Rules, CLAUDE.md, Copilot instructions, and generation skills.
- Cloudflare Workers (Hono, Angular) - Cursor rules for full-stack SaaS applications on Cloudflare Workers with Hono APIs, Angular frontends, typed RPC, D1/Neon, and production observability.
- Convex best practices - Cursor rules for Convex development with best practices.
- Deno Integration - Cursor rules for Deno development with integration techniques.
- Drupal 11 - Cursor rules for Drupal 11 development.
- Elixir Engineer Guidelines - Cursor rules for Elixir development with engineer guidelines.
- Elixir (Phoenix, Docker) - Cursor rules for Elixir development with Phoenix and Docker integration.
- ES Module (Node.js) - Cursor rules for ES Module development with Node.js guidelines.
- Go Backend Scalability - Cursor rules for Go development with backend scalability.
- Go ServeMux REST API - Cursor rules for Go development with ServeMux REST API integration.
- Go (Basic Setup) - Cursor rules for Go development with basic setup.
- Go with Fiber - Cursor rules for Go development with Fiber integration.
- Go Temporal DSL - Cursor rules for Go development with Temporal DSL integration.
- Google ADK - Cursor rules for Google Agent Development Kit agents, tools, sessions, memory, artifacts, evaluation, and deployment.
- HOL (Hedera TypeScript SDK) - Cursor rules for Hashgraph Online development with TypeScript, building AI agents on Hedera with RegistryBrokerClient.
- HTMX (Basic Setup) - Cursor rules for HTMX development with basic setup.
- HTMX (Flask) - Cursor rules for HTMX development with Flask integration.
- HTMX (Django) - Cursor rules for HTMX development with Django integration.
- Java (Springboot, JPA) - Cursor rules for Java development with Springboot and JPA integration.
- Knative (Istio, Typesense, GPU) - Cursor rules for Knative development with Istio, Typesense, and GPU integration.
- Kotlin Ktor Development - Cursor rules for Kotlin development with Ktor integration.
- Laravel (PHP 8.3) - Cursor rules for Laravel development with PHP 8.3 integration.
- Laravel (TALL Stack) - Cursor rules for Laravel development with TALL Stack best practices.
- Manifest - Cursor rules for manifest development with YAML integration.
- Momen.app (Backend-as-a-Service) - Cursor rules for building custom frontends with Momen.app as headless BaaS with GraphQL API, actionflows, AI agents, and Stripe integration.
- Node.js (MongoDB) - Cursor rules for Node.js development with MongoDB integration.
- Node.js (MongoDB, JWT, Express, React) - Cursor rules for Node.js development with MongoDB, JWT, Express, and React integration.
- Rails 8 (Basic Setup) - Cursor rules for Rails development with basic setup.
- Python (FastAPI) - Cursor rules for Python FastAPI backend development and best practices.
- Python 3.12 (FastAPI Best Practices) - Cursor rules for Python FastAPI development with best practices.
- Python (Django Best Practices) - Cursor rules for Python Django development with best practices.
- Python (FastAPI Best Practices) - Cursor rules for Python FastAPI development with best practices.
- Python (FastAPI Scalable API) - Cursor rules for Python FastAPI development with scalable API integration.
- Python (FastAPI Production Architecture) - Cursor rules for FastAPI services with router/service/repository boundaries, typed provider adapters, bulkhead isolation, idempotency, and domain exceptions.
- Python (Flask JSON Guide) - Cursor rules for Python Flask development with JSON guide.
- Python LLM & ML Workflow - Cursor rules for Python LLM & ML development with workflow integration.
- Salesforce (Apex) - Cursor rules for Salesforce development with Apex integration.
- TanStack Start - Cursor rules for TanStack Start full-stack React framework including server functions, API routes, streaming with defer(), SSR, and multi-platform deployment.
- TypeScript (NestJS Anti-Hallucination) - Cursor rules that block deprecated, phantom, or incorrect NestJS imports, decorators, providers, modules, and testing patterns.
- TypeScript (NestJS Best Practices) - Cursor rules for TypeScript development with NestJS best practices.
- TYPO3 CMS Extension - Cursor rules for TYPO3 CMS development with extension integration.
- WordPress (PHP, Guzzle, Gutenberg) - Cursor rules for WordPress development with PHP, Guzzle, and Gutenberg integration.
- WordPress (macOS) - Cursor rules for WordPress development on macOS.
- WordPress Full AI Stack - Complete AI coding setup for WordPress — themes, plugins, Gutenberg, WooCommerce, ACF, REST API with Cursor Project Rules, CLAUDE.md, Copilot instructions, and 5 generation skills.
- Android Native (Jetpack Compose) - Cursor rules for Android development with Jetpack Compose integration.
- Cursor Rules Pack v2 - 7 sample production-tested rules (dependency discipline, error handling, state management, webhook security, and more). See the pack README for full-pack details.
- Flutter Expert - Cursor rules for Flutter development with expert integration.
- HarmonyOS ArkTS - Cursor rules for HarmonyOS ArkTS components, state, resources, lifecycle, layout, and accessibility.
- NativeScript - Cursor rules for NativeScript development.
- React Native Expo - Cursor rules for React Native Expo development.
- SwiftUI Guidelines - Cursor rules for SwiftUI development guidelines.
- TypeScript (Expo, Jest, Detox) - Cursor rules for TypeScript development with Expo, Jest, and Detox integration.
- UIKit Guidelines - Cursor rules for UIKit development guidelines.
- 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.
- Landing Page Image Quality - Cursor rules for avoiding placeholder or broken image URLs, using stable visual assets, and checking alt text, dimensions, licensing, and responsive behavior.
- Tailwind CSS (Next.js Guide) - Cursor rules for Tailwind CSS development with Next.js integration.
- Tailwind (React, Firebase) - Cursor rules for Tailwind development with React and Firebase integration.
- Tailwind (shadcn/ui Integration) - Cursor rules for Tailwind development with shadcn/ui integration.
- HTML (Tailwind CSS, JavaScript) - Cursor rules for HTML development with Tailwind CSS and JavaScript integration.
- JavaScript (Astro, Tailwind CSS) - Cursor rules for JavaScript development with Astro and Tailwind CSS integration.
- React (Styled Components) - Cursor rules for React development with Styled Components integration.
- React (Chakra UI) - Cursor rules for React development with Chakra UI integration.
- RTL / Right-to-Left (i18n, Tailwind, React Native) - Cursor rules for RTL development with logical CSS properties, Tailwind logical classes, bidirectional text, and automated auditing via rtlify-ai.
- Toss-Style Design System - Cursor rules for disciplined product UI with restrained color, grayscale hierarchy, typography, cards, metrics, dark mode, and accessibility.
- 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.
- 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.
- Cypress API Testing - Cursor rules for Cypress development with API testing.
- Cypress Accessibility Testing - Cursor rules for Cypress development with accessibility testing.
- Cypress Defect Tracking - Cursor rules for Cypress development with defect tracking.
- Cypress E2E Testing - Cursor rules for Cypress development with E2E testing.
- Cypress Integration Testing - Cursor rules for Cypress development with integration testing.
- Jest Unit Testing - Cursor rules for Jest development with unit testing.
- Playwright API Testing - Cursor rules for Playwright development with API testing.
- Playwright Accessibility Testing - Cursor rules for Playwright development with accessibility testing.
- Playwright Defect Tracking - Cursor rules for Playwright development with defect tracking.
- Playwright E2E Testing - Cursor rules for Playwright development with E2E testing.
- Playwright Integration Testing - Cursor rules for Playwright development with integration testing.
- PR Review (security / performance / tests / architecture) - Cursor rules for focused PR reviews with severity ranking, file and line citations, and separate review angles for security, performance, tests, and architecture.
- PR Template - Cursor rules for PR development with template integration.
- QA Bug Report - Cursor rules for QA development with bug report integration.
- TestRail Test Case - Cursor rules for TestRail development with test case integration.
- TypeScript (Expo, Jest, Detox) - Cursor rules for TypeScript development with Expo, Jest, and Detox integration.
- Vitest Unit Testing - Cursor rules for Vitest development with unit testing.
- Xray Test Case - Cursor rules for Xray development with test case integration.
- 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.
- AI Agent Specialist - Cursor rules for TypeScript, React, Node.js, clean architecture, testing, and WHY-oriented engineering guidance.
- Alpha Skills - Quantitative factor research skills for Cursor. Evaluate factors, run backtests, mine new alpha through natural language.
- Anti-Over-Engineering - Cursor rules for keeping changes scoped, simple, and directly tied to the user's request.
- Chrome Extension (JavaScript/TypeScript) - Cursor rules for Chrome extension development with JavaScript and TypeScript integration.
- Code Guidelines - Cursor rules for code development with guidelines integration.
- Code Pair Interviews - Cursor rules for code pair interviews development with integration.
- Code Style Consistency - Cursor rules for code development with style consistency integration.
- Embedded MCU / STM32 / HAL - Cursor rules for embedded C/C++ development with STM32 HAL, interrupts, DMA, memory constraints, and hardware-focused testing.
- Engineering Ticket Template - Cursor rules for engineering development with ticket template integration.
- GitHub Code Quality - Cursor rules for GitHub development with code quality integration.
- GitHub Instructions - Cursor rules for GitHub development with instructions integration.
- Git Commit Messages - Cursor rules for Git development with conventional commit messages integration.
- Kubernetes (MkDocs Documentation) - Cursor rules for Kubernetes development with MkDocs documentation integration.
- Linux (NVIDIA CUDA, Python) - Cursor rules for Linux development with NVIDIA CUDA and Python integration.
- Optimize (DRY, SOLID Principles) - Cursor rules for optimization development with DRY and SOLID principles integration.
- Project Epic Template - Cursor rules for project development with epic template integration.
- Python Containerization - Cursor rules for Python development with containerization integration.
- Python (GitHub Setup) - Cursor rules for Python development with GitHub setup integration.
- ROS / ROS2 - Cursor rules for ROS and ROS2 packages, nodes, launch files, messages, services, actions, simulation, and testing.
- Tauri (Svelte, TypeScript Guide) - Cursor rules for Tauri development with Svelte and TypeScript guide integration.
- TypeScript Code Convention - Cursor rules for TypeScript development with code convention integration.
- VSCode Extension (Electron/TypeScript) - Cursor rules for VSCode extension development with Electron and TypeScript integration.
- Web App Optimization - Cursor rules for web app development with optimization integration.
- Ankra CLI (Kubernetes Cluster Management) - Cursor rules for Ankra CLI development with Kubernetes cluster management integration.
- AutoML and Hyperparameter Optimization - Cursor rules for Python ML model search, validation design, search spaces, experiment tracking, and time-series AutoML.
- Fortran - Cursor rules for modern Fortran scientific computing, modules, explicit interfaces, kind parameters, memory safety, and testing.
- JavaScript/TypeScript Code Quality - Cursor rules for JavaScript and TypeScript development with code quality integration.
- JavaScript (Chrome APIs) - Cursor rules for JavaScript development with Chrome APIs integration.
- Optimize (Rell Blockchain Code) - Cursor rules for optimization development with Rell Blockchain code integration.
- Pandas (scikit-learn Guide) - Cursor rules for Pandas development with scikit-learn guide integration.
- Plasticode (Telegram API) - Cursor rules for Plasticode development with Telegram API integration.
- PyQt6 (EEG Processing) - Cursor rules for PyQt6 development with EEG processing integration.
- Python/TypeScript Guide - Cursor rules for Python development with TypeScript guide integration.
- Python Best Practices - Cursor rules for Python development with best practices integration.
- Python Developer - Cursor rules for Python development with developer integration.
- Python Projects Guide - Cursor rules for Python development with projects guide integration.
- PySpark ETL Best Practices - Cursor rules for PySpark ETL development with code style, joins, window functions, map operations, and Iceberg patterns.
- PyTorch (scikit-learn) - Cursor rules for PyTorch development with scikit-learn integration.
- R Best Practices - Cursor rules for R development with best practices integration.
- Rust - Cursor rules for safe, idiomatic Rust application and library development.
- Solidity (Foundry) - Cursor rules for Solidity development with Foundry integration.
- Solidity (Hardhat) - Cursor rules for Solidity development with Hardhat integration.
- Solidity (React Blockchain Apps) - Cursor rules for Solidity development with React Blockchain apps integration.
- Solana Wallet-Aware Coding - Cursor rules for Solana wallet safety, isolated signers, program allowlists, MEV-aware transaction handling, and operational guardrails.
- TypeScript (LLM Tech Stack) - Cursor rules for TypeScript development with LLM tech stack integration.
- TypeScript (Node.js, Next.js, AI) - Cursor rules for TypeScript development with Node.js, Next.js, and AI integration.
- TypeScript (Node.js, Next.js, React, UI, CSS) - Cursor rules for TypeScript development with Node.js, Next.js, React, UI, and CSS integration.
- TypeScript (Node.js, React, Vite) - Cursor rules for TypeScript development with Node.js, React, and Vite integration.
- TypeScript (React, Next.js, Cloudflare) - Cursor rules for TypeScript development with React, Next.js, and Cloudflare integration.
- TypeScript (React, NextUI, Supabase) - Cursor rules for TypeScript development with React, NextUI, and Supabase integration.
- TypeScript (shadcn/ui, Next.js) - Cursor rules for TypeScript development with shadcn/ui and Next.js integration.
- TypeScript (Vite, Tailwind) - Cursor rules for TypeScript development with Vite and Tailwind integration.
- TypeScript (Vue.js) - Cursor rules for TypeScript development with Vue.js integration.
- TypeScript (Zod, Tailwind, Next.js) - Cursor rules for TypeScript development with Zod, Tailwind, and Next.js integration.
- WebAssembly (Z80 Cellular Automata) - Cursor rules for WebAssembly development with Z80 Cellular Automata integration.
- TypeScript (Next.js) - Cursor rules for TypeScript development with Next.js integration.
- TypeScript (Next.js, React) - Cursor rules for TypeScript development with Next.js and React integration.
- TypeScript (Next.js, React, Tailwind, Supabase) - Cursor rules for TypeScript development with Next.js, React, Tailwind, and Supabase integration.
- TypeScript (Next.js, Supabase) - Cursor rules for TypeScript development with Next.js and Supabase integration.
- TypeScript (Node.js, Next.js App) - Cursor rules for TypeScript development with Node.js and Next.js app integration.
- TypeScript (React) - Cursor rules for TypeScript development with React integration.
- TypeScript (Clasp App Script) - Cursor rules for TypeScript development with Clasp app script integration.
- C++ Programming Guidelines - Cursor rules for C++ development with programming guidelines integration.
- TensorFlow and Deep Learning - Cursor rules for TensorFlow model development, training, evaluation, export, and deployment.
- DevSecOps, SSDLC, and AppSec - Cursor rules for secure coding, secret handling, dependency hygiene, authentication, authorization, security testing, and compliance documentation.
- Gherkin Style Testing - Cursor rules for Gherkin style testing development with integration.
- How-To Documentation - Cursor rules for how-to documentation development with integration.
- README Best Practices - Cursor rules for README documentation with best practices integration.
- Install Cursor AI if you haven't already.
- Browse the rules above to find an
.mdcrule that suits your needs. - Create a
.cursor/rules/directory in your project if it does not already exist. - Copy the chosen
.mdcfile into.cursor/rules/. - Customize the rule as needed for your specific project requirements.
Contributions are welcome! If you have a great Cursor rule to share:
-
Fork this repository.
-
Choose a descriptive slug for the rule, such as
react-typescriptorpython-fastapi. -
Add the canonical
.mdcrule underrules/. -
New
rules/*.mdcfiles must start with frontmatter like this:--- description: One-line summary of what this rule helps Cursor do globs: **/*.ts, **/*.tsx alwaysApply: false ---
descriptionexplains the rule's purpose to Cursor and contributors.globslists the file patterns where the rule should auto-attach.alwaysApply: falsekeeps the rule scoped to matching or requested context.alwaysApply: truemakes the rule apply to every request; use it only for universal guidance.
-
Update the main README.md file, adding your contribution to the appropriate category.
-
Ensure your contribution follows the repository formatting and naming guidelines.
-
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.
