N8n cli monitor

From 8Dvibes/n8n-cli · View interactive version

N8n cli monitor is an AI agent skill from the GitHub repository 8Dvibes/n8n-cli. Poll n8n execution stream from the terminal and surface failures. Runs outside n8n as a CLI watcher. NOT a workflow -- use /n8n-cli-meta-monitor to build an in-n8n alerting workflow. Use when watching for errors live.

How to use this skill

Skill file

/n8n-monitor — n8n Execution Monitor

Watch the n8n execution stream and surface failures with context.

Arguments

Procedure

One-Shot Check

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

# For each error, get details
n8n-cli executions get <id> --json

Analyze and present:

Continuous Watch Mode

Poll every 60 seconds:

while true; do
    # Get errors from last 2 minutes
    n8n-cli executions list --status error --limit 5 --json
    # Compare against last known state
    # Alert on new failures
    sleep 60
done

Slack Alerting

When --slack flag is used, post to Gigawatt Lounge (C0AM2BVMHRT) on new failures:

:rotating_light: *n8n Workflow Failure*

*Workflow:* [name] (ID: [id])
*Execution:* [exec-id]
*Error:* [error message]
*Node:* [failing node]
*Time:* [timestamp]

Use the Slack MCP server's slack_post_message tool to post.

Slack formatting rules: No em dashes, no \!, keep it clean.

Output Format

## n8n Monitor Report — [timestamp]

### Errors (last hour)
| Workflow | Errors | Last Error | Node |
|----------|--------|-----------|------|
| ...      | N      | message   | name |

### Error Rate
- Total executions: N
- Failures: N (N%)
- Most failing: [workflow name] (N errors)

### Recommendations
- [actionable fix suggestions based on error patterns]

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.