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-javascriptUse cases
- Write a Code node that aggregates and filters incoming items in an n8n workflow
- Make an HTTP request from a Code node using the $helpers global
- Debug a failing Code node or speed up a slow one on large datasets
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
N8n Mcp
A MCP for Claude Desktop / Claude Code / Windsurf / Cursor to build n8n workflows for you
by czlonkowski
N8n Workflow Patterns
Proven workflow architectural patterns from real n8n workflows. Use when building new workflows, designing workflow structure, choosing workflow pa...
by czlonkowski
N8n Mcp Tools Expert
Expert guide for using n8n-mcp MCP tools effectively. Use when searching for nodes, validating configurations, accessing templates, managing workfl...
by czlonkowski
N8n Node Configuration
Operation-aware node configuration guidance. Use when configuring nodes, understanding property dependencies, determining required fields, choosing...
by czlonkowski
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh