dependency-graph-generator
Generate module dependency graphs with circular dependency detection and coupling metrics
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
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/dependency-graph-generator/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How dependency-graph-generator Compares
| Feature / Agent | dependency-graph-generator | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/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
GraphQL schema design, resolvers, directives, subscriptions, and best practices for API development.
typography-calculator
Calculate typography scales, metrics, and responsive font sizing
color-palette-generator
Generate accessible color palettes with WCAG compliance
tracing-schema-generator
Generate distributed tracing schemas for OpenTelemetry with Jaeger/Zipkin integration
metrics-schema-generator
Generate metrics schemas for Prometheus, OpenTelemetry, and Grafana dashboards
log-schema-generator
Generate structured logging schemas with correlation ID patterns and ELK/Splunk integration
load-test-generator
Generate load test scripts for k6, Locust, and Gatling from OpenAPI specs
graphviz-renderer
Render Graphviz DOT graphs to images with multiple layout algorithms
graphql-schema-generator
Generate GraphQL schemas from data models with resolver stubs and federation support
docs-site-generator
Generate documentation sites using Docusaurus, MkDocs, or VuePress
dashboard-generator
Generate monitoring dashboards for Grafana and DataDog with alert integration
c4-diagram-generator
Specialized skill for generating C4 model architecture diagrams. Supports Structurizr DSL, PlantUML, and Mermaid formats with multi-level abstraction (Context, Container, Component, Code).