scaffolding

Generate .NET feature slices with endpoints, validation, EF Core, and integration tests.

1|Updated Apr 28, 2026
One-click install
npx skills add https://github.com/Trossitec/dotnet-claude-kit --skill scaffolding-trossitec
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffolding
Source: https://github.com/Trossitec/dotnet-claude-kit/tree/main/skills/scaffolding
Command: npx skills add https://github.com/Trossitec/dotnet-claude-kit --skill scaffolding-trossitec

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates slow, error-prone manual setup when building new .NET 10/C# 14 features by generating a complete vertical slice (endpoints, handlers, validation, EF configuration, and integration tests) that matches your chosen architecture and existing conventions.

Core Features & Use Cases

  • Architecture-aware scaffolding: Generates feature code in the correct style for VSA, Clean Architecture, DDD, or Modular Monolith, and prompts for the architecture when unknown.
  • Production-ready scaffolds with guardrails: Enforces a mandatory checklist including Result pattern, CancellationToken usage, FluentValidation + ValidationFilter wiring, OpenAPI metadata, pagination, and a verified global exception handler.
  • End-to-end integration testing by default: Creates an integration test using WebApplicationFactory + Testcontainers, including DI-safe DbContext option replacement patterns.
  • Scaffolded artifacts that stay consistent with your codebase: Detects naming and folder conventions (e.g., *Handler, *Service, *Endpoint) and matches access modifiers and structure.
  • Use cases: “scaffold” a new endpoint, “add feature” with full plumbing, “new entity” with EF configuration + migrations, or “scaffold test” for an operation.

Quick Start

Use the scaffolding Skill to generate a complete create-feature vertical slice for your chosen architecture by telling it: "Scaffold a new Orders > CreateOrder feature with validation, Result-based endpoints, OpenAPI metadata, EF Core configuration, and an integration test using WebApplicationFactory and Testcontainers."

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 EF Core and FluentValidation?

You can scaffold a complete .NET feature slice by generating endpoints, commands, handlers, EF Core entity configurations, FluentValidation filters, and WebApplicationFactory integration tests simultaneously. The scaffolding enforces the Result pattern, CancellationToken propagation, and OpenAPI metadata across VSA, Clean Architecture, DDD, or Modular Monolith styles.

What is the best way to generate integration tests for .NET APIs using Testcontainers?

The best way to generate integration tests using Testcontainers is to scaffold a complete .NET feature slice. This automatically creates WebApplicationFactory-based tests with DI-safe DbContext replacement patterns, verifying global error handling and connection strings without manual setup.

Does this scaffolding tool support both Clean Architecture and Vertical Slice Architecture in C#?

Yes, the scaffolding supports Clean Architecture, Vertical Slice Architecture, DDD, and Modular Monolith patterns in C#. It detects existing naming and folder conventions to match access modifiers and structure, or prompts for the architecture when unknown to ensure consistent feature generation.

How do I add a new entity with EF Core configuration and migrations automatically?

To add a new entity with EF Core configuration automatically, use the scaffolding tool to generate the entity, EF Core mapping, endpoints, and validation plumbing in one operation. It detects existing folder conventions and applies the correct access modifiers for your chosen architecture.

Can I enforce the Result pattern and CancellationToken propagation when creating new .NET endpoints?

Yes, the scaffolding enforces the Result pattern and CancellationToken propagation when creating new .NET endpoints. It applies a mandatory checklist including Result-based APIs, FluentValidation with ValidationFilter wiring, and verified global exception handling across all generated feature slices.

What limitations should I expect when generating C# 14 feature slices automatically?

When generating C# 14 feature slices automatically, the scaffolding requires a compatible .NET 10 environment and relies on detecting existing conventions for accurate structure matching. It focuses on VSA, Clean Architecture, DDD, and Modular Monolith, and prompts for architecture details if your project conventions are unknown.