N8n cli deps

From 8Dvibes/n8n-cli · View interactive version

N8n cli deps is an AI agent skill from the GitHub repository 8Dvibes/n8n-cli. Map n8n workflow dependencies as a graph. Shows sub-workflow calls, credential refs, and webhook URLs as tree, mermaid, or JSON. Use when understanding interconnections before making changes.

How to use this skill

Skill file

/n8n-cli-deps — Workflow Dependency Graph

Build and visualize the dependency graph across all workflows in an n8n instance.

Procedure

  1. Fetch all workflows:
  1. Extract dependencies for each workflow:
  1. Build the graph in memory:
  1. Render in the format the user asked for (default: tree). Options:

Tree format (default)

[Workflow A] (active)
├── calls → [Workflow B]
├── calls → [Workflow C]
├── uses → [Stripe API credential]
├── uses → [Slack OAuth credential]
├── exposes → POST /webhook/foo
└── calls out → api.stripe.com, hooks.slack.com

[Workflow B] (inactive)
└── ...

Mermaid format

graph LR
  WF_A[Workflow A] -->|sub-workflow| WF_B[Workflow B]
  WF_A -->|sub-workflow| WF_C[Workflow C]
  WF_A -->|credential| CRED_STRIPE[Stripe API]
  WF_A -->|webhook| HOOK_FOO[POST /webhook/foo]

JSON format

{
  "workflows": [...],
  "credentials": [...],
  "webhooks": [...],
  "edges": [
    {"from": "wf_id_a", "to": "wf_id_b", "type": "sub_workflow"},
    {"from": "wf_id_a", "to": "cred_stripe", "type": "credential"},
    ...
  ]
}

Output format

If the user asks for a "map" or "diagram", default to mermaid. If they ask "show me what depends on X", do a single-workflow tree rooted at X.

Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.