Cursor Rules Stack Bundle

One download, every stack: the installer looks at each repo and installs only the rules it needs, from Next.js 16 to Rails 8, Django and Supabase.

Cursor Rules Stack Bundle cover
Download$12

Cursor Rules for Next.js

11 Cursor rules for Next.js (Server/Client Components and more), written against current docs. Installs in one command, exports AGENTS.md. $12 once.

View Cursor Rules for Next.js
Download$12

Cursor Rules for Django

10 Cursor rules for Django (models and N+1 and more), written against current docs. Installs in one command, exports AGENTS.md. $12 once.

View Cursor Rules for Django
Download$12

Cursor Rules for Rails

9 Cursor rules for Rails (Active Record and more), written against current docs. Installs in one command, exports AGENTS.md. $12 once.

View Cursor Rules for Rails
Download$12

Cursor Rules for Supabase

8 Cursor rules for Supabase (Row Level Security policies and more), written against current docs. Installs in one command, exports AGENTS.md. $12 once.

View Cursor Rules for Supabase
Download$12

Cursor Rules Pack

24 Cursor rules (.mdc) for Next.js, TypeScript, React, Python, FastAPI, Django, Go, Rust and more. Detects your stack, installs in one command, lints your rules. $12 once.

View Cursor Rules Pack

What it is

59 Cursor project rules (.mdc) for the Next.js, Django, Rails and Supabase packs plus 21 general rules (agent workflow, commits, tests, security, review, TypeScript, React, Tailwind, Node, Python, FastAPI, Go, Rust, Spring Boot, Flutter, SQL, Docker, GitHub Actions, Terraform), scoped so each loads only when relevant, with an installer that detects your stack, an AGENTS.md exporter (Claude Code, Codex) and a rules linter. Written against current docs (checked Nov 2026; Next.js 16; Django 5.2 LTS/6.0; Rails 8; Supabase publishable/secret keys, @supabase/ssr).

What you get

The screenshot is real output from the kit’s own commands. Tested from a fresh download of this exact zip: ./run_tests.sh ran 8 tests OK on Python 3.13 and 3.10.

Real terminal output from Cursor Rules Stack Bundle: demo and passing tests

Install in 30 seconds

python3 tools/install_rules.py --detect /path/to/app          # what it finds
python3 tools/install_rules.py /path/to/app --auto            # install rules for detected stacks into .cursor/rules/
python3 tools/install_rules.py /path/to/app --all --agents-md # everything, plus AGENTS.md
python3 tools/lint_rules.py /path/to/app/.cursor/rules --project /path/to/app

Existing files are never overwritten unless you pass --force; --dry-run previews. ./tools/demo.sh runs it on examples/sample-app; ./run_tests.sh runs the tests. As a Cursor plugin, the manifest is .cursor-plugin/plugin.json.

The rules

RuleLoadsFirst instruction
core-agent-workflow.mdcalwaysRead the files you are about to change, and the code that calls them, before editing
core-git-commits.mdcAgent picks itCommit subject: imperative mood, ≤ 72 characters, no trailing period: Fix rounding in invoice totals, not fixed...
core-testing.mdcAgent picks itUse the test framework and folder layout the repo already uses
core-security.mdcAgent picks itTreat all input as untrusted: request bodies, query strings, headers, file names, webhook payloads, LLM output
core-code-review.mdc@-mention
core-docs.mdcAgent picks itWhen behavior, configuration, env vars, commands or public APIs change, update the README/docs in the same change
core-error-handling.mdcAgent picks itNever swallow errors: no empty catch {} / except: pass
typescript.mdcby file (/*.ts, /*.tsx)Keep strict on
react.mdcby file (/*.tsx, /*.jsx)Function components and hooks only
tailwind.mdcby file (/*.tsx, /*.jsx, /*.html, /*.vue, tailwind.config.*)Use the design tokens in the Tailwind config/theme (colors, spacing, fonts)
node-express.mdcAgent picks itValidate every request body, params and query at the route boundary with the repo's schema library
python.mdcby file (/*.py)Follow the formatter/linter config in pyproject.toml (ruff/black/isort)
fastapi.mdcAgent picks itRequest and response bodies are Pydantic models
go.mdcby file (/*.go)gofmt/goimports formatting
rust.mdcby file (/*.rs, Cargo.toml)cargo fmt and cargo clippy -- -D warnings clean before finishing
java-spring-boot.mdcby file (/*.java, pom.xml, build.gradle*)Constructor injection (final fields), no field @Autowired
flutter-dart.mdcby file (/*.dart, pubspec.yaml)Sound null safety: avoid !
sql-migrations.mdcby file (/migrations/, /*.sql, /migrate/)Never edit a migration that has already run in any shared environment
docker.mdcby file (/Dockerfile*, /docker-compose*.yml, /docker-compose*.yaml, /compose*.yaml, .dockerignore)Pin base images to a specific version tag (and digest for production), never latest
github-actions.mdcby file (.github/workflows/, .github/actions/)Set least-privilege permissions: at the top of each workflow (contents: read by default) and grant more per job...
terraform.mdcby file (/*.tf, /*.tfvars)Run terraform fmt and terraform validate
nextjs-overview.mdcalwaysCheck the next version in package.json before using an API
nextjs-server-client-components.mdcby file (app//*.tsx, src/app//*.tsx, components//*.tsx, src/components//*.tsx)Default to Server Components
nextjs-async-request-apis.mdcby file (app//page.tsx, app//layout.tsx, app//route.ts, src/app//page.tsx, src/app//layout.tsx, src/app//route.ts)params and searchParams are Promises: const { slug } = await props.params
nextjs-data-caching.mdcAgent picks itSince Next.js 15, fetch and GET Route Handlers are not cached by default
nextjs-server-actions.mdcAgent picks itTreat every 'use server' function as a public POST endpoint: re-check authentication and authorization inside the...
nextjs-route-handlers.mdcby file (app//route.ts, src/app//route.ts, app//route.js, src/app//route.js)Export named functions per method (GET, POST, ...)
nextjs-proxy.mdcby file (proxy.ts, src/proxy.ts, middleware.ts, src/middleware.ts)Next.js 16 renames middleware.ts to proxy.ts and the export to proxy
nextjs-metadata-seo.mdcby file (app//layout.tsx, app//page.tsx, app/sitemap.ts, app/robots.ts, src/app//layout.tsx, src/app//page.tsx)Use export const metadata or export async function generateMetadata({ params }) in Server Component pages and...
nextjs-images-fonts.mdcby file (next.config.*, app//*.tsx, components//*.tsx, src//*.tsx)Use next/image with explicit width/height (or fill plus a sized parent) and a real alt
nextjs-config-env.mdcby file (next.config.*, .env.example, package.json)serverRuntimeConfig/publicRuntimeConfig are removed in 16
nextjs-errors-loading.mdcby file (app//error.tsx, app//not-found.tsx, app//loading.tsx, app//default.tsx, src/app//error.tsx, src/app//loading.tsx)error.tsx must be a Client Component ('use client') and receives error and reset
django-overview.mdcalwaysCheck the Django version (requirements/pyproject/lockfile) before using an API
django-models-orm.mdcby file (/models.py, /models/*.py, /managers.py, /services.py)Avoid N+1 queries: select_related() for ForeignKey/OneToOne, prefetch_related() for reverse and many-to-many
django-migrations.mdcby file (/migrations/*.py)Never edit a migration that has been applied in any shared environment
django-views-urls.mdcby file (/views.py, /views/*.py, /urls.py)Match the repo's style (function-based or class-based views)
django-forms-validation.mdcby file (/forms.py, /forms/*.py)Validate all user input through a Form, ModelForm or serializer
django-security.mdcby file (/settings.py, /settings/*.py)Production: DEBUG = False, explicit ALLOWED_HOSTS, SECRET_KEY from the environment, SECURE_SSL_REDIRECT,...
django-templates.mdcby file (/templates//*.html)Keep autoescaping on
django-tasks.mdcAgent picks itUse the queue the project already has (Celery, RQ, Django-Q, or Django 6.0 django.tasks)
django-drf.mdcby file (/serializers.py, /api//*.py, /viewsets.py)Serializers list fields explicitly
django-testing.mdcby file (/tests.py, /tests//*.py, /test_*.py, conftest.py)Use the framework the repo uses (pytest-django or django.test.TestCase)
rails-overview.mdcalwaysCheck the Rails version in Gemfile.lock before using an API
rails-models.mdcby file (app/models//*.rb)Back every validation that matters with a database constraint (null: false, unique index, foreign key)
rails-migrations.mdcby file (db/migrate/*.rb)Never edit a migration that has run outside your machine
rails-controllers.mdcby file (app/controllers//*.rb)Rails 8+: use params.expect(post: [:title, :body]) instead of params.require(:post).permit(:title, :body)
rails-jobs.mdcby file (app/jobs//*.rb, config/recurring.yml, config/queue.yml)Rails 8 production default is Solid Queue (database-backed, config/queue.yml, recurring work in...
rails-hotwire-views.mdcby file (app/views//*.erb, app/javascript//*.js, app/helpers//*.rb)Rails 8 default front end: Propshaft + importmap + Turbo + Stimulus
rails-security.mdcby file (config//*.rb, app/controllers//*.rb, app/models/user.rb)Secrets in bin/rails credentials:edit (or env vars)
rails-testing.mdcby file (test//*.rb, spec//*.rb)Use the repo's framework: Minitest (Rails default, bin/rails test) or RSpec
rails-deploy-kamal.mdcby file (config/deploy.yml, config/deploy.*.yml, .kamal/, Dockerfile)Rails 8 apps deploy with Kamal 2 (config/deploy.yml) and Thruster in front of Puma, from the generated Dockerfile
supabase-overview.mdcalwaysKeys: the publishable key (sb_publishable_...) is for anything shipped to users and only reaches what Row Level...
supabase-rls-policies.mdcby file (supabase/migrations//*.sql, supabase//*.sql)alter table x enable row level security; in the same migration that creates the table
supabase-ssr-auth.mdcby file (utils/supabase/, lib/supabase/, src/lib/supabase/, proxy.ts, middleware.ts, app/auth/)Use @supabase/ssr (createBrowserClient, createServerClient)
supabase-migrations-cli.mdcby file (supabase/migrations//*.sql, supabase/config.toml, supabase/seed.sql)New change: supabase migration new add_notes and write SQL, or make the change locally and capture it with...
supabase-queries.mdcby file (/*.ts, /*.tsx)Type the client: createClient<Database>(...) with generated types
supabase-edge-functions.mdcby file (supabase/functions/)Functions live in supabase/functions/<name>/index.ts and use Deno.serve
supabase-storage.mdcAgent picks itBuckets are private unless the files are truly public
supabase-realtime.mdcAgent picks itpostgres_changes only streams tables added to the supabase_realtime publication, and it respects RLS for the...

Honest limits

  • Rules guide the model; they don't enforce anything. Check version-specific advice against the versions in your lockfile (each overview rule tells the agent to do this).
  • Detection is file-based (package.json, manage.py/requirements, Gemfile, supabase/); in monorepos run it per package or use --stack.

Format and license

Zip, 75 KB, v1.0, 150 files. You may use and modify this kit for your own work and for clients you serve, including paid client work. Not affiliated with or endorsed by Cursor (Anysphere).

FAQ

Is it the same content as the single packs?
Yes: all four stack packs plus the general pack, minus three general rules the stack packs replace.
Will it flood every chat?
No, only 5 overview rules are always-on, and only for stacks the repo uses.
Claude Code or Codex?
Use --agents-md.
How do I get the files?
Right after payment, Stripe’s confirmation page shows your download link.
Refunds?
Email hello@youraitools.co within 14 days if it doesn’t work and we can’t fix it.
Can I pay with crypto?
Yes. Pay the same price in USDC or USDT on Base, Ethereum, Arbitrum, Optimism, Polygon or Solana from the "Pay with crypto" button, with no account or KYC. We check the payment on-chain and show your download links as soon as it confirms.

Get Cursor Rules Stack Bundle

59 Cursor rules: Next.js 16, Django, Rails 8, Supabase and general rules for TypeScript, Python, Go and more. Detects each repo's stack. $29 once, $60 value.

$29 one-time ($60 separately)

Buy and downloadPay with crypto

Pairs well with

Download$29

SEO Audit MCP Server

SEO MCP server for Claude Code, Cursor and Claude Desktop: page audits, redirect chains, robots.txt, sitemaps and site crawls. No API keys or credits. $29 once.

View SEO Audit MCP Server
Download$12

Cursor Rules for Laravel

8 Cursor rules for Laravel, written against current docs. Installs in one command, exports AGENTS.md for Claude Code and Codex. $12 once.

View Cursor Rules for Laravel
DownloadFree

Laravel Cursor Rules Starter (Free)

Free Laravel Cursor rules in .mdc format, checked against current Laravel docs, plus a linter that shows why a rule isn't applying.

View Laravel Cursor Rules Starter (Free)

Related