What problem does it solve?
n8n Code Node development often leads to fragmented workflows, repetitive boilerplate, and error-prone data handling. This skill provides a practical framework of patterns, guardrails, and built-in utilities to implement robust JavaScript code inside n8n Code nodes, reducing debugging time and improving maintainability.
Core Features & Use Cases
- Direct data access with $input.all(), $input.first(), and $input.item for batch and per-item processing.
- Built-in helpers and globals: $helpers.httpRequest(), DateTime (Luxon), $jmespath(), JSON, Math, and Node.js modules.
- Production-grade patterns: data aggregation, JSON comparison, top-N ranking, string reporting, Slack/Block Kit formatting, and webhook-safe data handling.
- Safe error handling and webhook data access strategies to prevent common runtime failures.
- How to start: design code in Run Once for All Items mode, choose appropriate data access method, and ensure outputs follow the required [{json: {...}}] shape.
Quick Start
Create a Code node that reads all inputs with $input.all(), processes each item, and returns a properly wrapped [{json: {...}}] array.