nestjs-clean-typescript

Enforce modular NestJS architecture with SOLID principles and Jest testing.

1|Updated Nov 13, 2025
One-click install
npx skills add https://github.com/mislam-dev/department-management-system-api --skill nestjs-clean-typescript
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: nestjs-clean-typescript
Source: https://github.com/mislam-dev/department-management-system-api/tree/main/.agents/skills/nestjs-clean-typescript
Command: npx skills add https://github.com/mislam-dev/department-management-system-api --skill nestjs-clean-typescript

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Clean NestJS API development can be error-prone without clear standards. This skill provides a structured set of guidelines to enforce modular architecture, SOLID principles, and rigorous testing, reducing maintenance cost and onboarding time.

Core Features & Use Cases

  • Enforces modular NestJS architecture with one module per domain, DTO validation via class-validator, and per-entity services.
  • Promotes type-safety and clean code with strict typing, JSDoc usage, and naming conventions.
  • Supports robust testing practices with Jest unit tests and end-to-end tests, plus guidelines for test structure and coverage.

Quick Start

Start by applying these guidelines to initialize a clean, modular NestJS project with type-safe DTOs and solid testing.

Frequently Asked Questions about nestjs-clean-typescript

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

FAQPage Schema
How do I structure a clean NestJS API using SOLID principles?▼

To structure a clean NestJS API, enforce modular architecture with one module per domain, utilize per-entity services, and apply DTO validation via class-validator to maintain strict separation of concerns. This approach reduces maintenance costs and onboarding time.

What is the best way to organize domain modules in NestJS?▼

The best way to organize domain modules in NestJS is creating one module per domain area. This modular structure enforces clean code, ensures type-safety with strict typing, and isolates business logic effectively within per-entity services.

How do I configure Jest testing for NestJS with Arrange-Act-Assert patterns?▼

Configuring Jest testing for NestJS involves establishing comprehensive unit and end-to-end tests using the Arrange-Act-Assert pattern. This ensures robust testing practices and validates type-safe DTOs and modular architecture components thoroughly.

Does this NestJS development standard support MikroORM persistence?▼

Yes, this NestJS development standard explicitly supports MikroORM persistence. It enforces guidelines for integrating MikroORM alongside TypeScript strict typing, JSDoc usage, and naming conventions to maintain a clean, SOLID codebase.

Why does NestJS API development become error-prone without clear standards?▼

NestJS API development becomes error-prone without clear standards because maintaining type-safety and SOLID principles across complex domains is difficult. Establishing structured guidelines for modular architecture and DTO validation reduces these maintenance risks.