N8n cli debug

From 8Dvibes/n8n-cli · View interactive version

N8n cli debug is an AI agent skill from the GitHub repository 8Dvibes/n8n-cli. Analyze failed n8n executions and suggest fixes. Pulls error logs, groups by pattern, and diagnoses root causes. NOT replay -- use /n8n-cli-replay to re-run a specific failure. Use when debugging workflow errors.

How to use this skill

Skill file

/n8n-debug — n8n Execution Debugger

Analyze failed executions and suggest fixes using n8n-cli.

Arguments

Procedure

Step 1: Gather Failures

# All recent errors
n8n-cli executions list --status error --limit 20 --json

# Or for a specific workflow
n8n-cli executions list --workflow-id <ID> --status error --limit 20 --json

Step 2: Analyze Each Failure

For each failed execution, run:

n8n-cli executions get <execution-id> --json

Extract from the JSON:

Step 3: Pattern Recognition

Group errors by:

  1. Same workflow — recurring failure pattern
  2. Same node type — systemic node configuration issue
  3. Same error message — common root cause

Step 4: Suggest Fixes

Apply these known n8n patterns when diagnosing:

IF Node "Cannot read properties of undefined (reading 'caseSensitive')"
Execute Workflow "No information about the workflow to execute found"
Slack "Node does not have any credentials set for slackOAuth2Api"
Agent node expressions showing as literal text
JSON Parser "A Model sub-node must be connected"
Gmail reply not threading
Slack message data missing

Output Format

## n8n Debug Report

### Error Pattern: [description]
Affected: [workflow name(s)]
Count: N failures in last 24h
Node: [failing node name and type]
Error: [error message]

**Root Cause:** [analysis]
**Fix:** [specific steps]

---
[repeat for each pattern]
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.