n8n-code-javascript
n8n code javascript
What it does
- How it works: Code executes once regardless of input count
- Data access: $input.all() or items array
- Best for: Aggregation, filtering, batch processing, transformations, API calls with all data
- Performance: Faster for multiple items (single execution)
- ✅ Comparing items across the dataset
- ✅ Calculating totals, averages, or statistics
- ✅ Sorting or ranking items
Requirements & configuration
- ✅ Each item needs independent API call
- Need to look at multiple items? → Use "All Items" mode
- Four ways to pull data from upstream nodes. Note $node["Name"] and $('Name') need .first().json or .all() — never .json directly.
- Code node excels at: Complex logic that would require chaining many simple nodes
Configuration: NODE_FUNCTION_ALLOW_BUILTINNODE_FUNCTION_ALLOW_EXTERNALN8N_BLOCK_ENV_ACCESS_IN_NODE
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
n8n-code-javascript FAQ
What does the n8n-code-javascript skill do?
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. How it works: Code executes once regardless of input count Data access: $input.all() or items array
What does n8n-code-javascript require?
✅ Each item needs independent API call Need to look at multiple items? → Use "All Items" mode Four ways to pull data from upstream nodes. Note $node["Name"] and $('Name') need .first().json or .all() — never .json directly. Code node excels at: Complex logic that would require chaining many simple nodes Configuration keys: NODE_FUNCTION_ALLOW_BUILTIN, NODE_FUNCTION_ALLOW_EXTERNAL, N8N_BLOCK_ENV_ACCESS_IN_NODE.
How do I install n8n-code-javascript?
Run: npx -y skills add https://github.com/czlonkowski/n8n-skills --skill n8n-code-javascript --agent claude-code — the source lives at github.com/czlonkowski/n8n-skills.
Maintain n8n-code-javascript?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/czlonkowski-n8n-skills-n8n-code-javascript?ref=badge) npx agentictools info skills/czlonkowski-n8n-skills-n8n-code-javascript The second line is the CLI lookup for this page — handy in READMEs and docs.