What problem does it solve?
This Skill helps developers write, review, and refactor NestJS applications by providing a comprehensive guide to best practices and architecture patterns, ensuring proper code structure and maintainability.
Core Features & Use Cases
- Architecture Best Practices: Provides rules for organizing code, avoiding circular dependencies, and creating modular, maintainable applications.
- Dependency Injection: Guides on implementing effective dependency injection, avoiding anti-patterns, and following design principles.
- Error Handling: Best practices for handling errors and exceptions in NestJS applications.
- Security: Recommendations for implementing secure practices, such as JWT authentication, input validation, and rate limiting.
- Performance: Tips for optimizing performance, including caching strategies, database query optimization, and lazy loading.
- Testing: Guidance on testing NestJS applications, including end-to-end testing, mocking external services, and unit testing.
- Database & ORM: Best practices for database interactions and ORM usage.
- API Design: Best practices for designing APIs, including versioning, serialization, and input transformation.
- Microservices: Guidelines for building microservices with NestJS, including health checks, event-driven architecture, and message queues.
- DevOps & Deployment: Best practices for deployment, including environment configuration, logging, and graceful shutdown.
Quick Start
Run the build script to generate the 'AGENTS.md' file with all the best practices for NestJS development.