create-clean-module

Generates Clean Architecture module scaffolds for .NET with CQRS and DDD layers.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/yeeehaooo/WorkSpace --skill create-clean-module
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-clean-module
Source: https://github.com/yeeehaooo/WorkSpace/tree/main/skills/dotnet/generators/create-clean-module
Command: npx skills add https://github.com/yeeehaooo/WorkSpace --skill create-clean-module

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the challenge of manually scaffolding a new business module in .NET projects by generating a complete Clean Architecture structure with CQRS and DDD, ensuring proper separation and reducing boilerplate.

Core Features & Use Cases

  • API Layer: Organized by Module and Action with endpoints and mappings.
  • Application Layer: Commands and Queries with corresponding Handlers and Results.
  • Domain Layer: Aggregates, Value Objects, Domain Services.
  • Infrastructure Layer: Repositories and Data Models scaffolding and configuration.
  • Enforces the Dependency Direction: API → Application → Domain and Infrastructure → Domain to prevent leakage.
  • Supports initialization of bounded contexts and consistent module scaffolding.

Quick Start

Provide the module name and primary entity to scaffold a full Clean Architecture module with CQRS and DDD.

Frequently Asked Questions about create-clean-module

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

FAQPage Schema
How do I scaffold a Clean Architecture module with CQRS and DDD in .NET?

Scaffolding a Clean Architecture module requires providing the module name and primary entity to automatically generate API, Application, Domain, and Infrastructure layers with prescribed CQRS and DDD folder structures.

What is the dependency direction enforced by Clean Architecture scaffolding?

The enforced dependency direction is API → Application → Domain and Infrastructure → Domain, which prevents layer leakage and maintains strict separation between use-case driven and model-driven components.

Can I generate Domain layer components like Aggregates and Value Objects automatically?

Yes, the Domain layer scaffolding automatically generates folder structures for Aggregates, Value Objects, and Domain Services to support DDD patterns within the generated .NET module.

How do I structure Application layer Commands and Queries in a .NET Clean Architecture project?

The Application layer is structured by scaffolding Commands and Queries with their corresponding Handlers and Results, organizing the module by use-case driven separation to enforce CQRS patterns.

Does the scaffold support initializing bounded contexts for DDD projects?

Yes, the scaffold supports initialization of bounded contexts and consistent module scaffolding to ensure proper separation of concerns across generated .NET Clean Architecture layers.