scaffolding

Scaffold complete Clean Architecture feature slices with controllers, MediatR, validators, and tests.

2|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/s205109/AHKFlowApp --skill scaffolding-s205109
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffolding
Source: https://github.com/s205109/AHKFlowApp/tree/main/.claude/skills/cck-scaffolding
Command: npx skills add https://github.com/s205109/AHKFlowApp --skill scaffolding-s205109

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Projects using Clean Architecture often suffer from inconsistent feature implementations, missing tests, and anti-pattern regressions; this Skill enforces a repeatable, production-grade scaffolding pattern so teams can add endpoints and entities quickly and correctly.

Core Features & Use Cases

  • Enforced Architecture: Produces controller-based APIs that follow AHKFlowApp's Clean Architecture rules (controllers, MediatR, Ardalis.Result, layer folders).
  • Complete Feature Slices: Generates controller actions, MediatR commands/queries and handlers, FluentValidation validators, DTOs, EF IEntityTypeConfiguration, and matching integration tests.
  • Testing & Migrations: Includes integration test setup using WebApplicationFactory and Testcontainers (SQL Server) and guidance to add EF Core migrations.
  • Use Case: When adding a new CRUD endpoint or entity, use this Skill to scaffold the full end-to-end implementation with validation, EF configuration, and integration tests to maintain consistency and reliability.

Quick Start

Scaffold a new CRUD feature called Hotstring that creates the controller, MediatR commands/queries with handlers, FluentValidation validator, DTOs, EF IEntityTypeConfiguration, an EF migration, and an integration test.

Frequently Asked Questions about scaffolding

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

FAQPage Schema
How do I scaffold a complete .NET Clean Architecture feature slice with MediatR and EF Core?

Scaffolding a .NET Clean Architecture feature slice generates controllers, MediatR commands and handlers, FluentValidation validators, DTOs, EF Core configurations, and integration tests simultaneously to ensure consistent endpoint creation.

What is the best way to enforce Clean Architecture rules when adding new CRUD endpoints in .NET?

Enforcing Clean Architecture rules when adding CRUD endpoints involves scaffolding files that natively use Ardalis.Result in handlers, MediatR pipeline validation, and result.ToActionResult in controllers to prevent anti-pattern regressions.

How do I generate integration tests for .NET controller APIs using WebApplicationFactory and Testcontainers?

Generating integration tests for .NET controller APIs involves using WebApplicationFactory combined with Testcontainers for SQL Server to automatically provision test databases and validate the newly scaffolded endpoint behavior.

Does this scaffolding tool support .NET 10 projects using controller-based APIs and Ardalis.Result?

This scaffolding tool specifically targets .NET 10 projects using controller-based APIs, MediatR, Ardalis.Result, FluentValidation, and EF Core to generate production-ready feature slices.

How do I add EF Core migrations for a newly scaffolded entity in a Clean Architecture project?

After scaffolding the EF Core IEntityTypeConfiguration for a new entity, you must manually trigger EF Core migration generation to update the database schema and align it with your new feature slice.