dotnet-scaffold-architecture-tests

Generate a .NET architecture test scaffold enforcing layer dependencies and visibility.

8|1|Updated Feb 5, 2018
One-click install
npx skills add https://github.com/umbrella-libraries/Umbrella --skill dotnet-scaffold-architecture-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-scaffold-architecture-tests
Source: https://github.com/umbrella-libraries/Umbrella/tree/main/.ai-shared/skills/dotnet-scaffold-architecture-tests
Command: npx skills add https://github.com/umbrella-libraries/Umbrella --skill dotnet-scaffold-architecture-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffold architecture tests for .NET repositories by generating a ready-to-run test scaffold that enforces layer dependencies and visibility rules using Umbrella.Testing.Architecture and xUnit v3.

Core Features & Use Cases

  • Generates a Tests<AppNamespace>.Architecture.Tests project with a dotnet csproj aligned to existing repo conventions.
  • Provides anchor type discovery and guidance to wire Core.Domain, Core.Logic, Core.Data, and Web.* layers for architecture validation.
  • Supplies a runnable skeleton that demonstrates how to assert layer dependencies and symbol visibility, enabling consistent governance across solutions.

Quick Start

Run the scaffolding workflow to generate the architecture test project and wire anchor types for your .NET solution.

Frequently Asked Questions about dotnet-scaffold-architecture-tests

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

FAQPage Schema
How do I enforce layer dependencies in a .NET solution?

Enforcing layer dependencies in a .NET solution involves validating visibility and references across layers using architecture tests. This generates a deterministic test scaffold to assert that Core.Domain, Core.Logic, Core.Data, and Web.* layers follow standard structural rules.

What is the best way to scaffold architecture tests for .NET projects?

Scaffolding architecture tests for .NET projects is best handled by generating a ready-to-run test project with anchor-type wiring. This provides a runnable skeleton using xUnit v3 to assert layer dependencies and symbol visibility consistently across solutions.

Does this architecture test scaffold work with xUnit v3?

Yes, this architecture test scaffold works with xUnit v3 and uses Umbrella.Testing.Architecture. It generates a dotnet csproj aligned to existing repo conventions and supplies a runnable skeleton to validate layer dependencies and symbol visibility.

Can I use architecture testing on .NET repos that do not follow the Core.Domain to Web.* layer structure?

Architecture testing for .NET repos applies specifically to solutions following the Core.Domain to Core.Data to Core.Logic to Web.* layer structure. Repositories deviating from this standard Umbrella layer structure may not be compatible with the generated deterministic test scaffold.

How do I wire anchor types for .NET architecture validation?

Wiring anchor types for .NET architecture validation involves running a scaffolding workflow that generates a test project and discovers anchor types. This wires the Core.Domain, Core.Logic, Core.Data, and Web.* layers to enforce dependencies and symbol visibility.

Why do I need a deterministic test scaffold for .NET architecture enforcement?

A deterministic test scaffold for .NET architecture enforcement is needed to provide consistent governance across solutions. It supplies a ready-to-run skeleton that demonstrates how to assert layer dependencies and symbol visibility, preventing architectural drift over time.