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:

  1. 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 in n8n-node-configuration → NATIVE_NODES.md.
  2. Would a short expression in that node do? One expression, no function body — the helper methods (.pluck(), .sum(), .unique(), $ifEmpty(), .diffTo()) are in n8n-expression-syntax and, on n8n-mcp 2.97.0+, in tools_documentation({topic: "expression_helpers"}). Several statements inside {{ }} count as code, so they belong here rather than in an Edit Fields field.
  3. 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:

Read the full SKILL.md on GitHub →

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-javascript

Codex

npx degit WilkoMarketing/antigravity-n8n-skills/n8n-code-javascript#main ~/.codex/skills/n8n-code-javascript

Claude.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.

Related software development skills

  1. Code Review

    Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's…

    mattpocock/skills★ 327k
  2. Using Agent Skills

    Discovers and invokes agent skills. Use when starting a session, or when you need to decide which skill or workflow applies to the piece of…

    addyosmani/agent-skills★ 119k
  3. Build

    Fully automate a coding task with make-plan, do, and babysit.

    thedotmack/claude-mem★ 118k
  4. N8n Code Python

    Write Python in n8n Code nodes (native Python, `language` pythonNative, n8n 2.x).

    WilkoMarketing/antigravity-n8n-skills★ 108
  5. N8n Code Tool

    Write JavaScript or Python for the n8n Custom Code Tool (@n8n/n8n-nodes-langchain.toolCode) — the AI-agent-callable tool, NOT the workflow…

    WilkoMarketing/antigravity-n8n-skills★ 108
  6. N8n Error Handling

    Wire n8n error handling so failures are loud, structured, and recoverable.

    WilkoMarketing/antigravity-n8n-skills★ 108
  7. N8n Node Configuration

    Operation-aware node configuration guidance. Use when configuring nodes, understanding property dependencies, determining required fields,…

    WilkoMarketing/antigravity-n8n-skills★ 108
  8. N8n Validation Expert

    Interpret validation errors and guide fixing them. Use when encountering validation errors, validation warnings, false positives, operator…

    WilkoMarketing/antigravity-n8n-skills★ 108
  9. N8n Workflow Patterns

    Proven workflow architectural patterns from real n8n workflows.

    WilkoMarketing/antigravity-n8n-skills★ 108

See all software development skills →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.