Cursor Prompts
Community-tested prompts and workflows that perform best on Cursor. Copy them instantly, save your favorites, and fork them into your own workflow.
Top prompts for Cursor
Next.js 15 App Router page with streaming, caching, and server data
Scaffold a production App Router page: Server Component data fetching, Suspense streaming for instant TTFB, correct cache strategy (fetch cache vs unstable_cache vs revalidatePath), loading/error boundaries, and generateMetadata — with the non-obvious patterns most tutorials skip.
Tailwind analytics dashboard with animated stat cards, dark mode, and skeleton loading
Production-grade dashboard layout: KPI cards with counting animations and trend sparklines, a chart area, activity table — all with dark mode, skeleton loading states, and responsive breakpoints defined to the pixel.
Supabase RLS: owner-write, public-read policies for a table
Generate correct, non-recursive RLS policies so anyone reads published rows and only owners edit their own.
Stripe webhook handler with signature verify + idempotency
Production-ready Stripe webhook route that verifies the signature and processes events exactly once.
.cursorrules for a strict TypeScript + React codebase
A tuned .cursorrules file that keeps Cursor's agent on-convention: strict types, no dead code, match existing patterns.
Refactor a React component into clean custom hooks
Extract stateful logic from a bloated component into typed, testable custom hooks.
Secure JWT auth with refresh rotation, threat modeling, and the mistakes that get you hacked
Design a production JWT auth flow with access/refresh rotation, token family revocation, and a concrete threat model — including the 6 common JWT mistakes that lead to breaches and how to avoid each one.
Production Prisma schema from a feature spec
Turn a feature description into a normalized Prisma schema with relations, indexes, and migration-safe defaults.
High-converting landing page build with scroll animations and CWV targets
A conversion-optimized build spec that nails the persuasion sequence, scroll-triggered animations, mobile-first breakpoints, and Core Web Vitals — not just 'build me a landing page.'
Build a DoorDash-style food delivery app
A staged build spec for a 3-role food-delivery MVP (customer / restaurant / driver) on Next.js + Supabase + Stripe.
Build an Uber-style ride-share app with realtime tracking and surge pricing
A ride-share MVP spec with Supabase realtime location streaming, a surge-aware fare calculator, driver matching logic, and a clear Phase 2 roadmap — not just 'build an Uber clone.'
Build a TikTok-style short-video app
A short-video social MVP: vertical snap-scroll feed, uploads, likes/comments/follows, and a basic For-You ranking.
Build a production-grade SaaS MVP with Stripe lifecycle, team management, and tenant isolation
Goes beyond 'build a SaaS' — specifies the patterns that actually make or break an MVP: tenant-isolated data, Stripe webhook flows, invite-based teams, usage metering, and an onboarding funnel.
Design + build a game: from design doc to playable prototype in one conversation
Starts with a structured game design document (core loop, Bartle motivation type, the one mechanic that makes it unique), then prototypes the core loop first with playtest checkpoints — not just 'make me a game.'
2D platformer with tuned physics, juice, and progressive level design
Goes beyond 'make a platformer' — specifies the exact physics values that make jumps feel great (coyote time, input buffering, variable gravity), the juice layer (screen shake, squash-stretch, particles), and the level design methodology that teaches mechanics through play.
Codex API scaffolder — REST endpoint from a plain-English spec
Describe your endpoint in plain English and Codex builds the full implementation: route handler, request validation, error responses, and a usage example — no boilerplate writing required.
Codex code explainer and refactor — read, diagnose, rewrite clean
Paste any function and Codex returns a plain-English explanation, a list of specific problems, and a refactored version with notes on every change — so you understand what changed and why.
Codex test suite generator — unit and edge-case tests from your code
Point Codex at any function and it writes the full test suite: happy path, edge cases, error conditions, and the mocks — covering what you'd write manually but in a fraction of the time.
Codex bug hunter — root cause, not just a patch
Paste the buggy code and the error, and Codex diagnoses the root cause, explains why the obvious fix won't work, and gives you the correct fix with a regression test so the bug can never come back silently.
Build a production-ready React Native component from a rough spec
Turns a vague component idea into a typed, accessible Expo + React Native component with a documented prop API, themeable styles, full state handling, and a usage example.
Generate a clean Unity C# character controller with the right architecture
Produces a maintainable Unity C# controller using proper component separation, the chosen input system, and inspector-tunable values — not a messy god-class in Update().
Scaffold a clean PyTorch training loop with eval and early stopping
Gives you a reproducible, well-structured PyTorch training script — config, model, dataloaders, train/eval loop, metrics, checkpointing, and early stopping — tuned to your task.
Build an accessible React Native form component with inline validation
Produces a typed, reusable React Native form with controlled inputs, inline validation, accessible error messaging, and submit/disabled states instead of wiring each field by hand.
Build an offline-first React Native data-fetching hook and list component
Produces a typed useOfflineQuery hook with cache-first reads, optimistic revalidation, and retry-on-reconnect, plus a FlatList that renders loading, empty, error, stale, and offline states honestly.
Workflows that use Cursor
Coding & Development
Data Science & AI Models
Game Development
Automation & Agents
Finance & Legal
Are you on the Cursor team?
Claim this platform page to add official prompts, documentation links, and verified examples. Vendor claims open after launch.