Skip to content
Conduit

skill

cursor-rules-collection

46 Production-Ready Cursor Rules for Every Tech Stack - Copy & Paste .cursorrules and .mdc Files

hoangatg/cursor-rules-collectioncommunitylistedunreviewed

Set up

Skills are installed by placing their folder where your agent loads skills.

The download comes from github.com/hoangatg/cursor-rules-collection itself, not from our server, so what you get is exactly what its author published.

Install instructions come from the README

Skills do not use an MCP config. Follow the steps in the README below.

README

synced Oct 23, 2026

📏 Cursor Rules Collection

Production-Ready Rules for Every Tech Stack

44+ Rules · 6 Categories · Copy & Paste Ready

The most comprehensive, community-driven collection of .cursorrules and .mdc files for Cursor IDE — the AI-first code editor.


Stars Forks Issues Last Commit

Quick Start · Browse Rules · Contributing · FAQ


⚡ Why This Collection?

Most AI coding assistants give generic responses. With the right .cursorrules, Cursor becomes a domain expert that understands your stack's conventions, best practices, and patterns.

Without RulesWith Rules
Generic code suggestionsStack-specific patterns
Ignores project conventionsFollows your architecture
Basic error handlingProduction-ready resilience
Default stylingDesign system aware

💡 Think of rules as "system prompts" for your coding assistant — they tell Cursor exactly how to write code for YOUR project.


🚀 Quick Start

Method 1: Copy a Single Rule (Fastest)

  1. Browse the rules directory below
  2. Click on the rule you need
  3. Copy the contents into your project's .cursorrules file or .cursor/rules/ directory

Method 2: Clone the Collection

# Clone the full collection
git clone https://github.com/hoangatg/cursor-rules-collection.git

# Copy specific rules to your project
cp cursor-rules-collection/rules/frontend/react.mdc your-project/.cursor/rules/

Method 3: Cherry-Pick with npx (Coming Soon)

# Interactive picker — select the rules you need
npx cursor-rules-collection init

Where to Place Rules

your-project/
├── .cursorrules          ← Single rule file (simple)
└── .cursor/
    └── rules/            ← Multiple rule files (recommended)
        ├── react.mdc
        ├── typescript.mdc
        └── tailwindcss.mdc

📝 Tip: Use .cursor/rules/ directory for multiple rules. Cursor loads all .mdc files automatically.


📚 Browse Rules

🎨 Frontend (12 rules)

RuleTechDescription
react.mdcReact 19Hooks, Server Components, performance patterns
nextjs.mdcNext.js 15App Router, Server Actions, streaming, caching
vue.mdcVue 3Composition API, composables, Pinia
angular.mdcAngular 18Signals, standalone components, modern control flow
svelte.mdcSvelte 5Runes, reactivity, SvelteKit
astro.mdcAstro 4Islands, content collections, hybrid rendering
typescript.mdcTypeScript 5Advanced types, generics, strict mode
javascript.mdcJavaScript ES2024Modern syntax, async patterns, modules
tailwindcss.mdcTailwind CSS v4Utility classes, design tokens, custom plugins
css-modules.mdcCSS ModulesScoped styles, naming conventions, theming
htmx.mdcHTMXHypermedia, progressive enhancement
shadcn-ui.mdcshadcn/uiAccessible components, Radix primitives

⚙️ Backend (10 rules)

RuleTechDescription
nodejs.mdcNode.js 22Async patterns, error handling, streams
express.mdcExpress.jsMiddleware, routing, error handling
fastapi.mdcFastAPIAsync, Pydantic v2, dependency injection
django.mdcDjango 5ORM, views, REST framework, security
golang.mdcGo 1.22Concurrency, error handling, project structure
rust.mdcRust 1.75Ownership, async, axum, error handling
java-spring.mdcSpring Boot 3JPA, Security, reactive, microservices
php-laravel.mdcLaravel 11Eloquent, Blade, Livewire, API Resources
graphql.mdcGraphQLSchema design, resolvers, federation
trpc.mdctRPC v11Type-safe APIs, React Query integration

📱 Mobile (2 rules)

RuleTechDescription
react-native.mdcReact NativeNavigation, native modules, Expo
flutter.mdcFlutter 3Widgets, state management, platform channels

🗄️ Data & Infrastructure (8 rules)

RuleTechDescription
prisma.mdcPrisma ORMSchema, migrations, relations, transactions
drizzle.mdcDrizzle ORMType-safe SQL, schema, relational queries
supabase.mdcSupabaseAuth, Realtime, Edge Functions, RLS
mongodb.mdcMongoDBAggregation, indexes, Mongoose patterns
docker.mdcDockerMulti-stage builds, Compose, security
kubernetes.mdcKubernetesDeployments, services, Helm charts
terraform.mdcTerraformModules, state, multi-environment
aws.mdcAWSLambda, S3, DynamoDB, CDK patterns

🤖 AI & Specialized (8 rules)

RuleTechDescription
ai-coding.mdcAI CodingMeta-rules for AI-assisted development
langchain.mdcLangChainChains, agents, RAG, memory
openai-sdk.mdcOpenAI SDKChat, streaming, function calling, vision
testing-jest.mdcJestUnit tests, mocking, snapshots, coverage
testing-playwright.mdcPlaywrightE2E testing, page objects, assertions
security.mdcSecurityOWASP Top 10, input validation, auth
performance.mdcPerformanceCore Web Vitals, profiling, optimization
accessibility.mdcAccessibilityWCAG 2.2, ARIA, keyboard navigation

🏗️ Full-Stack Templates (6 rules)

RuleTechDescription
t3-stack.mdcT3 StackNext.js + tRPC + Prisma + Tailwind + Auth
mern-stack.mdcMERNMongoDB + Express + React + Node.js
nextjs-fullstack.mdcNext.js FullApp Router + Server Actions + DB
saas-starter.mdcSaaSAuth, billing, dashboard, multitenancy
landing-page.mdcLanding PageHero, features, pricing, CTA, SEO
chrome-extension.mdcChrome ExtManifest V3, content scripts, popup

🧩 Stack Combinations

Combine multiple rules for your specific stack:

# Next.js Full-Stack
cp rules/frontend/react.mdc rules/frontend/nextjs.mdc rules/frontend/typescript.mdc rules/frontend/tailwindcss.mdc .cursor/rules/

# Python API
cp rules/backend/fastapi.mdc rules/ai-specialized/security.mdc rules/data-infra/docker.mdc .cursor/rules/

# Mobile App
cp rules/mobile/react-native.mdc rules/frontend/typescript.mdc rules/ai-specialized/testing-jest.mdc .cursor/rules/

Popular Combos

StackRules to Combine
Next.js + Supabasenextjs + typescript + tailwindcss + supabase
T3 Stackt3-stack + typescript + prisma + trpc
Python ML APIfastapi + langchain + docker
Vue Enterprisevue + typescript + testing-playwright + security
Mobilereact-native + typescript + testing-jest

📖 Rule Format

Each rule follows a consistent .mdc format:

---
description: When to apply this rule
globs: **/*.tsx, **/*.ts
alwaysApply: false
---

# [Technology] Rules

## Architecture
- [Key architectural decisions]

## Code Style
- [Naming, formatting, patterns]

## Best Practices
- [DO this, DON'T do that]

## Common Patterns
- [Code examples and templates]

Fields Explained

FieldDescription
descriptionWhen Cursor should activate this rule
globsFile patterns this rule applies to
alwaysApplyIf true, always active (use sparingly)

🤝 Contributing

We welcome contributions! See CONTRIBUTING.md for details.

Quick Contribution Guide

  1. Fork this repository
  2. Create a new .mdc file in the appropriate category folder
  3. Follow the rule format above
  4. Submit a Pull Request

What Makes a Great Rule?

  • ✅ Specific to a technology/framework
  • ✅ Includes real-world best practices
  • ✅ Has clear DO/DON'T examples
  • ✅ Uses the latest stable version
  • ❌ Too generic ("write clean code")
  • ❌ Contradicts official documentation

❓ FAQ

.cursorrules is the legacy single-file format. .mdc (Markdown Cursor) is the newer format used in .cursor/rules/ directory, allowing multiple rules per project.

These rules are optimized for Cursor but the principles apply to any AI coding assistant. The .mdc format is Cursor-specific, but the content can be adapted for Claude, Copilot, etc.

Yes! Place multiple .mdc files in .cursor/rules/ and Cursor will load all of them. Use the globs field to scope rules to specific file types.

Copy the rule to your project and modify it. These are starting points — tailor them to your team's conventions.

Yes! We regularly update rules to match the latest framework versions and best practices. Check the commit history for updates.


🌟 Related Projects

ProjectDescription
AI Agent Toolkit43 Agents · 95 Skills · 37 Workflows for AI coding assistants

☕ Support This Project

If these rules save you time, consider supporting the collection!

Ko-fi


⭐ Star this repo if it helps your workflow!

Every star helps developers discover better AI coding rules.


Built with ❤️ for the Cursor community

Report Bug · Request Rule · Discussions

↑↓ navigate openesc close