Production-tested
.cursorrulesfiles for Cursor IDE. Drop into your project for better AI code generation.
Free sampler from the BLN Craft CLAUDE.md + Cursor Rules Production Pack — 54 stacks, 162 files.
Rules files for the 10 most-used dev stacks, hand-tuned for Cursor 3.3+:
| Stack | Format | Works with |
|---|---|---|
| React | .cursor/rules/react.mdc + .cursorrules |
Cursor 3.x, Cursor 2.x |
| Next.js (App Router) | .cursor/rules/nextjs.mdc + .cursorrules |
Cursor 3.x, Cursor 2.x |
| TypeScript | .cursor/rules/typescript.mdc + .cursorrules |
Cursor 3.x, Cursor 2.x |
| Python 3.11+ | .cursor/rules/python.mdc + .cursorrules |
Cursor 3.x, Cursor 2.x |
| FastAPI | .cursor/rules/fastapi.mdc + .cursorrules |
Cursor 3.x, Cursor 2.x |
| Node.js / Express | .cursor/rules/nodejs.mdc + .cursorrules |
Cursor 3.x, Cursor 2.x |
| Go | .cursor/rules/go.mdc + .cursorrules |
Cursor 3.x, Cursor 2.x |
| Rust | .cursor/rules/rust.mdc + .cursorrules |
Cursor 3.x, Cursor 2.x |
| Docker | .cursor/rules/docker.mdc + .cursorrules |
Cursor 3.x, Cursor 2.x |
| PostgreSQL | .cursor/rules/postgresql.mdc + .cursorrules |
Cursor 3.x, Cursor 2.x |
Copy individual rule files into your project:
# Example: add React rules to your project
cp .cursor/rules/react.mdc /your-project/.cursor/rules/react.mdcEach .mdc file uses globs to auto-attach to relevant files — Cursor activates the right rules automatically based on what you're editing.
Copy the relevant section from .cursorrules into your project's .cursorrules file at the project root.
Most .cursorrules files online are generic ("write clean code", "follow best practices"). These rules encode specific production conventions:
- React: Feature-based folder structure, TanStack Query patterns,
cn()Tailwind approach, noReact.FC - Next.js: App Router conventions, Server vs Client Component boundaries, Server Action patterns
- TypeScript:
noUncheckedIndexedAccess, discriminated unions,satisfiesoperator usage - FastAPI: Pydantic v2 patterns,
AsyncSession, proper dependency injection chains - Go: Error wrapping with
%w, interface-at-call-site rule, context-first concurrency - Rust:
thiserrorvsanyhow, ownership borrow-before-clone,spawn_blockingfor CPU work - Docker: Multi-stage builds, pinned versions, non-root user pattern
- PostgreSQL:
TIMESTAMPTZ,CREATE INDEX CONCURRENTLY, parameterized queries always
These rules were written from daily production use — they encode what we actually enforce in code review, not what sounds good in a blog post.
The full pack covers:
Frontend: React, Next.js, Vue 3, Svelte 5, SvelteKit, Astro, Remix, Nuxt 3, Angular 17, SolidJS
Backend: FastAPI, Django, Flask, Express, Fastify, Go (stdlib/Gin/Fiber), Rust (Axum/Actix), NestJS, Rails, Laravel, Hono, Spring Boot
Infrastructure: Docker, Docker Compose, Kubernetes, Terraform, GitHub Actions
Databases: PostgreSQL, MySQL, MongoDB, Redis, Prisma, SQLAlchemy 2.0, Drizzle
Languages: TypeScript, Python, Rust, Go, Java 21, C# .NET 8
Testing: Jest, Vitest, Pytest, Playwright, Cypress
AI/ML: Claude API, OpenAI API, LangChain, Hugging Face
Mobile: React Native, Flutter
→ Get the full pack on Gumroad — €29 one-time
Each stack includes: .cursorrules + CLAUDE.md (for Claude Code) + README.md explaining every rule.
- Cursor 3.3+ — use
.cursor/rules/*.mdcfiles (auto-attach via globs) - Cursor 2.x — use
.cursorrulesat project root - Claude Code — use the
CLAUDE.mdfiles from the full pack - Works with Cursor Composer, Chat, and Tab completion
Free for personal and commercial use. Attribution appreciated but not required.
Built by BLN Craft — cursor rules, CLAUDE.md files, and AI dev tooling.