create-usecase
Create a new use case with DTOs and module following Clean Architecture patterns. Use when adding new business workflows or operations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a new use case with DTOs and module following Clean Architecture patterns. Use when adding new business workflows or operations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyze NestJS project architecture against Clean Architecture, DDD, and best practices. Use when reviewing code structure, checking layer boundaries, validating architectural patterns, or auditing module compliance.
Analyze code quality including ESLint, Prettier, tests, TypeScript, and NestJS best practices. Use when reviewing code quality, checking test coverage, or auditing for best practices.
Quick reference guide for architectural decisions and patterns in Clean Architecture + DDD + Event-Driven systems. Use for learning or when making architectural decisions.
Create a domain event and its handler following DDD patterns. Use when you need to publish domain events for asynchronous reactions.
Create a new domain entity or aggregate root following DDD patterns. Use when modeling business entities with identity and lifecycle.
Create a new feature module following Clean Architecture structure. Use when adding a new business domain or feature module to the project.
| name | create-usecase |
| description | Create a new use case with DTOs and module following Clean Architecture patterns. Use when adding new business workflows or operations. |
Create a new use case "$1" in the $0 module.
Create the following files in src/modules/$0/application/useCases/$1/:
Requirements:
Generate complete, production-ready code following Clean Architecture principles.