- Home
- Skills
- APIs & Backend
- Dotnet Pilot - .NET Architecture & Code Review
More screenshots
Works with the AI Agents you already use
Dotnet Pilot - .NET Architecture & Code Review
EF Core migration review, DI verification and clean-architecture checks for .NET 10, with optional Roslyn MCP checks.
Free
Dotnet Pilot - .NET Architecture & Code Review
Example session with this skill installed
Check my solution for layer violations and missing DI registrations. The Roslyn MCP server is connected as roslyn.
- Read your context and instructions
- Compiled the dotnet pilot
Summary
Two defects found in a small synthetic Shop solution (4 projects, .NET SDK 10.0.402), using real dnp-roslyn 0.5.0 output. Both were found without running the app.
| Check | Result |
|---|---|
Architecture (check_architecture_violations, style clean) | 1 violation |
DI completeness (check_di_completeness) | 1 missing registration |
1. Architecture violation
{
"style": "clean",
"violations": [
{
"severity": "error",
"sourceProject": "Shop.Application",
"targetProject": "Shop.Infrastructure",
"rule": "Application must not reference Infrastructure"
}
],
"violationCount": 1
}
2. Missing DI registration
{
"missing": [
{ "interface": "IOrderRepository",
"consumedBy": [ { "type": "OrderService", "file": "Shop.Application/OrderService.cs", "line": 3 } ] }
]
}
GET /orders/{id} would fail at runtime when OrderService is resolved, because nothing registers IOrderRepository.
Next steps (reported, not applied without your approval)
- Remove the
Shop.Application->Shop.Infrastructureproject reference; the interface already lives in Domain. - Add
builder.Services.AddScoped<IOrderRepository, OrderRepository>();inShop.Api/Program.cs.
Sample on a synthetic solution, not a review of real code. Without the Roslyn server the agents fall back to reading .csproj files and Grep; that fallback was not run for this sample.
Connects securely to your tools. The creator never sees your data.
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
- Initialize by scanning the
*.sln/*.slnxfile to map projects and frameworks. - Learn existing project conventions so new code matches the current style.
- Review architecture or implementation with the specialist agent playbooks for DI, auth, EF Core, performance and security.
- 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-roslynMCP 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.
Needs a .sln, .slnx or .csproj. Written for .NET 10 / C# 14; .NET 6 and 8 untested. Roslyn checks need the separate dnp-roslyn server. Tested only in Claude Code (partly); Cursor, Copilot, Codex and Gemini untested. Hooks, review workflow and statusline are not included.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
1 use
Times used to date
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 1 month ago
- Free with an Agensi account
Requires