What problem does it solve?
This Skill guides developers to write reliable JavaScript inside n8n Code nodes by enforcing safe data access, correct webhook handling, and the required [{json: {...}}] return shapes, reducing common runtime and configuration errors.
Core Features & Use Cases
- Guided data access: use $input.all(), $input.first(), and $input.item correctly across Run Once for All Items and Run Once for Each Item modes.
- Safe webhook handling: access payloads under the correct .body path and avoid brittle direct root access.
- Return shape enforcement: ensure code outputs conform to the required array of objects with json payloads.
- Built-ins and patterns: leverage $helpers.httpRequest(), DateTime (Luxon), and $jmespath() for common transformation and integration tasks.
- Production-ready guidance: avoid common pitfalls, validate code against production patterns, and structure workflows for reliability.
Quick Start
Use the quick-start guidance to structure Code node logic, choose the appropriate execution mode, and produce outputs in the canonical [{json: {...}}] format without manual formatting pitfalls.
This skill helps developers write clean, maintainable, and production-ready JavaScript in n8n Code nodes by codifying best practices and common patterns.