Analyze Workflow
Analyze an n8n workflow before importing — check complexity, credentials, compatibility, and security.
The analysis steps, the report format and the quick variant are written down in ${CLAUDE_PLUGIN_ROOT}/skills/workflow-analysis/SKILL.md; read it before the first step.
Arguments
Format: <template-id-or-url>
- Numeric ID: treated as an official template ID (fetched via
~~template_get; when n8n-mcp answersTemplate <id> not found, fetched fromapi.n8n.io— seetemplate-discovery) - URL: treated as a community source (fetched via
~~scrape)
Parse from "$ARGUMENTS".
Process
Fetch the workflow:
- If numeric: use
~~template_getwith the ID; on "not found" fetchhttps://api.n8n.io/api/workflows/templates/<id>and take.workflow - Look up the price: only
api.n8n.iosearch items carryprice/purchaseUrl. Search the template title (.nameof the wrapper) athttps://api.n8n.io/api/templates/search?rows=20&search=<url-encoded title>and match the item onid(paid =purchaseUrlset orprice> 0; missingprice= free; no match = "price unknown") - If URL: use
~~scrapeto read the page, extract the workflow JSON
- If numeric: use
Run analysis (follow
workflow-analysisskill):- Node inventory: List all nodes, mark built-in vs community
- Topology: Linear, branched, looped, error-handled
- Credentials: List all required credential types and services
- Security scan: Check for hardcoded values, open webhooks, code execution nodes
- Complexity score: Simple / Medium / Complex
- Compatibility: Nodes switched off in n8n 2.0, nodes removed in n8n 3.0, AI Agent v1, version requirements
Display analysis report in structured format:
Template: <name> (#<id>) Complexity: <Simple|Medium|Complex> (<node-count> nodes) Topology: <type> Credentials needed: <list> Community nodes: <list or "None"> Security flags: <list or "None"> Compatibility: <OK or issues> Price: <Free | Paid (price, purchaseUrl) | Unknown — no search match>Recommend action: Deploy, deploy with caution, or skip (with reason).
Example Usage
/n8n-provision:analyze-workflow 2947
/n8n-provision:analyze-workflow https://github.com/Zie619/n8n-workflows/blob/main/workflows/Telegram/0001_Telegram_Schedule_Automation_Scheduled.json