What problem does it solve?
This Skill solves the confusion and workflow-breaking mistakes people make when writing JavaScript inside n8n Code nodes, especially around input mode selection, correct data access, and the required return format.
Core Features & Use Cases
- Choose the right execution mode (All Items vs Each Item): Prevents logic errors and performance issues by guiding when to aggregate across items versus when to process items independently.
- Use safe data access patterns: Covers
$input.all(), $input.first(), $input.item, $node, and the critical webhook payload nesting under $json.body.
- Avoid common Code node failures: Provides guardrails for the most frequent errors like missing returns, incorrect output wrapping, expression syntax misuse, unmatched escaping, and undefined property crashes.
- Apply production-tested patterns and built-ins: Includes real transformation patterns plus a reference for
$helpers.httpRequest(), DateTime (Luxon), $jmespath(), and $getWorkflowStaticData().
Quick Start
Ask: “Explain how to correctly transform webhook POST items in an n8n Code node using Run Once for All Items, reading fields from $json.body, and returning results as [{json: {...}}].”