Install
$ agentstack add skill-burakdmir-abp-skills-abp-dependency-rules ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
ABP Framework — Dependency Rules
ABP v10.4 layer dependency guardrails.
Trigger
"ABP layer architecture", "dependency rules", "layer dependency", "project references", "where is DbContext".
Principles
- Domain logic does not depend on infrastructure (no DbContext in Domain/Application)
- Use abstractions (interfaces)
- Upper layer → lower layer (never the reverse)
- Data access through the repository
Layers & References
Domain.Shared → Domain → Application.Contracts → Application → HttpApi → Host
↑ EntityFrameworkCore/MongoDB (only Host references it)
| Project | References | |---|---| | Domain.Shared | — | | Domain | Domain.Shared | | Application.Contracts | Domain.Shared | | Application | Domain, Contracts | | EF Core/MongoDB | Domain | | HttpApi | Contracts |
❌ / ✅
// ❌ DbContext in Application / ❌ concrete AppService in HttpApi / ❌ Domain → AppService
private readonly MyDbContext _db; // ❌
private readonly BookAppService _svc; // ❌ use the interface
// ✅
private readonly IBookRepository _repo; // App/Domain
private readonly IBookAppService _svc; // Controller
Repository: interface → Domain, impl → EfCoreRepository / MongoDbRepository (Data layer).
Common Violations
| Violation | Solution | |---|---| | DbContext in Application | Repository | | Returning entity as DTO | Map to a DTO | | IQueryable in interface | Return a concrete type | | App service call across modules | Event/domain |
Related
- [Framework](../abp-framework/SKILL.md) · [DDD](../abp-ddd/SKILL.md) · [EF Core](../abp-efcore/SKILL.md) · [Modularity](../abp-modularity/SKILL.md) · [Development Flow](../abp-development-flow/SKILL.md)
- ABP Docs: https://abp.io/docs/latest/framework/architecture/best-practices
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: burakdmir
- Source: burakdmir/abp-skills
- License: MIT
- Homepage: https://abp.io/docs/latest
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.