dependency-graph-generator

Generate module dependency graphs with circular dependency detection and coupling metrics

509 stars

Best use case

dependency-graph-generator is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Generate module dependency graphs with circular dependency detection and coupling metrics

Teams using dependency-graph-generator should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/dependency-graph-generator/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/specializations/software-architecture/skills/dependency-graph-generator/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/dependency-graph-generator/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How dependency-graph-generator Compares

Feature / Agentdependency-graph-generatorStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Generate module dependency graphs with circular dependency detection and coupling metrics

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 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
      }
    }
  }
}
```

Related Skills

graphql

509
from a5c-ai/babysitter

GraphQL schema design, resolvers, directives, subscriptions, and best practices for API development.

typography-calculator

509
from a5c-ai/babysitter

Calculate typography scales, metrics, and responsive font sizing

color-palette-generator

509
from a5c-ai/babysitter

Generate accessible color palettes with WCAG compliance

tracing-schema-generator

509
from a5c-ai/babysitter

Generate distributed tracing schemas for OpenTelemetry with Jaeger/Zipkin integration

metrics-schema-generator

509
from a5c-ai/babysitter

Generate metrics schemas for Prometheus, OpenTelemetry, and Grafana dashboards

log-schema-generator

509
from a5c-ai/babysitter

Generate structured logging schemas with correlation ID patterns and ELK/Splunk integration

load-test-generator

509
from a5c-ai/babysitter

Generate load test scripts for k6, Locust, and Gatling from OpenAPI specs

graphviz-renderer

509
from a5c-ai/babysitter

Render Graphviz DOT graphs to images with multiple layout algorithms

graphql-schema-generator

509
from a5c-ai/babysitter

Generate GraphQL schemas from data models with resolver stubs and federation support

docs-site-generator

509
from a5c-ai/babysitter

Generate documentation sites using Docusaurus, MkDocs, or VuePress

dashboard-generator

509
from a5c-ai/babysitter

Generate monitoring dashboards for Grafana and DataDog with alert integration

c4-diagram-generator

509
from a5c-ai/babysitter

Specialized skill for generating C4 model architecture diagrams. Supports Structurizr DSL, PlantUML, and Mermaid formats with multi-level abstraction (Context, Container, Component, Code).