skills/nestjs/nestjs-architecture/SKILL.md
Design decoupled, testable NestJS module boundaries with feature, core, and shared modules. Use when structuring module imports, creating feature modules, or enforcing separation of concerns in NestJS.
npx skillsauth add hoangnguyen0403/agent-skills-standard nestjs-architectureInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Design decoupled, testable modules with clear boundaries.
nest g module users creates feature module.nest g controller users and nest g service users.TypeOrmModule.forFeature([User]) in module.class-validator decorators on all DTOs.madge --circular src/ to verify no cycles.See implementation examples
@nestjs/config, never process.env directly.madge).class-validator decorators on all inputs?@InjectRepository() or injected services properly registered in module's imports (via TypeOrmModule.forFeature) or providers?new Service().development
Standardize SRS and FRS specifications for technical behavior, interfaces, data contracts, quality constraints, and verification mapping. Use when writing SRS, functional specification, system behavior requirements, API/data contracts, or non-functional thresholds.
development
Standardize BRD and BRD-lite discovery for business goals, stakeholder impact, current-to-future state, and measurable value outcomes. Use when creating BRD, business case, project justification, ROI narrative, or AS-IS to TO-BE scope.
development
Implements a strict Red-Green-Refactor loop to ensure zero production code is written without a prior failing test. Use when: creating new features, fixing bugs, or expanding test coverage.
testing
Standardize PRD discovery and drafting for product scope, user outcomes, requirement IDs, and acceptance criteria. Use when creating PRD, product requirements, feature specification, or acceptance criteria plan.