Skip to content
Back to skills

Dependency Graph Generator

ASecurity

Generate module dependency graphs with circular dependency detection and coupling metrics

  • 1,760 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
ai-agentsjavascriptjavabashnoderefactoring

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add a5c-ai/babysitter --skill dependency-graph-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dependency Graph Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dependency Graph Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/a5c-ai-dependency-graph-generator-babysitter/badge)](https://www.skillsdirectory.com/skills/a5c-ai-dependency-graph-generator-babysitter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dependency-graph-generator
description: Generate module dependency graphs with circular dependency detection and coupling metrics
allowed-tools:
  - Bash
  - Read
  - Write
  - Glob
  - Grep
graph:
  domains: [domain:software-engineering]
  specializations: [specialization:software-architecture]
  skillAreas: [skill-area:code-analysis-linting]
  roles: [role:architect, role:tech-lead]
  workflows: [workflow:technical-debt-reduction]
  topics: [topic:design-patterns]

---

# Dependency Graph Generator Skill

## Overview

Generates module dependency graphs with circular dependency identification, coupling metrics calculation, and visualization output in Graphviz or D3 formats.

## Capabilities

- Generate module dependency graphs
- Identify circular dependencies
- Calculate coupling metrics (afferent, efferent)
- Calculate instability metrics
- Visualize dependencies (Graphviz, D3)
- Package/module level analysis
- External dependency tracking

## Target Processes

- microservices-decomposition
- refactoring-plan
- migration-strategy

## Input Schema

```json
{
  "type": "object",
  "required": ["entryPoints"],
  "properties": {
    "entryPoints": {
      "type": "array",
      "items": { "type": "string" },
      "description": "Entry point files or directories"
    },
    "outputFormat": {
      "type": "string",
      "enum": ["dot", "json", "d3", "mermaid"],
      "default": "dot"
    },
    "outputPath": {
      "type": "string",
      "description": "Output file path"
    },
    "options": {
      "type": "object",
      "properties": {
        "depth": {
          "type": "number",
          "default": -1,
          "description": "Maximum depth (-1 for unlimited)"
        },
        "includeExternal": {
          "type": "boolean",
          "default": false
        },
        "groupByPackage": {
          "type": "boolean",
          "default": true
        },
        "detectCircular": {
          "type": "boolean",
          "default": true
        }
      }
    }
  }
}
```

## Output Schema

```json
{
  "type": "object",
  "properties": {
    "graph": {
      "type": "object",
      "properties": {
        "nodes": { "type": "array" },
        "edges": { "type": "array" }
      }
    },
    "circularDependencies": {
      "type": "array",
      "items": {
        "type": "array",
        "items": { "type": "string" }
      }
    },
    "metrics": {
      "type": "object",
      "properties": {
        "totalModules": { "type": "number" },
        "totalDependencies": { "type": "number" },
        "averageCoupling": { "type": "number" }
      }
    },
    "outputPath": {
      "type": "string"
    }
  }
}
```

## Usage Example

```javascript
{
  kind: 'skill',
  skill: {
    name: 'dependency-graph-generator',
    context: {
      entryPoints: ['src/index.ts'],
      outputFormat: 'dot',
      outputPath: 'docs/dependencies.dot',
      options: {
        groupByPackage: true,
        detectCircular: true
      }
    }
  }
}
```

Files in this skill

  • README.md399 B
  • SKILL.md2.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…