create-domain-event

Community

Generate domain events and handlers.

Authorchangjian-wang
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill streamlines the creation of domain events, their corresponding handlers, and the necessary service integrations, reducing boilerplate code and ensuring consistency in event-driven architectures.

Core Features & Use Cases

  • Event Definition: Generates C# record types for domain events, adhering to the IDomainEvent interface.
  • Event Handler Implementation: Creates handler classes that implement IDomainEventHandler<T>, ready to process specific events.
  • Service Integration: Provides examples of how to dispatch domain events from within service methods.
  • Use Case: When a new user is created in the system, you need to log this event for auditing and potentially trigger other downstream processes. This Skill helps you set up the UserCreatedEvent, a UserAuditEventHandler, and integrate the event dispatching into your UserService.

Quick Start

Use the create-domain-event skill to generate a UserCreatedEvent, a UserAuditEventHandler, and integrate it into the UserService.

Dependency Matrix

Required Modules

None required

Components

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: create-domain-event
Download link: https://github.com/changjian-wang/dawning/archive/main.zip#create-domain-event

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.