What problem does it solve?
This Skill unit addresses the complexities of Node.js development, guiding users through framework selection, async patterns, security, and architecture.
Core Features & Use Cases
- Framework Selection: Offers a decision tree for choosing the right Node.js framework based on the project's context.
- Runtime Considerations: Discusses native TypeScript, module system decisions, and runtime selection.
- Architecture Principles: Introduces a layered structure concept for better testability and flexibility.
- Error Handling Principles: Provides a centralized error handling pattern and a philosophy for error response.
- Async Patterns Principles: Explains when to use each async pattern and how to avoid event loop blocking.
- Validation Principles: Outlines validation at boundaries, library selection, and validation philosophy.
- Security Principles: Offers a security checklist and a mindset for security considerations.
- Testing Principles: Discusses test strategy selection, what to test, and the built-in test runner.
- Anti-Patterns to Avoid: Lists common anti-patterns and their alternatives.
- Decision Checklist: Provides a checklist for making informed decisions before implementation.
Quick Start
Run the 'nodejs-best-practices' skill to learn the latest Node.js development principles and best practices.