nestjs-clean-hex-cqrs-api-playbook
CommunityEnforce clean NestJS APIs with CQRS-lite.
Authorkhoidang2110
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill ensures NestJS APIs adhere to Clean Architecture, Hexagonal (Ports & Adapters), and CQRS-lite patterns, preventing architectural drift in large Nx monorepos.
Core Features & Use Cases
- Architectural enforcement: guides the layering from controllers to persistence and enforces port-based DI.
- Standardized workflow: provides a step-by-step playbook for adding or modifying any NestJS API endpoint.
- Guidance on persistence & errors: codifies DomainError usage and Prisma 6.x persistence practices.
Quick Start
Follow the NestJS API Playbook when adding or updating any NestJS API. Start by mapping the HTTP contract in libs/api, then implement the QueryService/UseCase, wire ports via tokens, add a persistence adapter, and ensure Prisma schema alignment.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: nestjs-clean-hex-cqrs-api-playbook Download link: https://github.com/khoidang2110/agent-skills/archive/main.zip#nestjs-clean-hex-cqrs-api-playbook Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.