What problem does it solve?
This Skill provides a clear blueprint for building maintainable, scalable backend logic in Next.js projects using clean architecture, domain-driven design (DDD), and a robust dependency injection pattern with tsyringe. It consolidates how to organize domain, application, and infrastructure layers, so teams can collaborate without tight coupling.
Core Features & Use Cases
- Layered architecture guidance that separates Presentation, Application, Domain, and Infrastructure.
- Server Action patterns with validation via Zod, error handling, and DTO usage to decouple layers.
- Domain-driven entities, repositories, ports, and use cases with a focus on testability and transaction safety.
- Drizzle ORM integration with MySQL, including schema organization, migrations, and repository implementations.
- Centralized DI bindings and module wiring to simplify cross-module coordination.
Quick Start
Follow these steps to bootstrap a new module: create the domain, ports, use cases, and infrastructure folders; implement a repository with drizzle; bind dependencies in the DI container; initialize the app and run the dev server. Then invoke a sample server action to create and persist an example entity.