What problem does it solve?
Provides a comprehensive, machine-friendly rulebook and tooling to eliminate fragile NestJS architectures, reduce runtime crashes from bad module organization, and standardize dependency injection, error handling, and security patterns across teams.
Core Features & Use Cases
- Guided Architecture Rules: Clear, prioritized rules for module organization, circular dependency avoidance, and single-responsibility services.
- Dependency Injection & Scopes: Best practices for constructor injection, tokens for interfaces, and correct provider scopes to avoid state leaks.
- Operational Patterns: Recommendations for error handling, testing, database migrations, transactions, caching, and graceful shutdown suitable for production readiness.
- Tooling & Automation: Build scripts to compile rule files into a consolidated AGENTS.md for automated review and agent consumption.
- Use Case: Automated code review and refactoring guidance when onboarding a NestJS backend or preparing a project for production audits.
Quick Start
Use the nestjs-best-practices skill to review a NestJS module and produce a prioritized list of fixes for module exports, DI scopes, validation, and migration issues.