building-nestjs-controllers

Installation
SKILL.md

Building NestJS Controllers

When to use

  • Adding HTTP endpoints
  • Refactoring fat controllers
  • Applying API versioning

Core rules

  1. Controllers are thin: only parse input, call one use-case, map Result to response
  2. No business logic in controllers
  3. Use @Body() DTO validation with ValidationPipe
  4. Map Result<T,E> to ApiResponse<T> via helper
  5. Use @ApiTags(), @ApiOperation() for Swagger

Reference shape (TypeScript)

Installs
3
GitHub Stars
1
First Seen
May 4, 2026
building-nestjs-controllers — j4flmao/agent_skills_nodejs_nestjs