Cursor Rules Pack

Focused Cursor rules for your stack, scoped so they load only when relevant, installed into .cursor/rules/ with one command, and a linter that tells you why a rule isn't applying.

Cursor Rules Pack cover

What’s in the pack

24 focused Cursor project rules (.mdc) for the stacks people actually use, an installer that detects your stack and copies only the rules you need into .cursor/rules/, an AGENTS.md exporter for Claude Code / Codex / other agents, and a rules linter.

Every rule follows Cursor's documented format and best practices: frontmatter with description / globs / alwaysApply, one topic per rule, under 20 lines each (Cursor recommends < 500), concrete instructions instead of "write clean code". Only one rule is always applied (13 lines); the rest attach by file pattern or when the Agent decides they're relevant, so they don't fill your context.

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 14 tests OK on Python 3.13 and 3.10.

Real terminal output from Cursor Rules Pack: demo and passing tests

Install in 30 seconds

python3 tools/install_rules.py --detect ~/code/my-app        # what stacks does it use?
python3 tools/install_rules.py ~/code/my-app --auto          # core rules + detected stacks -> .cursor/rules/
python3 tools/install_rules.py ~/code/my-app --stack core,python,docker --dry-run
python3 tools/install_rules.py ~/code/my-app --auto --agents-md   # also write AGENTS.md

Existing files are never overwritten unless you add --force. Or skip the installer: copy any rules/*.mdc into .cursor/rules/ yourself.

As a Cursor plugin: copy this folder to ~/.cursor/plugins/local/cursor-rules-pack and reload the window (manifest: .cursor-plugin/plugin.json). That loads all 24 rules in every project, so most people prefer the per-project install above.

The rules

RuleStackLoads
core-agent-workflowcorealways
core-git-commitscoreagent picks (description)
core-testingcoreagent picks (description)
core-securitycoreagent picks (description)
core-code-reviewcore@-mention
core-docscoreagent picks (description)
core-error-handlingcoreagent picks (description)
typescripttypescriptfiles: /*.ts, /*.tsx
reactreactfiles: /*.tsx, /*.jsx
nextjs-app-routernextjsfiles: app/, src/app/, next.config.*, middleware.ts
tailwindtailwindfiles: /*.tsx, /*.jsx, /*.html, /*.vue, tailwind.config.*
node-expressnodeagent picks (description)
pythonpythonfiles: /*.py
fastapipythonagent picks (description)
djangopythonagent picks (description)
gogofiles: /*.go
rustrustfiles: /*.rs, Cargo.toml
java-spring-bootjavafiles: /*.java, pom.xml, build.gradle*
flutter-dartflutterfiles: /*.dart, pubspec.yaml
sql-migrationssqlfiles: /migrations/, /*.sql, /migrate/
supabasesupabasefiles: supabase/, /*supabase*
dockerdockerfiles: /Dockerfile*, /docker-compose*.yml, /docker-compose*.yaml, /compose*.yaml, .dockerignore
github-actionscifiles: .github/workflows/, .github/actions/
terraformterraformfiles: /*.tf, /*.tfvars

Detection looks at package.json dependencies (next, react, tailwindcss, typescript, express/fastify/koa/nest/hono, supabase), pyproject/requirements/.py files, go.mod, Cargo.toml, pom.xml/build.gradle, pubspec.yaml, Dockerfiles/compose files, .github/workflows, *.tf, *.sql and migrations folders.

Lint your own rules

python3 tools/lint_rules.py .cursor/rules --project .
python3 tools/lint_rules.py examples/broken-rules     # see what it catches

Flags plain .md files Cursor ignores, missing or unclosed frontmatter, alwaysApply: yes, misspelled keys (always_apply), globs ignored because alwaysApply: true, ./ or absolute globs, globs that match no file in your project, @file references that don't exist, empty rules, duplicates, rules over 500 lines, too many always-applied lines, and vague instructions. Exit code 1 on errors, --json for CI.

Try it

./tools/demo.sh     # detect + install + lint on examples/sample-app (Next.js + Supabase), in a temp copy
./run_tests.sh      # 14 test groups

Python 3.9+, standard library only, offline.

Customize

Rules are starting points: open the installed .mdc files and change them to match your team (Cursor: add a rule when you see the Agent repeat the same mistake). Globs are written unquoted and comma-separated, the way Cursor's own editor writes them.

Honest limits

  • Rules guide the model; they don't enforce anything. Use linters, tests and CI for hard requirements.
  • Framework advice targets current stable versions (e.g. Next.js App Router, Pydantic v2 style). Check against the versions in your project; the rules tell the Agent to do the same.
  • The linter checks structure and references against Cursor's documented format; it can't tell whether a rule's advice is right for your codebase.
  • Detection is file-based and can miss monorepo sub-packages: run it on each package folder or use --stack.

Format and license

Zip, 34 KB, v1.0, 40 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

Does it work with the new Cursor rules format?
Yes, .mdc files in .cursor/rules with description, globs and alwaysApply, as documented by Cursor.
Will it overwrite my rules?
No, existing files are skipped unless you pass --force.
Claude Code or Codex?
Use --agents-md to write the same rules into 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 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.

Save with a bundle

Pairs well with

DownloadFree

Cursor Rules Starter (Free)

Free Cursor rules examples in .mdc format: agent workflow, commits, testing, security, code review. Includes a linter that shows why a rule isn't applying.

View Cursor Rules Starter (Free)
DownloadFree

CLAUDE.md Linter (Free)

Free CLAUDE.md linter: broken @imports, files over 200 lines, .claude/rules paths that match nothing, AGENTS.md conflicts, dead npm scripts, leaked keys. Offline, CI-ready.

View CLAUDE.md Linter (Free)
DownloadFree

MCP Config Validator (Free)

Free MCP config validator and converter: check .mcp.json, .cursor/mcp.json, .vscode/mcp.json and claude_desktop_config.json for the mistakes that make servers silently fail.

View MCP Config Validator (Free)

Related