This template includes a comprehensive set of Cursor rules to enhance your development experience with AI assistance.
Cursor Rules are specialized knowledge files that guide Cursor's AI assistant in understanding your codebase and generating code that follows your project's conventions and best practices.
These rules help the AI provide more contextually appropriate suggestions, maintain consistency across your codebase, and implement patterns that align with modern development standards.
Best practices for Next.js with the App Router architecture
UI Component Guidelines for consistent and accessible interfaces
File Storage & S3 compatible API implementation patterns
Database Schema & Migration patterns with Drizzle ORM
Container Configuration for local development and production
TypeScript Patterns & Configuration best practices
Stripe Integration patterns for payments and subscriptions
Each Cursor rule file (.mdc) contains guidelines and code examples that help the AI understand how to work with specific technologies or patterns in your project.
# Example Cursor Rule Structure
You are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind.
Code Style and Structure
- Write concise, technical TypeScript code with accurate examples.
- Use functional and declarative programming patterns; avoid classes.
- Prefer iteration and modularization over code duplication.
- Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError).
- Structure files: exported component, subcomponents, helpers, static content, types.
Naming Conventions
- Use lowercase with dashes for directories (e.g., components/auth-wizard).
- Favor named exports for components.
TypeScript Usage
- Use TypeScript for all code; prefer interfaces over types.
- Avoid enums; use maps instead.
- Use functional components with TypeScript interfaces.
To use Cursor rules in your development workflow:
Cmd+K
or Ctrl+K
to open the AI command paletteYou can create your own custom rules to help Cursor AI better understand your project structure and coding standards:
.mdc
file in the .cursor/rules/
directory