architecture-review

Audit C# solutions for layering violations and dependency issues.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/darylmcd/Roslyn-Backed-MCP --skill architecture-review-darylmcd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture-review
Source: https://github.com/darylmcd/Roslyn-Backed-MCP/tree/main/skills/architecture-review
Command: npx skills add https://github.com/darylmcd/Roslyn-Backed-MCP --skill architecture-review-darylmcd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Audit and verify architecture by identifying layering violations, DIP breaches, and cross-layer leaks in a C# solution, producing actionable remediation guidance.

Core Features & Use Cases

  • Detect layering violations and project-namespace cycles across a solution.
  • Identify DIP violations and improper downward references to enforce clean boundaries.
  • Produce a prioritized, evidence-backed violations report with file/line references.

Quick Start

Load a solution into the Roslyn MCP server and run the architecture-review skill to generate a layered-architecture report.

Frequently Asked Questions about architecture-review

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

FAQPage Schema
How do I detect layering violations and dependency cycles in a C# solution?

Detect layering violations and dependency cycles in a C# solution by loading the workspace into a Roslyn MCP server and running an architecture audit. The audit generates project- and namespace-graphs to surface improper references and structural breaches.

What is a Dependency Inversion Principle violation in C# architecture?

A Dependency Inversion Principle violation in C# architecture occurs when high-level modules directly depend on low-level modules instead of abstractions. The audit identifies these improper downward references and cross-layer leaks to enforce clean architectural boundaries.

Can I scope an architecture audit to a specific project or namespace within a solution?

Yes, you can scope an architecture audit to a specific project or namespace within a multi-project solution. This focuses the dependency graph analysis and cycle detection on targeted code areas rather than evaluating the entire solution graph.

How do I find cross-layer leaks and improper references using Roslyn?

Find cross-layer leaks and improper references using Roslyn by leveraging the MCP APIs to load workspaces and generate dependency graphs. The audit identifies symbol-level leaks and produces an evidence-backed report with file and line references.

What's the best way to audit a multi-project C# solution for clean architecture?

The best way to audit a multi-project C# solution for clean architecture is running an automated analysis that checks for layering breaches, DIP violations, and composition root issues. This produces a prioritized report with actionable remediation guidance.

Does the architecture audit report include file and line references for DIP violations?

Yes, the architecture audit report includes file and line references for DIP violations. It produces a prioritized, evidence-backed report that traces symbol-level leaks and structural breaches directly to their source locations for actionable remediation.