nestjs-coding-standard

Enforce NestJS 11.x coding standards with strict typing and DTO validation.

34|21|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/kumaran-is/claude-code-onboarding --skill nestjs-coding-standard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nestjs-coding-standard
Source: https://github.com/kumaran-is/claude-code-onboarding/tree/main/.claude/skills/nestjs-coding-standard
Command: npx skills add https://github.com/kumaran-is/claude-code-onboarding --skill nestjs-coding-standard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

NestJS projects often drift in consistency; this skill defines a shared standard to improve readability, maintainability, and onboard new engineers by enforcing a uniform approach to structure, types, and conventions.

Core Features & Use Cases

  • Naming conventions for classes, DTOs, and files to ensure predictable structure
  • TypeScript strictness with strict: true and validation through class-validator
  • DTO patterns with separate Create/Update/Response DTOs and validation
  • Feature-first module organization with explicit imports/exports
  • Robust error handling with custom exceptions and structured logging

Quick Start

Refactor a NestJS 11.x service to use strict typing, DTO validation, and feature-based modules.

Frequently Asked Questions about nestjs-coding-standard

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

FAQPage Schema
How do I enforce consistent NestJS coding standards across my team?

To enforce consistent NestJS coding standards, apply rules for strict TypeScript usage, feature-based module organization, DTO validation with class-validator, and structured error handling. This ensures predictable structure and maintainable code.

What is the best way to organize NestJS modules for maintainability?

The best way to organize NestJS modules for maintainability is using a feature-first structure with explicit imports and exports. This approach keeps related services, DTOs, and controllers grouped cohesively.

How do I implement DTO validation patterns in a NestJS service?

Implement DTO validation patterns in NestJS by using separate Create, Update, and Response DTOs with class-validator. Enable TypeScript strict mode to ensure type safety and robust payload validation.

Does this coding standard work with NestJS 11.x?

Yes, this coding standard is specifically designed for NestJS 11.x services. It targets strict typing, feature-based modules, and structured logging to ensure compatibility and maintainability.

How do I handle errors and logging in NestJS applications?

Handle errors and logging in NestJS by implementing custom exceptions and structured logging. This approach replaces generic error throwing with robust, traceable error management across your services.

Why use separate DTOs for creating and updating resources in NestJS?

Use separate Create and Update DTOs in NestJS to enforce strict validation rules tailored to each operation. This pattern prevents partial data corruption and maintains clear API contracts.