What problem does it solve? Writing JavaScript in n8n Code nodes fails frequently due to incorrect return formats, confusion between expression syntax and JavaScript, webhook data nesting surprises, and missing null checks. This Skill provides the patterns and references needed to write correct Code node logic on the first attempt. ## Core Features & Use Cases - Data Access Patterns: Complete guidance on $input.all(), $input.first(), $input.item, and $node references, including the critical webhook .body nesting gotcha. - Production Patterns: Ten tested patterns covering multi-source aggregation, regex filtering, markdown parsing, CRM transformation, Slack Block Kit formatting, and top-N ranking. - Error Prevention: Covers the top five Code node errors (missing return statements, {{ }} expression misuse, wrong return wrapper, unmatched brackets, null access) with wrong-vs-right examples. - Built-in Functions Reference: Documents $helpers.httpRequest(), DateTime (Luxon), $jmespath(), and $getWorkflowStaticData() with complete examples. - Use Case: When building an n8n workflow that aggregates data from multiple APIs and posts a ranked summary to Slack, use this Skill to write the transformation Code node correctly. ## Quick Start Ask the AI to write an n8n Code node in JavaScript that aggregates items from previous nodes and returns them sorted by score.