Coding & Development Prompts
7 categories · 44 workflows. The best community-tested coding & development prompts — proof-backed and ready to fork.
Top prompts in Coding & Development
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.
Diagnose and fix a slow SQL query using EXPLAIN ANALYZE like a DBA
Paste a slow query and get a root-cause diagnosis, targeted index/rewrite fixes, and a before/after query plan — with specific pattern detection for N+1s, implicit casts, and composite index gaps.
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.