n8n-code-javascript
π―Skillfrom czlonkowski/n8n-skills
Executes custom JavaScript code within n8n workflows, enabling complex data transformations, calculations, and dynamic logic across workflow nodes
Overview
The n8n Code JavaScript skill provides expert guidance for writing JavaScript code within n8n Code nodes. It covers essential patterns like data access with $input/$json/$node syntax, HTTP requests with $helpers, date handling with DateTime (Luxon), and the critical requirement of returning data in the correct [{json: {...}}] format.
Key Features
- Mode Selection Guide - Clear decision framework for choosing between "Run Once for All Items" (recommended for 95% of cases) and "Run Once for Each Item" modes
- Essential Data Access Patterns - Instructions for using $input.all(), $input.first(), and $input.item for different execution modes
- Built-in Helpers - Coverage of $helpers.httpRequest(), DateTime (Luxon), and $jmespath() utilities available in Code nodes
- Critical Gotchas - Warnings about common pitfalls including webhook data being under $json.body and the mandatory [{json: {...}}] return format
- Practical Templates - Ready-to-use code templates for aggregation, filtering, batch processing, and per-item transformations
Who is this for?
This skill is for n8n workflow builders who need to write custom JavaScript logic within Code nodes. It is particularly helpful for developers transitioning from other automation platforms to n8n who need to understand the specific syntax and data access patterns unique to n8n's Code node environment.
Same repository
czlonkowski/n8n-skills(9 items)
Installation
npx vibeindex add czlonkowski/n8n-skills --skill n8n-code-javascriptnpx skills add czlonkowski/n8n-skills --skill n8n-code-javascript~/.claude/skills/n8n-code-javascript/SKILL.mdSKILL.md
More from this repository8
Seven complementary Claude Code skills for building production-ready n8n workflows using the n8n-mcp MCP server, covering expression syntax, workflow patterns, and validation error handling.
Expert skills for building n8n workflows
Provides proven architectural patterns for building n8n workflows including webhook processing, HTTP API integration, database operations, AI agent workflows, and scheduled tasks.
Expert guide skill for using n8n-mcp MCP tools to build workflows, covering node discovery, configuration validation, workflow management, and a library of 2,700+ templates
Operation-aware node configuration guidance for n8n covering property dependencies, required field determination, progressive disclosure detail levels, and common configuration patterns by node type.
Expert guide for interpreting and fixing n8n validation errors, covering error severity levels (errors, warnings, suggestions), false positives, operator structure issues, and the iterative validation loop process.
Skill for validating and writing correct n8n expression syntax, covering double curly brace format, $json/$node variables, webhook data access, and common error fixes
Skill for writing Python code in n8n Code nodes, covering _input/_json/_node syntax, standard library usage, and Python-specific limitations compared to JavaScript nodes