architecture-guard

Detect .NET architectural violations across MarketNest layers and modules.

Updated Apr 24, 2026
One-click install
npx skills add https://github.com/nhahoang1909/MarketNest --skill architecture-guard-nhahoang1909
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture-guard
Source: https://github.com/nhahoang1909/MarketNest/tree/main/.claude/skills/architecture-guard
Command: npx skills add https://github.com/nhahoang1909/MarketNest --skill architecture-guard-nhahoang1909

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scan the MarketNest codebase to enforce Clean Architecture and DDD boundaries by preventing domain references to infrastructure, avoiding cross-module DB access, and ensuring module communication occurs through events/interfaces.

Core Features & Use Cases

  • Enforces layer boundaries and module isolation across all MarketNest modules (Identity, Catalog, Cart, Orders, Payments, etc.)
  • Detects cross-module dependencies and direct DB access from Domain/Application layers
  • Validates that module communication uses domain events or defined interfaces rather than concrete types
  • Assists architecture reviews by highlighting violations and suggesting fixes

Quick Start

Upload your .cs or .csproj files or ask about module structure to run an architecture-guard scan.

Frequently Asked Questions about architecture-guard

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

FAQPage Schema
How do I check for clean architecture dependency violations in a .NET project?

To check for clean architecture dependency violations in a .NET project, upload your .cs or .csproj files for an automated scan that reports cross-layer references and structural blockers.

How do I prevent cross-module database access in a DDD codebase?

Preventing cross-module database access in a DDD codebase requires scanning Domain and Application layers to detect improper direct references, ensuring module isolation through structured reporting.

Does NetArchTest work with MediatR to enforce module isolation?

NetArchTest works with MediatR to enforce module isolation by validating that module communication uses domain events or defined interfaces rather than concrete types across .NET layers.

What is the best way to validate domain events for inter-module communication?

The best way to validate domain events for inter-module communication is scanning the codebase to ensure interactions occur through events or interfaces, preventing direct concrete dependencies.

Can I scan multiple .NET modules like Identity, Catalog, and Orders for architectural issues?

You can scan multiple .NET modules like Identity, Catalog, and Orders for architectural issues by uploading project files to receive structured guidance on dependency violations and fixes.