abp-dependency-rules

Enforce ABP layer dependency rules across Domain, Application, HttpApi, and Infrastructure projects.

1|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/afonsoft/VideoChat --skill abp-dependency-rules-afonsoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: abp-dependency-rules
Source: https://github.com/afonsoft/VideoChat/tree/main/.agents/skills/abp-dependency-rules
Command: npx skills add https://github.com/afonsoft/VideoChat --skill abp-dependency-rules-afonsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

ABP project layer dependency rules prevent cross-layer violations and enforce clean separation between Domain, Application, HttpApi, and Infrastructure.

Core Features & Use Cases

  • Enforces domain logic independence from infrastructure
  • Uses repository abstractions and explicit dependency directions
  • Provides guidance during reviews, refactors, and new references across projects

Quick Start

Review your ABP solution against the layered dependency direction table to ensure correct references and guardrails.

Frequently Asked Questions about abp-dependency-rules

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

FAQPage Schema
How do I prevent ABP domain layer dependencies on infrastructure projects?

Prevent ABP domain layer dependencies on infrastructure by enforcing strict layer dependency rules that ensure domain logic relies only on repository abstractions and never directly references infrastructure projects, maintaining clean separation during solution reviews and refactors.

What are the correct dependency directions for ABP layered architecture projects?

The correct ABP layered architecture dependency directions require the Domain layer to remain independent, Application to depend on Domain, HttpApi to depend on Application, and Infrastructure to implement abstractions without leaking dependencies into domain logic.

How do I validate project references when adding new dependencies in an ABP solution?

Validate project references when adding new dependencies in an ABP solution by checking the layered dependency direction table to ensure new references do not violate cross-layer rules, specifically preventing infrastructure dependencies in the domain layer.

Can I use repository abstractions to decouple domain logic from infrastructure in ABP?

Yes, you can use repository abstractions to decouple domain logic from infrastructure in ABP by defining repository interfaces in the domain layer and implementing them in the infrastructure layer, ensuring domain independence.

Why does my ABP application layer have cross-layer dependency violations during refactoring?

Your ABP application layer has cross-layer dependency violations during refactoring because explicit dependency directions between Domain, Application, HttpApi, and Infrastructure projects were not enforced, allowing incorrect project references to bypass clean separation guardrails.