Coding & Development⌨️cursor🌐universal

Awesome Cursor Rules πŸš€

A curated list of awesome .cursorrules files for enhancing your Cursor AI experience.

Quick Start

Install this Skill

npx skills add tugkanboz/awesome-cursorrules
# Awesome Cursor Rules πŸš€

**A curated showcase of modern Cursor Rules configurations for development teams**

> 🎯 **Evolution Notice**: This repository demonstrates the transition from legacy `.cursorrules` files to the powerful new **Cursor Rules** system with MDC format, rule types, and advanced organizational features.

## 🌟 What Changed: From `.cursorrules` to Cursor Rules

Cursor has revolutionized AI-assisted development by moving beyond the limitations of single-file `.cursorrules`:

| Legacy `.cursorrules` | New Cursor Rules |
|----------------------|------------------|
| ❌ Single file approach | βœ… Organized rule directories |
| ❌ Plain text only | βœ… MDC format with metadata |
| ❌ Always active | βœ… Smart rule types (Always, Auto, Manual, Agent) |
| ❌ No file organization | βœ… Nested rules for complex projects |
| ❌ Limited context | βœ… File references and templates |
| ❌ Hard to maintain | βœ… Modular and scalable |

## πŸŽͺ Repository Overview

This repository serves as a **living showcase** of modern Cursor Rules implementations across various development scenarios:

```
awesome-cursor-rules/
β”œβ”€β”€ πŸ—οΈ frameworks/              # Framework-specific configurations
β”‚   β”œβ”€β”€ selenium-python/        # Python test automation patterns
β”‚   β”œβ”€β”€ cypress/                # JavaScript E2E testing rules
β”‚   β”œβ”€β”€ playwright/             # Cross-browser testing setup
β”‚   β”œβ”€β”€ react/                  # React development standards
β”‚   └── nodejs-api/             # Backend API development rules
β”œβ”€β”€ πŸ“‹ templates/                # Quick-start project templates
β”‚   β”œβ”€β”€ web-automation/         # Complete automation project setup
β”‚   β”œβ”€β”€ api-testing/            # API testing framework template
β”‚   └── mobile-testing/         # Mobile app testing configuration
β”œβ”€β”€ 🎯 examples/                 # Real-world implementations
β”‚   β”œβ”€β”€ monorepo-setup/         # Enterprise-scale organization
β”‚   β”œβ”€β”€ team-standards/         # Company-wide coding standards
β”‚   └── cicd-integration/       # CI/CD pipeline integration
└── πŸ“š legacy-migration/         # Migration guides from .cursorrules
```

## πŸ”„ The Great Migration: Before & After

### Legacy `.cursorrules` Approach
```bash
# Old way - Everything in one file
project/
β”œβ”€β”€ .cursorrules    # 200+ lines of mixed rules
β”œβ”€β”€ src/
└── tests/
```

**Problems with legacy approach:**
- ❌ Difficult to maintain as projects grow
- ❌ No context awareness for different file types  
- ❌ All rules active all the time
- ❌ Hard to share and collaborate on rules
- ❌ No template or example integration

### Modern Cursor Rules System
```bash
# New way - Organized, contextual, powerful
project/
β”œβ”€β”€ .cursor/rules/
β”‚   β”œβ”€β”€ core-standards.mdc         # Always applied
β”‚   β”œβ”€β”€ testing-patterns.mdc       # Auto-attached to test files
β”‚   β”œβ”€β”€ framework-specific.mdc     # Context-aware activation
β”‚   β”œβ”€β”€ advanced-optimizations.mdc # Agent-requested when relevant
β”‚   └── templates/
β”‚       β”œβ”€β”€ component-template.tsx
β”‚       β”œβ”€β”€ test-template.spec.js
β”‚       └── api-endpoint.js
β”œβ”€β”€ src/
└── tests/
```

**Benefits of modern approach:**
- βœ… Context-aware rule activation
- βœ… Organized and maintainable structure
- βœ… Template integration and file references
- βœ… Team collaboration and version control friendly
- βœ… Scalable for enterprise projects

## 🎨 Understanding Rule Types

### πŸ”„ Always Rules
Core standards that apply to every AI interaction:
```markdown
---
description: Universal coding standards for all projects
alwaysApply: true
---

# Core Development Standards
- Use TypeScript for type safety across all projects
- Implement comprehensive error handling and logging
- Write self-documenting code with clear naming
- Follow established architectural patterns
```

### 🎯 Auto Attached Rules  
Automatically activated based on file patterns:
```markdown
---
description: React component development patterns
globs: ["**/*.tsx", "**/components/**/*.js", "**/hooks/**/*.ts"]
alwaysApply: false
---

# React Development Excellence
- Use functional components with React hooks
- Implement proper prop validation with TypeScript
- Follow component composition patterns
- Optimize performance with useMemo and useCallback

@react-component-template.tsx
@custom-hook-template.ts
```

### πŸ€– Agent Requested Rules
AI intelligently applies based on context:
```markdown
---
description: Advanced performance optimization techniques
globs: ["**/*.js", "**/*.ts", "**/*.tsx"]
alwaysApply: false
---

# Performance Optimization Strategies
- Implement code splitting and lazy loading
- Use efficient algorithms and data structures
- Optimize bundle size and loading times
- Monitor and profile application performance
```

### πŸ“ Manual Rules
Explicitly invoked with `@ruleName`:
```markdown
---
description: Complete test automation setup generator
alwaysApply: false
---

# Test Automation Project Generator
Creates a complete test automation project structure:

@selenium-project-structure
@cypress-configuration  
@playwright-setup
@github-actions-ci
```

##

... (truncated)
Repository
11stars
4forks
View on GitHub
Details
DiscoveredJan 19, 2026
Last UpdatedSep 22, 2025
Quality Score
28/100