n8n-builder
Generates valid n8n workflow JSON with nodes, connections, settings, credentials. Use when creating workflow automations programmatically, scaffolding AI agent workflows with LangChain nodes, or converting requirements into n8n JSON.
$ Installieren
git clone https://github.com/bsamiee/Parametric_Portal /tmp/Parametric_Portal && cp -r /tmp/Parametric_Portal/.claude/skills/n8n-builder ~/.claude/skills/Parametric_Portal// tip: Run this command in your terminal to install the skill
name: n8n-builder type: standard depth: base description: >- Generates valid n8n workflow JSON with nodes, connections, settings, credentials. Use when creating workflow automations programmatically, scaffolding AI agent workflows with LangChain nodes, or converting requirements into n8n JSON.
[H1][N8N-BUILDER]
Dictum: Schema compliance enables n8n import without runtime validation errors.
Generate valid n8n workflow JSON.
Tasks:
- Read schema.md â Root structure, settings
- Read nodes.md â Node definition, typeVersion
- Read connections.md â Graph topology, AI types
- (dynamic values) Read expressions.md â Variables, functions
- (specific nodes) Read integrations.md â Node parameters
- Generate JSON â Apply template from workflow.template.md
- Validate â Run
uv run .claude/skills/n8n-builder/scripts/validate-workflow.py
REFERENCE: index.md â File listing.
[0][N8N_2.0]
Dictum: Breaking changes invalidate pre-2025 patterns.
Breaking Changes (December 2025):
Databaseâ PostgreSQL required; MySQL/MariaDB support dropped.Pythonâ"language": "python"removed; use"pythonNative"with task runners.SecurityâExecuteCommandandLocalFileTriggerdisabled by default.Code Isolationâ Environment variable access blocked in Code nodes (N8N_BLOCK_ENV_ACCESS_IN_NODE=true).Agent Typeâ Agent type selection removed (v1.82+); all agents are Tools Agent.
[1][SCHEMA]
Dictum: Root structure enables n8n parser recognition and execution.
Guidance:
AI Workflowsâ RequireexecutionOrder: "v1"in settings; async node ordering fails without.Portabilityâ Credential IDs and errorWorkflow UUIDs are instance-specific; expect reassignment post-import.Optional Fieldsâ Include empty objects ("pinData": {}) over omission; prevents import edge cases.Sub-Workflow Typingâ UseworkflowInputsschema on trigger nodes to validate caller payloads before execution.pinData Limitsâ Keep under 12MB; large payloads slow editor rendering and cannot contain binary data.
Best-Practices:
- [ALWAYS] Set
"active": falseon generation; activation is a deployment decision. - [NEVER] Hardcode credential IDs; use placeholder names for cross-instance transfer.
[2][NODES]
Dictum: Unique identity enables deterministic cross-node references.
Guidance:
Name Collisionsâ n8n auto-renames duplicates (SetâSet1); breaks$('NodeName')expressions silently.Version Matchingâ typeVersion must match target n8n instance; newer versions may lack backward compatibility.Error Strategyâ UseonError: "continueErrorOutput"for fault-tolerant pipelines; default stops execution.Node Documentationâ Usenotesfield for inline documentation;notesInFlow: truedisplays on canvas.
Best-Practices:
- [ALWAYS] Generate UUID per node before building connections; connections reference node.name.
- [ALWAYS] Space nodes 200px horizontal, 150px vertical for canvas readability.
[3][CONNECTIONS]
Dictum: Connection types enable workflow mode distinction at parse time.
Guidance:
AI vs Mainâ AI nodes require specialized types (ai_tool,ai_languageModel);maincauses silent tool invisibility.Fan-outâ Single output to multiple nodes executes in parallel; order within array is non-deterministic.Multi-outputâ Array index maps to output port; IF node: index 0 = true branch, index 1 = false branch.Single Modelâ Agent accepts exactly oneai_languageModelconnection; multiple models conflict silently.Memory Scopeâai_memorypersists within single trigger execution only; no cross-session persistence.
Best-Practices:
- [ALWAYS] Match connection key AND
typeproperty; mismatches cause silent failures. - [NEVER] Connect AI tools via
maintype; agent cannot discover them. - [NEVER] Connect multiple language models to single agent; use Model Selector node for dynamic selection.
[4][EXPRESSIONS]
Dictum: Dynamic evaluation eliminates hardcoded parameters.
Guidance:
Static vs Dynamicâ Prefix=signals evaluation; without it, value is literal string including{{ }}.Pinned Dataâ Test mode pins lack execution context;.itemfails, use.first()or.all()[0]instead.Complex Logicâ IIFE pattern{{(function(){ return ... })()}}enables multi-statement evaluation.Scope Confusionâ$jsonaccesses current node input only; use$('NodeName').item.jsonfor other nodes.
Best-Practices:
- [ALWAYS] Use
$('NodeName')for cross-node data;$jsononly accesses current node input. - [ALWAYS] Escape quotes in JSON strings or use template literals to prevent invalid JSON.
- [NEVER] Assume
.itemworks in all contexts; pinned data testing requires explicit accessors.
[5][INTEGRATIONS]
Dictum: Node type selection determines integration capability.
Guidance:
Trigger Selectionâ Webhook for external calls, scheduleTrigger for periodic; choose based on initiation source.AI Tool Visibilityâ Sub-workflow tools requiredescriptionparameter; agent uses it for tool selection reasoning.Code Languageâ Use"pythonNative"for Python;"python"is deprecated.Error Propagationâ UsestopAndErrornode for controlled failures; triggers designated error workflow.2025 Featuresâ MCP nodes enable cross-agent interoperability; Guardrails nodes enforce AI output safety.Output ParserâoutputParserStructuredjsonSchema must be static; expressions in schema are ignored silently.Batch Processingâ UsesplitInBatchesfor large datasets to prevent memory exhaustion; process in chunks.
Best-Practices:
- [ALWAYS] Set
responseMode: "lastNode"for webhookâresponse patterns; ensures output reaches caller. - [ALWAYS] Include
descriptionon HTTP nodes used as AI tools; undocumented tools are invisible to agent. - [ALWAYS] Include unique
webhookIdper workflow to prevent path collisions across workflows.
[6][RAG]
Dictum: RAG pipelines ground LLM responses in domain-specific knowledge.
Guidance:
Vector Store Selectionâ Simple for development; PGVector/Pinecone/Qdrant for production persistence.Embedding Consistencyâ Same embedding model required for insert and query; mismatch causes semantic drift.Chunk Strategyâ Recursive Character splitter recommended; splits Markdown/HTML/code before character fallback.Memory vs Chainsâ Only agents support memory; chains are stateless single-turn processors.Retriever Modesâ MultiQuery for complex questions; Contextual Compression for noise reduction.
Best-Practices:
- [ALWAYS] Match embedding model between document insert and query operations.
- [ALWAYS] Use
ai_memoryconnection type for memory nodes;mainsilently fails. - [NEVER] Use Simple Vector Store in production; data lost on restart, global user access.
[7][VALIDATION]
Dictum: Pre-export validation prevents n8n import failures.
Script:
uv run .claude/skills/n8n-builder/scripts/validate-workflow.py workflow.json
uv run .claude/skills/n8n-builder/scripts/validate-workflow.py workflow.json --strict
Checks (12 automated):
root_requiredâ name, nodes, connections presentnode_id_unique/node_name_uniqueâ no duplicatesnode_id_uuidâ valid UUID formatconn_targets_existâ connection targets reference existing nodesconn_ai_type_matchâ AI connection key matches type propertysettings_exec_order_aiâ LangChain workflows requireexecutionOrder: "v1"settings_caller_policy/node_on_errorâ enum value validation
Guidance:
API Deploymentâ Use POST then PUT pattern; single POST may ignore settings due to API bug.PerformanceâsaveExecutionProgress: truetriggers DB I/O per node; disable for high-throughput (>1000 RPM).Source Controlâ StripinstanceIdwhen sharing; credential files contain stubs only, not secrets.
Repository
