39+ ready-to-use
.cursorrulesfiles for Cursor IDE β supercharge your AI coding assistant with framework-specific rules.
Cursor is an AI-powered code editor. .cursorrules files tell Cursor's AI about your project's conventions, tech stack, and coding patterns β making AI-generated code match your style perfectly.
Drop a .cursorrules file in your project root, and Cursor automatically uses it to generate better, more consistent code.
| Framework | Description | Link |
|---|---|---|
| React | Component patterns, hooks best practices, TypeScript integration | rules/react |
| Next.js | App Router, Server Components, Server Actions, metadata | rules/nextjs |
| SvelteKit | File-based routing, load functions, form actions, stores | rules/sveltekit |
| Tailwind CSS | Utility-first patterns, responsive design, component recipes | rules/tailwindcss |
| Framework | Description | Link |
|---|---|---|
| Node.js/Express | REST API patterns, middleware, layered architecture | rules/nodejs-express |
| Python/FastAPI | Async patterns, Pydantic v2, dependency injection | rules/python-fastapi |
| Python/Django | DRF, ORM best practices, class-based views | rules/python-django |
| Go/Gin | Idiomatic Go, error handling, concurrency patterns | rules/go-gin |
| Rust/Axum | Ownership patterns, async with Tokio, tower middleware | rules/rust-axum |
| Stack | Description | Link |
|---|---|---|
| Supabase | Auth, RLS, Edge Functions, real-time, storage | rules/supabase |
| AWS Serverless | Lambda, DynamoDB, SAM, API Gateway | rules/aws-serverless |
| Docker/DevOps | Multi-stage builds, CI/CD, infrastructure as code | rules/docker-devops |
| Language | Description | Link |
|---|---|---|
| TypeScript | Strict mode, utility types, generics, type narrowing | rules/typescript |
| Topic | Description | Link |
|---|---|---|
| Flutter/Dart | Widget architecture, Riverpod, Material Design 3 | rules/flutter-dart |
| LangChain/AI | LCEL, RAG, agents, LangGraph, structured output | rules/langchain-ai |
| Chrome Extensions | Manifest V3, service workers, content scripts | rules/chrome-extension |
- Browse the
rules/directory and find the rule for your tech stack - Copy the
.cursorrulesfile to your project root directory - Open your project in Cursor IDE
- Cursor automatically detects and uses the rules file
# Example: Add React rules to your project
curl -o .cursorrules https://raw.githubusercontent.com/survivorforge/cursor-rules/main/rules/react/.cursorrulesWant a custom .cursorrules file tailored to your exact stack? Try our free interactive generator:
Cursor Rules Generator β build a custom rules file in seconds.
Want ALL 39+ rules in one download, plus a comprehensive Prompt Engineering Guide for getting the most out of AI coding assistants?
Cursor Rules Mega Pack on Gumroad β professionally crafted, regularly updated, and ready to drop into any project.
Includes bonus rules not in this repo:
- T3 Stack (Next.js + tRPC + Prisma + Tailwind)
- MERN Stack
- Testing/TDD patterns
- Security best practices
- Clean code principles
- Performance optimization
- And more...
Each rules file includes:
- Code style conventions (naming, formatting, imports)
- Architecture patterns specific to the framework
- Error handling best practices
- Testing strategies and tools
- Security guidelines
- Performance optimization tips
- File structure recommendations
- Common pitfalls to avoid
These aren't generic templates. Each file is written by developers who know the framework deeply, covering the patterns that actually matter in production codebases.
- The Mega Prompt Pack β 100+ AI prompts for business, content, and coding
- AI Content Creator Toolkit β Templates and prompts for content creators
- Freelancer Finance Tracker β Excel workbook for freelance finances
Visit Survivor Forge on Gumroad for all products.
Found a useful .cursorrules pattern? PRs welcome! See CONTRIBUTING.md for guidelines.
MIT License β use these rules in any project, personal or commercial.
Built by Survivor Forge β AI-powered tools for solopreneurs and developers.