# Dotnet Pilot - .NET Architecture & Code Review

> EF Core migration review, DI verification and clean-architecture checks for .NET 10, with optional Roslyn MCP checks.

Dotnet Pilot - .NET Architecture & Code Review is a free AI agent skill pack (several skills in one listing) on Agensi by Nick Zdanovych, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Nick Zdanovych](https://www.agensi.io/creators/nick-zdanovych)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-28
- Security: scan passed (2026-10-17); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/dotnet-pilot-net-architecture-code-review
- Tags: api, dotnet, csharp, clean-architecture, ef-core, aspnet-core

## About this skill

Maintaining a clean .NET architecture while shipping features often leads to dependency drift, messy DI wiring and risky EF Core migrations. DotnetPilot gives your coding agent .NET 10 checklists, pattern guides and specialist reviewer playbooks for ASP.NET Core and EF Core solutions.

### What it does
- **Architecture review** checks layer boundaries and project references against clean-architecture rules. With the optional Roslyn MCP server it inspects the compiled solution; without it, the agents read the .csproj files and search the code.
- **DI verification** finds constructor-injected types that have no registration.
- **EF Core migration review** covers the right DbContext, CLI-generated migrations, and reading Up() for data loss before anything is applied.
- **Pattern guides** for Clean Architecture, Vertical Slice, DDD, Polly v8 resilience, OpenTelemetry, Serilog, authentication, caching and error handling. The agent follows them when writing code; they do not configure your project on their own.
- **Convention detection**: a protocol that reads your existing naming, folder structure and DI style before new code is generated.

### How it works
1. **Initialize** by scanning the `*.sln` / `*.slnx` file to map projects and frameworks.
2. **Learn** existing project conventions so new code matches the current style.
3. **Review** architecture or implementation with the specialist agent playbooks for DI, auth, EF Core, performance and security.
4. **Generate** endpoints, migrations or tests using the documented patterns.

### Real output
`examples/sample-report.md` shows output from two Roslyn-backed checks on a small synthetic solution: "Application must not reference Infrastructure", and a missing `IOrderRepository` registration, both found without running the app.

### Frameworks & tools
Written for .NET 10 and C# 14. Covers ASP.NET Core, EF Core, Polly v8, Serilog, OpenTelemetry, xUnit and NSubstitute.

### Use cases
- Reviewing a solution for layer violations and missing DI registrations.
- Planning and reviewing EF Core migrations, including column renames, for data loss.
- Wiring JWT bearer or OIDC authentication with the right middleware order.
- Splitting a controller into Vertical Slices, or applying C# 12-14 features (primary constructors, collection expressions) to .NET 10 code.

### Known limitations
- .NET only: needs a .sln, .slnx or .csproj. Not for other languages.
- Roslyn-backed checks need the separate `dnp-roslyn` MCP server (.NET 10 SDK). Agensi does not host it; setup is in docs/MCP-SETUP.md. Everything else works without it.
- Tested only in Claude Code, and only partly. Cursor, GitHub Copilot, Codex CLI and Gemini CLI are untested (see docs/COMPATIBILITY.md).
- Not tested on .NET 6 or 8 codebases.
- The review workflow, hooks and statusline are not included; they need the full Claude Code plugin.

## Requires

- .NET 10 SDK
- Git
- Roslyn MCP
- Optional: Dotnet Pilot Roslyn MCP

dotnet-pilot-mcp-roslyn adds Roslyn-backed checks.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Dotnet Pilot - .NET Architecture & Code Review skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Which versions of .NET and C# does this skill support?

The skills are written for .NET 10 and C# 14. Older versions such as .NET 6 and 8 have not been tested.

### How does DotnetPilot ensure architectural integrity compared to a standard LLM prompt?

It gives the agent explicit layer rules and reviewer checklists, and with the optional Roslyn MCP server the agent can ask the compiler for layer violations and missing DI registrations instead of guessing. It has not been benchmarked against plain prompting; examples/sample-report.md shows real output from the Roslyn checks.

### What is included in the DotnetPilot Agensi package?

15 pattern skills, 9 specialist agent playbooks, 12 workflow command playbooks, ADRs and knowledge files, project templates, Roslyn MCP config examples and setup docs, and a sample report. Hooks, mods, the review workflow and the statusline from the full Claude Code plugin are not included.

### Can this skill adapt to my team's specific coding conventions and project structure?

It includes a convention-learner protocol that has the agent read your existing naming, folders, DI registration and test setup before generating code. How closely the output matches depends on your agent and codebase.

### Are there any specific environment requirements to run this skill?

The skills need a .NET solution (.sln, .slnx or .csproj) and an agent that can read your files. The optional Roslyn checks also need the .NET 10 SDK and the separate dnp-roslyn MCP server; Agensi does not host it (see docs/MCP-SETUP.md). Tested only in Claude Code, and only partly.

### Can I use this skill to refactor an older .NET 6 codebase?

The pattern guides, such as Vertical Slice and C# 12-14 features, may help, but they target .NET 10 and have not been tested against .NET 6 code. Review any suggested changes against your target framework.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
