nestjs-backend-developer

Generates and reviews NestJS backend APIs following modular architecture and Drizzle ORM conventions.

Updated Aug 9, 2026
One-click install
npx skills add https://github.com/stbui/trade-crawlee --skill nestjs-backend-developer-stbui
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: nestjs-backend-developer
Source: https://github.com/stbui/trade-crawlee/tree/main/.claude/skills/nestjs-backend-developer
Command: npx skills add https://github.com/stbui/trade-crawlee --skill nestjs-backend-developer-stbui

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building NestJS backends often leads to inconsistent layering, circular dependencies, weak validation, and security gaps. This Skill enforces a complete, opinionated engineering standard so every module, DTO, controller, and data query follows the same production-grade conventions. ## Core Features & Use Cases - Full-stack backend scaffolding: Generate complete business modules (DTO → Controller → Service → Module) with class-validator rules, Swagger annotations, and unified response formats. - Data & security standards: Drizzle ORM schema design, transactions, N+1 avoidance, Argon2id password hashing, JWT in HttpOnly cookies, and RBAC guards. - Code review: Audits NestJS code against 14 reference specifications, flagging violations by severity with fix examples. - Use Case: Ask it to build a user management module with JWT auth and pagination — it outputs the module architecture, API contracts, Drizzle schema, layered code, and a self-check validation report. ## Quick Start Use the nestjs-backend-developer skill to create a user module with CRUD endpoints, JWT authentication, and Drizzle ORM persistence.

Frequently Asked Questions about nestjs-backend-developer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a NestJS project with modular architecture?▼

Organize code by domain modules rather than by layer: each business domain gets its own module containing dto/, controller, service, and module files. Shared utilities go in common/, database code in database/, and modules must never have circular dependencies.

How to implement JWT authentication with RBAC in NestJS?▼

Use a JwtAuthGuard for authentication followed by a PermissionsGuard for authorization, applied via @UseGuards with a @Permissions decorator like 'users:read'. Store tokens in HttpOnly Secure cookies, never in localStorage, and hash passwords with Argon2id.

Does Drizzle ORM work with NestJS for transactions and relations?▼

Yes, Drizzle integrates directly via a DatabaseService without a custom Repository layer. Use db.transaction() for multi-write operations and leftJoin or with clauses to preload relations and avoid N+1 queries.

What is the difference between NestJS middleware, guards, and interceptors?▼

Middleware runs earliest for logging and CORS, guards handle authentication and role checks before route execution, interceptors wrap responses and measure timing, and pipes validate parameters. Authorization belongs in guards, not middleware.

When should I not use this NestJS development skill?▼

It does not apply to frontend development with React or Vue, raw Express or Fastify projects without NestJS, standalone SQL tuning, or DevOps work like Docker, Kubernetes, and CI/CD pipelines.