Teach your editor how your stack writes code

Community-maintained Cursor rules for every framework. Find one, copy it into .cursorrules, and ship with an AI that follows your conventions.

Rules

Showing 9 loaded rules

  • Expo + React Native

    19 lines

    Cross-platform mobile development with Expo Router, typed navigation, and performant lists.

    • React Native
    • Expo
    • Mobile
    .cursorrules
    You are an expert in TypeScript, React Native, Expo, and mobile UI development. Project- Use Expo Router for file-based navigation.- Use Expo SDK modules before reaching for bare native libraries.- Keep platform-specific code in .ios.tsx / .android.tsx files. UI- Use SafeAreaView and useSafeAreaInsets for notches and home bars.

    + 10 more lines — copy to get the full ruleset

  • Go Backend Services

    20 lines

    Idiomatic Go for production HTTP services: small interfaces, explicit errors, and context everywhere.

    • Go
    • API
    • Backend
    .cursorrules
    You are an expert Go engineer building production backend services. Structure- Organize by domain, not by layer (internal/billing, internal/users).- Keep main.go thin: parse config, wire dependencies, start server.- Define interfaces where they are consumed, and keep them small. Errors- Return errors; never panic in request paths.

    + 11 more lines — copy to get the full ruleset

  • Laravel

    20 lines

    Modern Laravel conventions with Eloquent, form requests, queues, and Pest testing.

    • PHP
    • Laravel
    • Backend
    .cursorrules
    You are an expert in Laravel, PHP 8.3, and modern web application architecture. Conventions- Follow PSR-12 and Laravel naming conventions.- Use strict types: declare(strict_types=1) in every file.- Prefer constructor property promotion and readonly properties. HTTP- Validate input with Form Request classes, never in controllers.

    + 11 more lines — copy to get the full ruleset

  • Next.js App Router

    21 lines

    Server-first conventions for Next.js App Router projects with React Server Components, Server Actions, and strict TypeScript.

    • Next.js
    • React
    • TypeScript
    .cursorrules
    You are an expert in TypeScript, Next.js App Router, React, and Tailwind CSS. Code Style- Write concise, technical TypeScript with accurate types.- Prefer functional, declarative patterns; avoid classes.- Use descriptive names with auxiliary verbs (isLoading, hasError). React Server Components- Default to Server Components; add 'use client' only for interactivity.

    + 12 more lines — copy to get the full ruleset

  • Python FastAPI

    21 lines

    Guidelines for scalable FastAPI services using Pydantic v2, async I/O, and dependency injection.

    • Python
    • FastAPI
    • API
    .cursorrules
    You are an expert in Python, FastAPI, and scalable API development. Key Principles- Write concise, technical responses with accurate Python examples.- Use functional, declarative programming; avoid classes where possible.- Use lowercase with underscores for files and directories (routers/user_routes.py). FastAPI- Use `def` for pure functions and `async def` for I/O-bound operations.

    + 12 more lines — copy to get the full ruleset

  • Rust

    20 lines

    Safe, ergonomic Rust with clear ownership, typed errors, and async Tokio services.

    • Rust
    • Systems
    .cursorrules
    You are an expert in Rust, async programming with Tokio, and systems design. Ownership- Prefer borrowing over cloning; clone deliberately and visibly.- Use &str and &[T] in function parameters for flexibility.- Reach for Arc<Mutex<T>> only when shared mutation is unavoidable. Errors- Use thiserror for library error types and anyhow in binaries.

    + 11 more lines — copy to get the full ruleset

  • SvelteKit

    19 lines

    Svelte 5 runes, load functions, and form actions for fast, progressively enhanced SvelteKit apps.

    • Svelte
    • SvelteKit
    • TypeScript
    .cursorrules
    You are an expert in Svelte 5, SvelteKit, and TypeScript. Reactivity- Use runes: $state for local state, $derived for computed values.- Use $effect sparingly, only for syncing with external systems.- Declare component inputs with $props() and type them. Routing & Data- Load data in +page.server.ts for secrets and database access.

    + 10 more lines — copy to get the full ruleset

  • Tailwind CSS v4

    20 lines

    Design-token driven styling with Tailwind v4, CSS-first configuration, and accessible component patterns.

    • Tailwind
    • CSS
    • Design
    .cursorrules
    You are an expert in Tailwind CSS v4 and modern CSS architecture. Configuration- Configure the theme in CSS using @theme; there is no tailwind.config.js.- Define colors as semantic tokens (--color-background, --color-primary).- Never hardcode hex values in class names; use theme tokens. Layout- Use flexbox first, grid for true two-dimensional layouts.

    + 11 more lines — copy to get the full ruleset

  • TypeScript Strict

    19 lines

    A no-compromise ruleset for type-safe TypeScript codebases: explicit boundaries, narrow types, and zero any.

    • TypeScript
    .cursorrules
    You are a senior TypeScript engineer who values correctness over cleverness. Types- Never use `any`. Prefer `unknown` and narrow with type guards.- Prefer `type` aliases for unions and `interface` for object contracts.- Use discriminated unions to model state instead of optional flags.- Mark data as `readonly` unless mutation is required. Functions

    + 10 more lines — copy to get the full ruleset