# abp-dependency-rules

> Claude/Codex skill by [@abpframework](https://omgskills.com/library/abpframework/index.md) · 14k stars · Updated 2026-11-01

ABP project layer dependency rules - which projects can reference which, domain/application/infrastructure separation, cross-layer violations to avoid. Use when reviewing project structure, adding new project references, or checking if a dependency direction is correct.

Tags: abp, angular, architecture, aspnet, aspnet-core, aspnetcore, blazor, c-sharp, csharp, domain-driven-design, dotnet-core, framework, modular-monolith, multi-tenancy, saas

## Install

```sh
git clone https://github.com/abpframework/abp /tmp/abp && ln -s /tmp/abp/.claude/skills/abp-dependency-rules ~/.claude/skills/abp-dependency-rules
```

## From README

ABP Dependency Rules Core Principles (All Templates) These principles apply regardless of solution structure: Domain logic never depends on infrastructure (no DbContext in domain/application) Use abstractions (interfaces) for dependencies Higher layers depend on lower layers, never the reverse Data access through repositories, not direct DbContext Layered Template Structure Note: This section applies to layered templates (app, module). Single-layer and microservice templates have different structures.

## Links

- HTML page: https://omgskills.com/library/abpframework/abp/dot-claude/skills/abp-dependency-rules/
- GitHub: https://github.com/abpframework/abp
- Author: [@abpframework](https://omgskills.com/library/abpframework/index.md)

## More from this repo

- [abp-angular](https://omgskills.com/library/abpframework/abp/dot-claude/skills/abp-angular/index.md) — ABP Angular UI patterns - generate-proxy, ListService, PermissionGuard, abpLocalization pipe, ConfirmationService,...
   - [@abpframework](https://omgskills.com/library/abpframework/index.md) · 14k stars
- [abp-app-nolayers](https://omgskills.com/library/abpframework/abp/dot-claude/skills/abp-app-nolayers/index.md) — ABP Single-Layer (No-Layers / nolayers) application template - single project structure, feature-based file...
   - [@abpframework](https://omgskills.com/library/abpframework/index.md) · 14k stars
- [abp-application-layer](https://omgskills.com/library/abpframework/abp/dot-claude/skills/abp-application-layer/index.md) — ABP Application Services, DTOs, CRUD service, object mapping (Mapperly/AutoMapper), validation, error handling.
   - [@abpframework](https://omgskills.com/library/abpframework/index.md) · 14k stars
