nestjs-controllers-services

Installation
SKILL.md

NestJS Controllers & Services Standards

Priority: P0 (FOUNDATIONAL)

Controllers

  • Role: Handler only. Delegate all logic to Services.
  • Context: ExecutionContext helpers (switchToHttp()) for platform-agnostic code.
  • Custom Decorators:
  • Avoid: @Request() req -> req.user (Not type-safe).
  • Pattern: Create typed decorators like @CurrentUser(), @DeviceIp().
import { RequestWithUser } from 'src/common/interfaces/request.interface';
Installs
2
GitHub Stars
521
First Seen
14 days ago
nestjs-controllers-services — hoangnguyen0403/agent-skills-standard