SKILL7.2K installs6.5K

N8n Code Javascript

Write JavaScript code in n8n Code nodes. Use when writing JavaScript in n8n, using $input/$json/$node syntax, making HTTP requests with this.helpers / the $helpers global, working with dates using DateTime, troubleshooting Code node errors, choosing between Code node modes, or doing any custom data transformation in n8n. Always use this skill when a workflow needs a Code node — whether for data aggregation, filtering, API calls, format conversion, batch processing logic, or any custom JavaScript. Covers SplitInBatches loop patterns, cross-iteration data, pairedItem, and real-world production patterns. Also use when asked why a Code node or workflow is slow, which execution mode is faster, or how to cut per-item overhead on large datasets. EXCEPTION — for the AI-agent-callable Custom Code Tool (@n8n/n8n-nodes-langchain.toolCode, a tool attached to an AI Agent), use the n8n-code-tool skill instead; it has a different runtime contract.

Type
Skill
Author
czlonkowski
Category
Automation
GitHub stars
6.5K
Installs
7.2K
Last updated
October 24, 2026

Install

npx skills add https://github.com/czlonkowski/n8n-skills --skill n8n-code-javascript

Use cases


Frequently Asked Questions

Which syntax does it cover for reading data in a Code node?

It covers $input, $json, and $node syntax, along with this.helpers and the $helpers global for HTTP requests.

Does it help with performance questions?

Yes, it covers execution modes and how to cut per-item overhead on large datasets.

Should I use this for the AI-agent Custom Code Tool?

No — for the Custom Code Tool attached to an AI Agent, use the n8n-code-tool skill instead, since the runtime contract differs.


About this skill

Covers writing JavaScript in n8n Code nodes, including $input/$json/$node syntax, HTTP requests via this.helpers and the $helpers global, DateTime for dates, Code node modes, and troubleshooting errors. It also covers SplitInBatches loop patterns, cross-iteration data, pairedItem, and production patterns, plus performance questions about execution modes and per-item overhead. For the AI-agent-callable Custom Code Tool, use the n8n-code-tool skill instead, since that runtime contract differs.

Summary written with AI assistance from the project's public description.


Categories


More from czlonkowski


Similar Skills