N8n Code Javascript skill for Claude
Write, review, or debug JavaScript in an n8n Code node.
When Claude uses it
Use when a Code node is already in the workflow (editing it, fixing an error, choosing its mode, making it faster), or when a new one is justified: no native node fits (check the job-to-node table in using-n8n-mcp-skills first) and the job is on the closed list — loops or recursion no node expresses, state across runs, parsing no node handles, an allowlisted library, heavy all-items work, or one short node replacing 4+ glue nodes. Covers $input/$json/$node in code, this.helpers, Luxon, SplitInBatches loops, cross-iteration data, pairedItem, per-item performance, and the \"Why Code:\" note. Filtering, totals, dedupe, sorting, joins, file formats and API paging have native nodes (Filter, Summarize, Remove Duplicates, Sort, Merge, Extract From File, HTTP Request): see n8n-node-configuration. EXCEPTION — for the AI-agent-callable Custom Code Tool (@n8n/n8n-nodes-langchain.toolCode), use n8n-code-tool; it has a different runtime contract.
N8n Code Javascript SKILL.md
A preview of the skill file from WilkoMarketing/antigravity-n8n-skills.
JavaScript Code Node
Expert guidance for writing JavaScript code in n8n Code nodes.
Before you write a Code node
A new Code node has to pass this gate first:
- Is there a native node for the job? Check the job-to-node table in
using-n8n-mcp-skills: Filter, IF / Switch, Summarize, Aggregate, Split Out, Merge, Compare Datasets, Remove Duplicates, Sort + Limit, Date & Time, XML / HTML / Extract From File / Convert To File, HTTP Request (pagination, batching) and Crypto cover most reaches for Code. Their configs are inn8n-node-configuration→ NATIVE_NODES.md. - Would a short expression in that node do? One expression, no function body — the helper methods (
.pluck(),.sum(),.unique(),$ifEmpty(),.diffTo()) are inn8n-expression-syntaxand, on n8n-mcp 2.97.0+, intools_documentation({topic: "expression_helpers"}). Several statements inside{{ }}count as code, so they belong here rather than in an Edit Fields field. - Is the job on the closed list? Loops or recursion no node expresses, state across runs
(
$getWorkflowStaticData), parsing no node handles, an allowlisted library, heavy all-items work (thousands of items, stated or measured), or one short Code node (~15 lines) replacing 4+ glue nodes that only reshape data.
If it passes, write the Code node and give it a note, so the next reader (and the review hooks) can see why:
How to install N8n Code Javascript
Claude Code
Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):
npx degit WilkoMarketing/antigravity-n8n-skills/n8n-code-javascript#main ~/.claude/skills/n8n-code-javascriptCodex
npx degit WilkoMarketing/antigravity-n8n-skills/n8n-code-javascript#main ~/.codex/skills/n8n-code-javascriptClaude.ai and Claude Desktop
Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.
Frequently asked questions
+What does the N8n Code Javascript skill do?
Write, review, or debug JavaScript in an n8n Code node. Use when a Code node is already in the workflow (editing it, fixing an error, choosing its mode, making it faster), or when a new one is justified: no native node fits (check the job-to-node table in using-n8n-mcp-skills first) and the job is on the closed list — loops or recursion no node expresses, state across runs, parsing no node handles, an allowlisted library, heavy all-items work, or one short node replacing 4+ glue nodes. Covers $input/$json/$node in code, this.helpers, Luxon, SplitInBatches loops, cross-iteration data, pairedItem, per-item performance, and the \"Why Code:\" note. Filtering, totals, dedupe, sorting, joins, file formats and API paging have native nodes (Filter, Summarize, Remove Duplicates, Sort, Merge, Extract From File, HTTP Request): see n8n-node-configuration. EXCEPTION — for the AI-agent-callable Custom Code Tool (@n8n/n8n-nodes-langchain.toolCode), use n8n-code-tool; it has a different runtime contract.
+How do I install N8n Code Javascript in Claude Code?
Copy the skill folder into ~/.claude/skills/n8n-code-javascript, for example with "npx degit WilkoMarketing/antigravity-n8n-skills/n8n-code-javascript#main ~/.claude/skills/n8n-code-javascript". Claude Code loads it automatically and uses it when a task matches.
+Does N8n Code Javascript work with ChatGPT or Codex?
Yes. N8n Code Javascript uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/n8n-code-javascript. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.
+Is N8n Code Javascript free?
N8n Code Javascript is published on GitHub by WilkoMarketing. The repository does not declare a license, so check with the author before reusing it.