The ultimate collection of
.cursorrulesfiles for AI-powered development.
Stop writing mediocre prompts. These battle-tested rules make Cursor (and other AI coding assistants) dramatically better at generating code in your stack.
| Rule Set | Description | Best For |
|---|---|---|
nextjs-app-router.md |
Next.js 15 + App Router + Server Components | Full-stack React apps |
react-typescript.md |
React 19 + TypeScript strict mode | Frontend SPAs |
python-fastapi.md |
FastAPI + Pydantic v2 + async patterns | Python APIs |
tailwind-ui.md |
Tailwind CSS 4 + Radix UI + shadcn/ui | Component design |
rust-systems.md |
Rust idioms, error handling, lifetimes | Systems programming |
node-api.md |
Node.js + Express/Hono + Drizzle ORM | Backend APIs |
svelte-kit.md |
SvelteKit 2 + TypeScript + form actions | Svelte apps |
go-service.md |
Go 1.22+ idioms, stdlib HTTP, sqlc | Go microservices |
# Copy a rules file to your project
cp rules/nextjs-app-router.md .cursorrules
# Or use our CLI (coming soon)
npx cursor-rules init --stack nextjs
The free rules above are great. The premium pack includes:
fullstack-saas.md - Complete SaaS stack (auth, billing, DB, email, queues)ai-agent.md - Build AI agents with tool-use, RAG, streamingchrome-extension-mv3.md - Manifest V3 extensions with React/Sveltemonorepo-turbo.md - Turborepo + shared packages + CI/CDtesting-e2e.md - Playwright + Vitest + MSW comprehensive testingš Get Premium Rules on Gumroad ā
.md file for your stack into your project root as .cursorrulesFound a rule that works great? PRs welcome! See CONTRIBUTING.md.
Free rules: MIT. Premium rules: Personal license per purchase.
Made with š„ by kszongic ⢠ā Star this repo