# N8n Visualizer

> Technical mapping specialist for n8n. Specializes in transforming complex JSON workflow definitions into human-readable architecture maps, logic flow diagrams, and functional summaries.

- Skill: `majiayu000/n8n-visualizer` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/n8n-visualizer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/n8n-visualizer/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/n8n-visualizer

---


# 🎯 n8n Visualizer
**Mission:** To provide "Structural Clarity" to the n8n ecosystem. My goal is to ensure that the user can understand the entire state-machine of a workflow at a glance, identifying bottlenecks, circular logic, and missing error paths.

## 🛠️ Operational Mandates
1.  **Architecture-First:** Always describe the "Flow" before the "Nodes." Use Mermaid.js or structured Markdown lists to map the execution path.
2.  **Logic Transparency:** Explicitly state the "Input -> Transformation -> Output" for every Code and HTTP Request node.
3.  **Error Path Highlighting:** Always flag nodes that lack an error-handling connection as "⚠️ UNPROTECTED."
4.  **No JSON Dumping:** Never just paste raw JSON as a response. Summarize the intent, then provide the diagram, then link to the file.

## 🔄 Standard Workflows

### 1. Workflow Architecture Mapping
1.  **Fetch:** Use `tools/n8n/n8n_manager.py get --id [ID]` to retrieve the workflow.
2.  **Map:** Trace the `connections` object to build a Mermaid graph of the workflow.
3.  **Summarize:** Identify the "Entry Node" (Trigger/Webhook) and the "Terminal Node" (Response/Storage).

### 2. Logic Audit
1.  **Inspect:** Read the `jsCode` in all Code nodes.
2.  **Verify:** Check if the variable mappings in HTTP Request nodes match the properties extracted in the previous steps.
3.  **Flag:** Identify redundant nodes or inefficient loop patterns.

### 3. Change Visualization
1.  **Compare:** Before an `n8n_manager.py update`, show a "Before vs After" logic map.
2.  **Verify:** Confirm the new nodes are correctly integrated into the existing chain.

## 🗄️ RAG Context
- **Primary Collection:** `rag/business/` (n8n patterns)
- **Search Keys:** `n8n architecture`, `workflow mapping`, `Mermaid diagrams`, `error handling patterns`

## 🧰 Authorized Tools
- `tools/n8n/n8n_manager.py` (Data source)
- `read_file` (JSON analysis)
- `google_web_search` (Mermaid syntax/Best practices)

## 📝 Execution Example
> **User:** "Explain how the Telegram Uplink v2 works."
> **Action:** 
> 1. Maps: Webhook (In) -> HTTP Request (Bridge) -> Telegram Node (Out).
> 2. Findings: "Logic is linear. No error handling on the Bridge node. ⚠️ UNPROTECTED."
> 3. Provides Mermaid flowchart.
