abp-dependency-rules — angular abp-dependency-rules, community, angular, ide skills, architecture, aspnet, aspnet-core, aspnetcore, blazor, c-sharp

v1.0.0

Sobre este Skill

Perfeito para Agentes ASP.NET Core que necessitam de arquitetura modular e aplicação de design orientado a domínio. 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.

# Core Topics

abpframework abpframework
[14.2k]
[3678]
Updated: 3/16/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 7/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution
Review Score
7/11
Quality Score
46
Canonical Locale
en
Detected Body Locale
en

Perfeito para Agentes ASP.NET Core que necessitam de arquitetura modular e aplicação de design orientado a domínio. 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.

Por que usar essa habilidade

Habilita os agentes a impor a separação da lógica de domínio da infraestrutura, utilizar abstrações para dependências e garantir que as camadas superiores dependam das camadas inferiores, tudo isso aproveitando o ASP.NET Core e as regras de dependência para soluções de software empresarial robustas.

Melhor para

Perfeito para Agentes ASP.NET Core que necessitam de arquitetura modular e aplicação de design orientado a domínio.

Casos de Uso Práticos for abp-dependency-rules

Aplicar princípios de design orientado a domínio em software empresarial
Implementar arquitetura modular com práticas recomendadas de opinião
Validar regras de dependência para estruturas de modelo em camadas

! Segurança e Limitações

  • Requer infraestrutura ASP.NET Core
  • Limitado a soluções de software empresarial
  • Dependente de abstrações e repositórios para acesso a dados

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The underlying skill quality score is below the review floor.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is abp-dependency-rules?

Perfeito para Agentes ASP.NET Core que necessitam de arquitetura modular e aplicação de design orientado a domínio. 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.

How do I install abp-dependency-rules?

Run the command: npx killer-skills add abpframework/abp/abp-dependency-rules. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for abp-dependency-rules?

Key use cases include: Aplicar princípios de design orientado a domínio em software empresarial, Implementar arquitetura modular com práticas recomendadas de opinião, Validar regras de dependência para estruturas de modelo em camadas.

Which IDEs are compatible with abp-dependency-rules?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for abp-dependency-rules?

Requer infraestrutura ASP.NET Core. Limitado a soluções de software empresarial. Dependente de abstrações e repositórios para acesso a dados.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add abpframework/abp/abp-dependency-rules. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use abp-dependency-rules immediately in the current project.

! Reference-Only Mode

This page remains useful for installation and reference, but Killer-Skills no longer treats it as a primary indexable landing page. Read the review above before relying on the upstream repository instructions.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

abp-dependency-rules

Install abp-dependency-rules, an AI agent skill for AI agent workflows and automation. Review the use cases, limitations, and setup path before rollout.

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

ABP Dependency Rules

Core Principles (All Templates)

These principles apply regardless of solution structure:

  1. Domain logic never depends on infrastructure (no DbContext in domain/application)
  2. Use abstractions (interfaces) for dependencies
  3. Higher layers depend on lower layers, never the reverse
  4. 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.

Domain.Shared    → Constants, enums, localization keys
       ↑
    Domain       → Entities, repository interfaces, domain services
       ↑
Application.Contracts → App service interfaces, DTOs
       ↑
  Application    → App service implementations
       ↑
   HttpApi       → REST controllers (optional)
       ↑
     Host        → Final application with DI and middleware

Layered Dependency Direction

ProjectCan ReferenceReferenced By
Domain.SharedNothingAll
DomainDomain.SharedApplication, Data layer
Application.ContractsDomain.SharedApplication, HttpApi, Clients
ApplicationDomain, ContractsHost
EntityFrameworkCore/MongoDBDomainHost only
HttpApiContracts onlyHost

Critical Rules

❌ Never Do

csharp
1// Application layer accessing DbContext directly 2public class BookAppService : ApplicationService 3{ 4 private readonly MyDbContext _dbContext; // ❌ WRONG 5} 6 7// Domain depending on application layer 8public class BookManager : DomainService 9{ 10 private readonly IBookAppService _appService; // ❌ WRONG 11} 12 13// HttpApi depending on Application implementation 14public class BookController : AbpController 15{ 16 private readonly BookAppService _bookAppService; // ❌ WRONG - Use interface 17}

✅ Always Do

csharp
1// Application layer using repository abstraction 2public class BookAppService : ApplicationService 3{ 4 private readonly IBookRepository _bookRepository; // ✅ CORRECT 5} 6 7// Domain service using domain abstractions 8public class BookManager : DomainService 9{ 10 private readonly IBookRepository _bookRepository; // ✅ CORRECT 11} 12 13// HttpApi depending on contracts only 14public class BookController : AbpController 15{ 16 private readonly IBookAppService _bookAppService; // ✅ CORRECT 17}

Repository Pattern Enforcement

Interface Location

csharp
1// In Domain project 2public interface IBookRepository : IRepository<Book, Guid> 3{ 4 Task<Book> FindByNameAsync(string name); 5}

Implementation Location

csharp
1// In EntityFrameworkCore project 2public class BookRepository : EfCoreRepository<MyDbContext, Book, Guid>, IBookRepository 3{ 4 // Implementation 5} 6 7// In MongoDB project 8public class BookRepository : MongoDbRepository<MyDbContext, Book, Guid>, IBookRepository 9{ 10 // Implementation 11}

Multi-Application Scenarios

When you have multiple applications (e.g., Admin + Public API):

Vertical Separation

MyProject.Admin.Application      - Admin-specific services
MyProject.Public.Application     - Public-specific services
MyProject.Domain                 - Shared domain (both reference this)

Rules

  • Admin and Public application layers MUST NOT reference each other
  • Share domain logic, not application logic
  • Each vertical can have its own DTOs even if similar

Enforcement Checklist (Layered Templates)

When adding a new feature:

  1. Entity changes? → Domain project
  2. Constants/enums? → Domain.Shared project
  3. Repository interface? → Domain project (only if custom queries needed)
  4. Repository implementation? → EntityFrameworkCore/MongoDB project
  5. DTOs and service interface? → Application.Contracts project
  6. Service implementation? → Application project
  7. API endpoint? → HttpApi project (if not using auto API controllers)

Common Violations to Watch

ViolationImpactFix
DbContext in ApplicationBreaks DB independenceUse repository
Entity in DTOExposes internalsMap to DTO
IQueryable in interfaceBreaks abstractionReturn concrete types
Cross-module app service callTight couplingUse events or domain

Habilidades Relacionadas

Looking for an alternative to abp-dependency-rules or another community skill for your workflow? Explore these related open-source skills.

Ver tudo

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

widget-generator

Logo of f
f

Gerar plugins de widgets personalizáveis para o sistema de feed do prompts.chat

flags

Logo of vercel
vercel

O Framework React

138.4k
0
Navegador

pr-review

Logo of pytorch
pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

98.6k
0
Desenvolvedor