25 production-ready rule files

Stop explaining your stack
to Cursor every session

Drop these .cursor/rules/ files into any project. TypeScript strict, App Router, Stripe idempotency — Cursor knows it automatically.

Get the full pack — $19 3 free rules on GitHub

Lifetime access · Instant download · Works with Cursor, Claude Code, Copilot

You have written this 100 times

You: fix the auth bug
Cursor: Here it is using getServerSideProps and next/router...
You: we are on App Router, use next/navigation
Cursor: Got it!
# Next session. Same explanation. Again.

Cursor reads .cursor/rules/ at the start of every chat. Write rules once. Done forever.

Sample rules from the pack

Each file covers one topic. Drop in .cursor/rules/ and Cursor picks it up automatically.

.cursor/rules/nextjs.md
## Next.js 14 App Router Rules
- Server Components by default. Only add "use client" for interactivity.
- Use next/navigation (not next/router): useRouter, redirect(), notFound().
- TypeScript strict mode. No any. Use unknown and narrow.
.cursor/rules/stripe.md
## Stripe Webhooks Rules
- Read raw body with req.text() before signature verification.
- Handle webhooks idempotently — they can fire multiple times.
- Never trust amount from client — verify via webhook only.

25 files. The stacks you actually use.

Next.js 14 App Router

TypeScript strict, RSC, next/navigation

React 18 + TanStack Query

Zustand, data fetching, patterns

Python FastAPI

Pydantic v2, async, error handling

Go 1.22

Idiomatic Go, error wrapping, interfaces

Stripe Webhooks

Signature verification, idempotency

Auth.js v5

Sessions, protected routes, providers

Prisma + PostgreSQL

Query patterns, N+1 prevention

Redis Caching

Cache-aside, TTL, invalidation

Tailwind + shadcn/ui

Mobile-first, cn() utility, patterns

Claude + OpenAI APIs

Streaming, tool use, prompt patterns

Docker Multi-stage

Build optimization, layer caching

OWASP Security

Top 10, auth patterns, headers

Vitest + RTL

Unit tests, component tests, mocking

Zod Validation

Schemas, safeParse, env validation

Vercel + Git workflow

Deploy checklist, conventional commits

REST API design + more

Conventions, versioning, error formats

Cursor Rules & AI Coding Config Pack

$19

One-time · Instant download · Lifetime updates

Buy now — $19

Try 3 rules free

Next.js, Stripe, and Zod validation rules available free on GitHub.

Get 3 free rules on GitHub