N8n cli document

From 8Dvibes/n8n-cli · View interactive version

N8n cli document is an AI agent skill from the GitHub repository 8Dvibes/n8n-cli. Generate human-readable markdown docs from an n8n workflow JSON. Covers trigger, steps, credentials, and failure modes. Use when documenting workflows for team handoff, audits, or onboarding.

How to use this skill

Skill file

/n8n-cli-document — Generate Human-Readable Workflow Docs

Take an n8n workflow and produce markdown documentation a human can read without opening the n8n UI.

Procedure

  1. Get the workflow JSON:
  1. Parse the structure:
  1. Compute summary stats:
  1. Identify failure modes:
  1. Render the markdown:
# [Workflow Name]

**ID:** `<id>`
**Status:** Active / Inactive
**Project:** ...
**Tags:** ...

## What it does

[2-3 sentence plain-English summary inferred from the trigger, key nodes, and final action]

## How it's triggered

[Trigger type + config. E.g. "Webhook at POST /webhook/foo" or "Daily at 09:00 UTC via Schedule Trigger"]

## Steps

1. **[Node name]** (`[type]`) — [what it does in plain English]
2. ...

(For branching workflows, present as a tree or use sub-bullets per branch)

## Credentials used

| Credential | Type | Used by |
| Slack OAuth | slackOAuth2Api | Notify Channel, Post Update |

## Sub-workflows called

| Workflow | When |
| Send Email | After successful sync |

## Failure modes to watch

- [Node X] has no error handler — failure here will fail the whole run
- [Node Y] depends on credential Z — if it expires, this workflow stops working
- ...

## Operational notes

- Last updated: [date from workflow metadata]
- Recent execution success rate: X% (from the last 50 runs)
- Recent error count: N

Output format

By default, print the markdown to stdout. If the user says "save it", write to:

Tips

Companion: bulk documentation

If the user asks "document all workflows in project X", iterate n8n-cli wf list --project-id X, generate one markdown file per workflow, and offer to commit them to a docs repo.

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.