AcademyRulesDevelopment

NestJS anti-hallucination rules for Cursor

Backend teams building NestJS services who want AI-generated code to use real, current packages.

  • Recommendedour rating
  • 40,892repository stars
  • CC0-1.0licence
  • 6 months agolast update
mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/nestjs-anti-hallucination-cursorrules-prompt-file.mdc -o .cursor/rules/nestjs-anti-hallucination.mdc
nestjs-anti-hallucination.mdc

Loading the file...

AI workshops

Want your team working like this?

Hands-on workshops where your team learns to use AI coding agents, skills and automations on its own work, not on toy examples.

  • Free 20-minute call to plan the session
  • Built around your team's real tasks
  • In English or Spanish, on site in Barcelona or online

What it does

A rules file for Cursor that stops the AI from inventing NestJS imports and packages. It lists banned or deprecated import paths, gives the correct imports for Swagger, TypeORM, BullMQ, Config, Passport and CQRS, and flags outdated patterns.

Use cases

  1. 01Import Swagger decorators from the correct package
  2. 02Use BullMQ instead of the legacy Bull queue
  3. 03Set up JWT auth with Passport using valid imports

Questions about
NestJS anti-hallucination rules for Cursor.

What is NestJS anti-hallucination rules for Cursor used for?

Backend teams building NestJS services who want AI-generated code to use real, current packages. A rules file for Cursor that stops the AI from inventing NestJS imports and packages. It lists banned or deprecated import paths, gives the correct imports for Swagger, TypeORM, BullMQ, Config, Passport and CQRS, and flags outdated patterns.

How do I install NestJS anti-hallucination rules for Cursor?

Run this in your terminal: mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/nestjs-anti-hallucination-cursorrules-prompt-file.mdc -o .cursor/rules/nestjs-anti-hallucination.mdc

Is NestJS anti-hallucination rules for Cursor open source?

Yes. The code is on GitHub (PatrickJS/awesome-cursorrules) under the CC0-1.0 licence.

Is NestJS anti-hallucination rules for Cursor safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.