nestjs

Enforce NestJS backend conventions for modules, controllers, services, validation, guards, and TypeORM or Prisma.

1|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/george-popescu/bee-dev --skill nestjs-george-popescu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nestjs
Source: https://github.com/george-popescu/bee-dev/tree/main/plugins/bee/skills/stacks/nestjs
Command: npx skills add https://github.com/george-popescu/bee-dev --skill nestjs-george-popescu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive set of conventions and patterns for developing backend applications using the NestJS framework, ensuring consistency and best practices.

Core Features & Use Cases

  • Module Architecture: Guides the organization of applications into cohesive modules.
  • Controller & Service Standards: Defines clear responsibilities for handling requests and business logic.
  • Validation & Guards: Implements robust input validation and access control mechanisms.
  • Database Integration: Offers patterns for both TypeORM and Prisma.
  • Testing Strategies: Outlines Jest-based unit and integration testing approaches.
  • Use Case: A new developer joining a NestJS project can use this Skill to quickly understand and adhere to the established coding standards for controllers, services, and module structure.

Quick Start

Follow the NestJS module architecture standards for organizing backend code.

Frequently Asked Questions about nestjs

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

FAQPage Schema
What are the best practices for NestJS module architecture?

NestJS module architecture best practices involve organizing backend code into cohesive modules that group related controllers and services, ensuring clear separation of concerns and maintainability across the application's domain boundaries.

How do I structure controllers and services in a NestJS backend?

Structure NestJS controllers and services by assigning controllers the responsibility of handling HTTP requests, while delegating all business logic processing to dedicated service classes to maintain clean separation of concerns.

How do I implement validation and access control in NestJS?

Implement validation and access control in NestJS by applying robust input validation mechanisms to incoming data payloads and using guards to enforce authentication and authorization rules before reaching the route handlers.

Does NestJS work with both TypeORM and Prisma for database integration?

NestJS works with both TypeORM and Prisma for database integration, offering established conventions and patterns to seamlessly connect your services to relational databases using either of these preferred Object-Relational Mapping tools.

How do I set up Jest testing strategies for a NestJS backend?

Set up Jest testing strategies for a NestJS backend by following structured approaches for both unit and integration testing, ensuring your controllers and services are properly mocked and validated against expected business logic outcomes.

What are common NestJS pitfalls and conventions to avoid?

Common NestJS pitfalls to avoid include breaking module boundaries, mismanaging dependency injection, and skipping input validation; following established backend conventions prevents these architectural and security issues.