Template for creating .cursor/rules/*.mdc files with proper frontmatter, glob patterns, and rule type configuration.
--- description: Template for Cursor .mdc rules globs: ["**/*.ts", "**/*.tsx"] alwaysApply: false --- # Rule Name Rule types: - Always: Applied to every AI interaction - Auto Attached: Applied when matching files are referenced (use globs) - Agent Requested: AI reads description and decides when to apply - Manual: Only applied when explicitly referenced with @rules Best practices: - Keep rules focused and specific - Use glob patterns to target relevant files - Include examples of desired output - Reference project conventions and patterns
Comprehensive .cursorrules file for Next.js 15 App Router projects with TypeScript, enforcing server components by default, proper use of "use client" directive, and App Router conventions.
Cursor rules for Python FastAPI projects enforcing async patterns, Pydantic v2 models, dependency injection, and proper error handling.
Rules for consistent React component development with TypeScript interfaces, proper hook patterns, and component composition.
Rules optimizing Cursor Agent mode behavior including multi-file editing context, session management, and autonomous task completion patterns.
Cursor rules for projects using Tailwind CSS with shadcn/ui component library, enforcing consistent utility class usage and component patterns.
Rules for Go backend services enforcing idiomatic Go patterns, proper error handling, and clean architecture conventions.