Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Analyze project dependencies and evaluate architectural health. Trigger with "analyze dependencies", "detect circular dependencies", "architecture issues?", "check module coupling", "find layer violations". Generates dependency matrix, fan-in/fan-out analysis, and prioritized improvement suggestions.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 105% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -12% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -8% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -18% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 1% | 0% |
Analyzes your project's dependencies and checks architecture health.
bash/dependency-analysis [options]
--visual: Visually display dependencies--circular: Detect only circular dependencies--depth <number>: Specify analysis depth (default: 3)--focus <path>: Focus on specific module/directorybash# Analyze dependencies for entire project /dependency-analysis # Detect circular dependencies /dependency-analysis --circular # Detailed analysis of specific module /dependency-analysis --focus src/core --depth 5
Shows how modules connect to each other:
textDependency Analysis Report ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📊 Metrics Overview ├─ Total modules: 42 ├─ Average dependencies: 3.2 ├─ Maximum dependency depth: 5 └─ Circular dependencies: 2 detected ⚠️ Architecture Violations ├─ [HIGH] src/domain/user.js → src/infra/database.js │ └─ Domain layer directly depends on infrastructure layer ├─ [MED] src/api/auth.js ⟲ src/services/user.js │ └─ Circular dependency detected └─ [LOW] src/utils/helper.js → 12 modules └─ Excessive fan-out ✅ Recommended Actions 1. Introduce UserRepository interface 2. Redesign authentication service responsibilities 3. Split helper functions by functionality 📈 Dependency Graph [Visual dependency diagram displayed in ASCII art]
bash# Automatic CI/CD checks /dependency-analysis --circular --fail-on-violation # Check against architecture rules /dependency-analysis --rules .architecture-rules.yml # See how dependencies changed /dependency-analysis --compare HEAD~10
yamlrules: - name: "Domain Independence" source: "src/domain/**" forbidden: ["src/infra/**", "src/api/**"] - name: "API Layer Dependencies" source: "src/api/**" allowed: ["src/domain/**", "src/application/**"] forbidden: ["src/infra/**"] thresholds: max_dependencies: 8 max_depth: 4 coupling_threshold: 0.7 ignore: - "**/test/**" - "**/mocks/**"
madge: Shows JavaScript/TypeScript dependencies visuallydep-cruiser: Checks dependency rulesnx: Manages monorepo dependenciesplato: Analyzes complexity and dependencies togetherbash# Check dependencies with package.json cat package.json /analyze-dependencies "Find dependency issues in this project" # Deep dive into a specific module ls -la src/core/ /analyze-dependencies --focus src/core "Check the core module's dependencies in detail" # Compare design vs reality cat docs/architecture.md /analyze-dependencies --visual "Does our implementation match the architecture docs?"
Other measured skills in the registry, with their headline benchmark lift.