skills/dotnet/generators/create-domain-aggregate/SKILL.md
Generate DDD Aggregate Root structure with Repository Interface, ValueObject, and Domain Event following DDD principles. Use when: - Creating new domain aggregates in DDD projects - Generating aggregate root with repository interface - Scaffolding value objects and domain events - Building domain entities with business invariants - Implementing aggregates with identity and business rules Triggers: "create aggregate", "generate aggregate", "domain aggregate", "aggregate root", "DDD aggregate"
npx skillsauth add yeeehaooo/WorkSpace create-domain-aggregateInstall 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.
Create a complete DDD Aggregate Root structure following DDD principles.
Applies to:
Aggregate Root:
public class {Entity} : AggregateRoot
{
public Guid Id { get; private set; }
// Properties and business methods
}
Repository Interface:
public interface I{Entity}Repository
{
Task<{Entity}?> GetByIdAsync(Guid id, CancellationToken ct = default);
Task AddAsync({Entity} entity, CancellationToken ct = default);
Task UpdateAsync({Entity} entity, CancellationToken ct = default);
Task DeleteAsync(Guid id, CancellationToken ct = default);
}
ValueObject (optional):
public class {ValueObject} : ValueObject
{
// Immutable value object
protected override IEnumerable<object> GetEqualityComponents()
{
yield return Property1;
yield return Property2;
}
}
Domain Event (optional):
public class {Entity}CreatedEvent : IDomainEvent
{
public DateTime OccurredOn { get; init; } = DateTime.UtcNow;
public Guid {Entity}Id { get; init; }
}
development
Create reusable .NET atomic capability code snippets that can be directly copied and pasted. Use when: - Creating single-purpose code snippets - Building reusable code templates - Implementing atomic technical capabilities - Creating copy-pasteable code blocks - Building snippet library for common patterns Triggers: "create snippet", "code snippet", "reusable snippet", "atomic snippet", "copy-paste code"
development
Create Docker Compose configuration for containerized .NET application development and deployment. Use when: - Containerizing .NET applications - Setting up local development environment with dependencies - Creating multi-container setups (API + DB + Redis) - Defining service dependencies and networking - Building docker-compose.yml for development or production Triggers: "docker compose", "containerize", "multi-container", "docker-compose.yml", "docker setup"
tools
Create adapter structure for integrating third-party APIs in Clean Architecture applications. Use when: - Integrating external APIs or services - Creating HTTP client adapters for third-party services - Implementing API integration with error handling - Setting up adapter pattern for external dependencies - Building resilient external service integrations Triggers: "api adapter", "third-party api", "external service", "http client adapter", "api integration"
development
Enterprise backend structure built on Clean Architecture, DDD, CQRS, and Vertical Slice API Design with Dapper-first persistence. Use when: - Creating new enterprise backend projects - Implementing Clean Architecture with DDD and CQRS - Building vertical slice API endpoints - Using Dapper as primary persistence mechanism - Organizing modules by UseCase-driven and Model-driven separation Triggers: "dmis structure", "clean architecture", "enterprise backend", "DDD CQRS", "vertical slice", "dapper"