scaffolding

Generate architecture-aligned .NET vertical slices with validation and integration tests.

1|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/Maj3D10/Training-Platform --skill scaffolding-maj3d10
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffolding
Source: https://github.com/Maj3D10/Training-Platform/tree/main/.agent/skills/scaffolding
Command: npx skills add https://github.com/Maj3D10/Training-Platform --skill scaffolding-maj3d10

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It removes the repetitive setup work of creating new .NET features by generating consistent vertical slices with endpoints, validation, EF Core configuration, and integration tests.

Core Features & Use Cases

  • Architecture-aware feature generation: Produces scaffolds aligned to the chosen architecture (VSA, CA, DDD, or Modular Monolith) and asks for clarification when the architecture is unknown.
  • Complete vertical slices: Generates a full feature slice end-to-end (handler, validation, DTOs, EF configuration, and integration test) instead of partial code.
  • Production-grade conventions and guardrails: Enforces Result pattern handling, CancellationToken usage, FluentValidation + ValidationFilter wiring, OpenAPI metadata, pagination constraints, global exception handling checks, and testcontainers-based integration tests.
  • Entity scaffolding workflow: Generates entities paired with IEntityTypeConfiguration and highlights migration creation after configuration.
  • Modular monolith module scaffolding: Supports module-scoped DbContext setup, DI registration, endpoint grouping, and isolated schema defaults.

Quick Start

Load the scaffolding skill and ask it to scaffold a new endpoint named "AddProduct" for your .NET 10 project with integration tests enabled.

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 vertical slice with integration tests?

To scaffold a .NET vertical slice, generate the handler, DTOs, validation, EF Core configuration, and integration test end-to-end. This ensures the feature slice includes Result-based handler outputs, FluentValidation wiring, CancellationToken propagation, and WebApplicationFactory with Testcontainers DI replacement.

Can I generate scaffolding for different .NET architectures like DDD or Modular Monolith?

Yes, you can generate architecture-aware scaffolding for Vertical Slice Architecture, Clean Architecture, DDD, and Modular Monolith patterns. The generation aligns to the chosen architecture and asks for clarification when the project architecture is unknown.

Does the .NET scaffolding enforce EF Core entity configuration and FluentValidation?

Yes, the scaffolding enforces EF Core configuration by generating entities paired with IEntityTypeConfiguration and highlights migration creation. It also applies FluentValidation and ValidationFilter wiring to ensure production-grade validation conventions.

What's the best way to scaffold a Modular Monolith module in .NET?

The best way to scaffold a Modular Monolith module is to generate module-scoped DbContext setup, DI registration, endpoint grouping, and isolated schema defaults. This ensures proper module isolation and consistent architectural boundaries across the monolith.

How do integration tests handle dependency injection replacement in .NET scaffolding?

Integration tests handle dependency injection replacement by using WebApplicationFactory combined with Testcontainers. This approach verifies API behavior including global exception handling, pagination constraints, and OpenAPI metadata during the integration testing process.