domain-add-aggregate

Scaffold a complete Domain Aggregate with CRUD across all layers.

4|Updated Apr 25, 2024
One-click install
npx skills add https://github.com/BridgingIT-GmbH/bITdevKit.Examples.GettingStarted --skill domain-add-aggregate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: domain-add-aggregate
Source: https://github.com/BridgingIT-GmbH/bITdevKit.Examples.GettingStarted/tree/main/.opencode/skills/domain-add-aggregate
Command: npx skills add https://github.com/BridgingIT-GmbH/bITdevKit.Examples.GettingStarted --skill domain-add-aggregate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill creates a complete Domain Aggregate with CRUD scaffolding across all layers.

Core Features & Use Cases

  • Scaffolds Domain Aggregate with factory methods, value objects, domain events
  • Generates Infrastructure EF Core configurations, Application commands/queries, Mapping, and Minimal API endpoints
  • Encourages consistent layer boundaries and predictable project structure for new aggregates

Quick Start

Generate a complete Customer domain aggregate scaffold with CRUD across Domain, Infrastructure, Application, Mapping, and Presentation layers.

Frequently Asked Questions about domain-add-aggregate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a complete Domain Aggregate with CRUD operations across all layers?

To scaffold a Domain Aggregate with CRUD operations, this skill generates code across Domain, Infrastructure, Application, Mapping, and Presentation layers automatically. It creates factory methods, value objects, EF Core configurations, and Minimal API endpoints for new domain entities.

What is the best way to enforce Clean Architecture when adding a new DDD aggregate to my project?

Enforcing Clean Architecture for a new DDD aggregate requires consistent layer boundaries and predictable project structure. This skill scaffolds the aggregate using DDD patterns, Mapster for mapping, and bITdevKit base classes to maintain architectural integrity across generated layers.

Does this scaffolding generate EF Core configurations and Mapster mappings automatically?

Yes, the scaffolding generates EF Core configurations and Mapster mappings automatically. It creates Infrastructure layer EF Core configurations and dedicated Mapping layer code to ensure the new Domain Aggregate persists correctly and maps seamlessly between layers.

Can I use this to scaffold CQRS commands and queries for a new domain entity?

Yes, you can use this to scaffold CQRS commands and queries for a new domain entity. The skill generates the Application layer code, producing the necessary commands and queries to handle CRUD operations following the CQRS pattern.

How do I add domain events and value objects when creating a new Clean Architecture entity?

Adding domain events and value objects when creating a new Clean Architecture entity is handled by the skill during scaffolding. It generates the Domain layer code containing factory methods, domain events, and value objects to ensure the aggregate adheres to DDD patterns.