--- name: nexus-clean-architecture description: Clean Architecture & CQRS implementation for .NET 10 --- # Clean Architecture Standards - **Folder Hierarchy:** Root must contain `/src` and `/tests`. Group logic by Feature (e.g., `src/Features/Reader/Queries/GetChapterContent`). - **CQRS Flow:** - UI triggers `IMediator.Send()`. - Handler executes logic and returns `FluentResult.Result`. - No direct Database/API calls from Razor components. - **MediatR:** Use `LuckyPennySoftware.MediatR` for implementation. - **Mapster Integration:** - Centralize mapping configurations. - No AutoMapper allowed. - **Functional Error Handling:** - Mandatory use of `FluentResult`. No exceptions for business logic flow.