Xpersona
D

dependency-graph

CLAWHUB · Unverified

Generates a Mermaid dependency graph showing import relationships between modules Skill: dependency-graph Owner: athola Summary: Generates a Mermaid dependency graph showing import relationships between modules Tags: latest:1.9.19 Version history: v1.9.19 | 2026-08-26T13:08:29.335Z | user Release v1.9.19 v1.9.17 | 2026-07-30T05:31:19.727Z | user Release v1.9.17 v1.9.16 | 2026-07-14T19:48:12.169Z | user Release v1.9.16 v1.9.15 | 2026-07-04T21:21:52.530Z | user Release v1.9.15 v1.9.14 | 2026-06-30T1

62
Rank
84
Safety
1.7k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17emme0e2m3cpf7k2jvp3a84984b8z9:nm-cartograph-dependency-graph
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-cartograph-dependency-graph/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

52,878 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: dependency-graph
description: |
  Generates a Mermaid dependency graph showing import relationships between modules
version: 1.9.8
triggers:
  - analyzing coupling
  - finding circular deps
  - or planning refactors
metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/cartograph", "emoji": "\ud83e\udd9e"}}
source: claude-night-market
source_plugin: cartograph
---

> **Night Market Skill** — ported from [claude-night-market/cartograph](https://github.com/athola/claude-night-market/tree/master/plugins/cartograph). For the full experience with agents, hooks, and commands, install the Claude Code plugin.


# Dependency Graph

Generate a Mermaid flowchart showing import and dependency
relationships between modules, packages, or plugins.

## When To Use

- Understanding what depends on what
- Finding circular dependencies
- Analyzing coupling between modules
- Planning refactoring by seeing dependency impact
- Answering "what breaks if I change this?"

## Workflow

### Step 1: Explore the Codebase

Dispatch the codebase explorer agent:

```
Agent(cartograph:codebase-explorer)
Prompt: Explore [scope] and return a structural model.
Focus on import statements and cross-module dependencies
for a dependency graph. Track both internal and external
imports.
```

### Step 2: Generate Mermaid Syntax

Transform the structural model into a Mermaid flowchart
with directed edges representing dependencies.

**Rules for dependency graphs**:

- Use `flowchart LR` (left-right) for dependency direction
- Each node is a module or package
- Edges point from dependent to dependency (A --> B means
  "A depends on B")
- Color-code by dependency type:
  - Default arrows for internal dependencies
  - Dotted arrows (`-.->`) for external/optional deps
  - Thick arrows (`==>`) for critical path dependencies
- Group into subgraphs by package/plugin
- If depth parameter given, limit transitive dependencies
- Highlight circular dependencies with red styling

**Example output**:

```mermaid
flowchart LR
    subgraph sanctum[Sanctum]
        commit[commit]
        pr_prep[pr_prep]
        workspace[workspace]
    end

    subgraph leyline[Leyline]
        git[git_platform]
        errors[error_patterns]
    end

    subgraph external[External]
        subprocess[subprocess]
        json[json]
    end

    commit --> git
    commit --> json
    pr_prep --> workspace
    pr_prep --> git
    workspace --> errors
    workspace -.-> subprocess
```

### Step 3: Render via MCP

Call the Mermaid Chart MCP to render:

```
mcp__claude_ai_Mermaid_Chart__validate_and_render_mermaid_diagram
  prompt: "Dependency graph of [scope]"
  mermaidCode: [generated syntax]
  diagramType: "flowchart"
  clientName: "claude-code"
```

If rendering fails, fix syntax and retry (max 2 retries).

### Step 4: Present Results

Show the rendered diagram with analysis notes:

- Total modules and dependency count
- Most-depended-on modules (high fan-in)
- Modu

_meta.json

{
  "ownerId": "kn7d107jg9jv602h9ytsegydq184a42s",
  "slug": "nm-cartograph-dependency-graph",
  "version": "1.9.19",
  "publishedAt": 1787749709335
}

skill-card.md

## Description:

Generates a Mermaid dependency graph showing import relationships between modules.

This skill is ready for commercial/non-commercial use.

## Publisher:

[athola](https://clawhub.ai/user/athola)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers use this skill to map module and package dependencies, identify circular dependencies, analyze coupling, and plan refactors.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Broad activation triggers may cause the skill to run during general refactoring or coupling-analysis requests.

Mitigation: Use the skill when repository dependency visualization is intended, and review the generated graph and analysis before relying on it.

Risk: Generated diagrams may be sent to a Mermaid rendering MCP.

Mitigation: Use the rendering step only when the repository structure being diagrammed is appropriate to share with the configured Mermaid rendering tool.

## Reference(s):

- [Cartograph source plugin](https://github.com/athola/claude-night-market/tree/master/plugins/cartograph)
- [ClawHub skill page](https://clawhub.ai/athola/skills/nm-cartograph-dependency-graph)

## Skill Output:

**Output Type(s):** [text, markdown, code, guidance]

**Output Format:** [Markdown with Mermaid flowchart code and analysis notes]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May include module counts, dependency counts, fan-in and fan-out notes, and circular-dependency findings.]

## Skill Version(s):

1.9.19 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to dependency-graph and adjacent AI workflows.