dependency-boundary-check

Detect dependency boundary violations and coupling risks in codebases.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/silvio-l/copilot-skills --skill dependency-boundary-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dependency-boundary-check
Source: https://github.com/silvio-l/copilot-skills/tree/main/dependency-boundary-check
Command: npx skills add https://github.com/silvio-l/copilot-skills --skill dependency-boundary-check

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill makes architectural dependency problems visible early by detecting forbidden layer directions, cyclic coupling, shared-abstraction misuse, and infrastructure leakage so teams can fix them before the architecture erodes.

Core Features & Use Cases

  • Observed Dependencies: Enumerates module, package, and layer-level dependencies and their directions.
  • Violation & Coupling Detection: Flags forbidden layer directions, cycles, implicit coupling, and inappropriate shared code usage.
  • Practical Use Case: Run against a repository or pull request to identify newly introduced boundary violations, UI or delivery code carrying domain decisions, and recommended corrective actions prior to merge.

Quick Start

Run a dependency boundary analysis on the target repository or pull request and produce observed dependencies, boundary violations, coupling risks, recommended corrections, and minimal immediate actions.

Frequently Asked Questions about dependency-boundary-check

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

FAQPage Schema
How do I detect architecture boundary violations in my codebase?

To detect architecture boundary violations, analyze source trees and module import graphs to surface forbidden layer directions, cyclic coupling, and infrastructure leakage into domain or UI layers. This produces a structured report of observed dependencies and coupling risks.

What causes cyclic coupling and infrastructure leakage between software layers?

Cyclic coupling and infrastructure leakage occur when modules bypass intended layering constraints, allowing forbidden dependency directions or shared-abstraction misuse. Analyzing change diffs and import graphs identifies these inappropriate shared code usages before architecture erodes.

Can I check a pull request for newly introduced dependency violations before merge?

Yes, you can run a dependency boundary analysis against a pull request to identify newly introduced boundary violations, UI or delivery code carrying domain decisions, and recommended corrective actions prior to merge.

What's the best way to find forbidden layer directions in a module import graph?

The best way to find forbidden layer directions is by analyzing the module import graph to enumerate package and layer-level dependencies, flagging implicit coupling and inappropriate shared code usage that violate architectural boundaries.

How do I get prioritized recommendations for fixing coupling risks in my repository?

To get prioritized recommendations for fixing coupling risks, run a dependency boundary analysis on the target repository, which outputs a structured report including observed dependencies, identified violations, and minimal immediate actions for architects and reviewers.