create-domain-event
Create a domain event and its handler following DDD patterns. Use when you need to publish domain events for asynchronous reactions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a domain event and its handler following DDD patterns. Use when you need to publish domain events for asynchronous reactions.
用 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 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.
Create repository adapter with MongoDB schema following the ports & adapters pattern. Use when adding persistence for domain entities.
| name | create-domain-event |
| description | Create a domain event and its handler following DDD patterns. Use when you need to publish domain events for asynchronous reactions. |
Create a domain event "$1" and its handler in the $0 module.
Create these files:
src/modules/$0/domain/events/$1.ts
src/modules/$0/application/events/handlers/$1.handler.ts
Requirements:
IMPORTANT: Respect layer boundaries: