N8n cli replay

From 8Dvibes/n8n-cli · View interactive version

N8n cli replay is an AI agent skill from the GitHub repository 8Dvibes/n8n-cli. Replay a specific failed n8n execution with its original input data. Reproduces the failure on demand without waiting for the trigger. NOT pattern analysis -- use /n8n-debug for that. Use when reproducing an intermittent bug.

How to use this skill

Skill file

/n8n-cli-replay — Replay a Real Execution

Take a specific execution (usually a failure) and reproduce it on demand without waiting for the original trigger.

Procedure

  1. Get the target execution:
  1. Extract the input data:
  1. Save the input to disk:
  1. Choose replay mode:

a. Direct retry (n8n-side): n8n-cli exec retry <execution-id> — fastest, runs against the same workflow on the same instance. Caveat: if the workflow has been modified since the failure, the retry runs against the new version.

b. Webhook replay (for webhook-triggered workflows): n8n-cli wh test <workflow-id> --data "$(cat <saved-fixture>)". Lets you tweak the input before replaying.

c. Cross-instance replay: replay against staging instead of prod. Requires the workflow to exist on the target instance (use /n8n-cli-migrate first if not).

  1. Run the replay in the chosen mode and capture the new execution ID
  1. Compare the new execution to the original:

Output format

## Replay: execution <original-id>

**Workflow:** [name]
**Original failure:** [error message]
**Timestamp:** [original]
**Captured input:** saved to ~/.cache/n8n-cli/replays/<wf-id>/<exec-id>.json

### Replay attempt
**Mode:** webhook
**New execution:** <new-id>
**Result:** SAME ERROR / DIFFERENT ERROR / SUCCESS

### Diagnosis
[What changed, what's the same, what to do next]

### Save as test fixture?
This input is now a great regression test. Save to tests/<workflow-name>/fixtures/regression-<exec-id>.json?

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.