skill-nestjs-api

Enforce layered NestJS REST API architecture with Prisma repositories and class-validator DTOs.

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/darelabs-tech/dare-cli --skill skill-nestjs-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-nestjs-api
Source: https://github.com/darelabs-tech/dare-cli/tree/main/.agents/skills/skill-nestjs-api
Command: npx skills add https://github.com/darelabs-tech/dare-cli --skill skill-nestjs-api

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @nestjs/core, @nestjs/common, @nestjs/swagger, @nestjs/throttler, @nestjs/passport, @nestjs/jwt, @prisma/client, class-validator, class-transformer, @node-rs/argon2.

What problem does it solve?

This skill addresses the inconsistency and architectural drift often found in NestJS projects by enforcing a strict, layered design that ensures maintainability, security, and scalability.

Core Features & Use Cases

  • Layered Architecture: Enforces separation of concerns between Controllers, Services, and Repositories.
  • Automated Documentation: Generates OpenAPI/Swagger documentation automatically from code decorators.
  • Robust Security: Implements standardized rate limiting, JWT authentication, and global exception handling.
  • Use Case: Quickly scaffold a new user management module that includes Prisma-based data access, class-validator DTOs, and full E2E test coverage.

Quick Start

Use the skill-nestjs-api to generate a new feature module for user authentication following the DARE layered design standards.

Frequently Asked Questions about skill-nestjs-api

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

FAQPage Schema
How do I enforce a strict layered architecture in a NestJS API?

NestJS API automated OpenAPI documentation is generated directly from code decorators. This process automatically produces Swagger specifications from your TypeScript backend, satisfying requirements for robust API documentation without manual endpoint mapping.

How do I set up JWT authentication and rate limiting in a NestJS backend?

NestJS global exception filtering catches and standardizes error responses across the application. By implementing global filters, your TypeScript backend ensures consistent error handling and robust security boundaries for REST API consumers.

How do I scaffold a new NestJS module with Prisma and class-validator DTOs?

To scaffold a new NestJS module with Prisma and class-validator, generate a feature structure separating Controllers, Services, and Repositories. This standardizes data access and validation, quickly producing a maintainable user management module with full E2E coverage.

Does this NestJS API approach require Prisma for database access?

This NestJS API approach is best for production-ready TypeScript backends requiring high maintainability and strict architectural standards. It enforces layered design, Prisma repositories, and robust security, making it ideal for scalable REST APIs needing automated OpenAPI documentation.