n8n-code-javascript
Skill by czlonkowski
Writes, reviews and debugs JavaScript in n8n Code nodes. Built for builders who need Code node help, and checks whether a native node fits before a new Code node is added.
Install n8n-code-javascript
Built from the published package, never by AI.
git clone --depth 1 https://github.com/czlonkowski/n8n-skills /tmp/n8n-skills && mkdir -p ~/.claude/skills && cp -r /tmp/n8n-skills/skills/n8n-code-javascript ~/.claude/skills/n8n-code-javascriptRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/czlonkowski/n8n-skills /tmp/n8n-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/n8n-skills/skills/n8n-code-javascript ~/.gemini/antigravity-cli/skills/n8n-code-javascriptAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install n8n-code-javascript in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill helps an AI assistant write, review, or debug JavaScript in an n8n Code node. It also covers editing a Code node already in a workflow, fixing errors, choosing its mode and making it faster. Topics include $input, $json and $node access in code, this.helpers, Luxon, SplitInBatches loops, cross-iteration data, pairedItem, per-item performance and the "Why Code:" note.
Before a new Code node is written, the skill checks whether a native node fits, using the job-to-node table in using-n8n-mcp-skills. Code is justified for a short list of jobs, such as loops no node expresses, state across runs, parsing no node handles, or an allowlisted library. The Custom Code Tool attached to an AI Agent is out of scope and uses the n8n-code-tool skill instead. It is for n8n builders working with Code nodes.
Written from the project's SKILL.md and checked against it.
What it can do
- Write Code node logicWrites JavaScript for n8n Code nodes in Run Once for All Items or Run Once for Each Item mode.
- Review and debugReviews and debugs existing Code nodes, including errors and mode choice.
- Gate new Code nodesChecks native nodes first and asks for a "Why Code:" note on new Code nodes.
- Data access patternsExplains $input.all(), $input.first(), $input.item and $node access in code.
- Webhook data handlingExplains that webhook data sits under $json.body.
- Return formatShows the [{json: {...}}] return format for Code nodes.
- Performance guidanceExplains the per-item cost of Each Item mode compared with All Items mode.
- Allowlisted librariesUses allowlisted libraries through require() when the instance allows them.
What you need
- An n8n instance with Code nodes
- Instance allowlist for external or built-in modules (only for libraries)
Try asking
- Fix the error in this n8n Code node that reads $json.name
- Review my n8n Code node and suggest a better mode choice
- Write a Code node that computes a running balance across items
Good to know
- Does not cover the Custom Code Tool for AI agents; use n8n-code-tool for that.
- The bare $helpers global is undefined in the task runner sandbox; use this.helpers.httpRequest().
- this.helpers.httpRequestWithAuthentication is deny-listed.
- Filtering, sorting, joins and similar jobs are meant for native nodes first.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/n8n-code-javascript/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
BUILTIN_FUNCTIONS.md23 KB -
COMMON_PATTERNS.md33 KB -
DATA_ACCESS.md22 KB -
ERROR_PATTERNS.md23 KB -
README.md10 KB
Show all 6 files
-
SKILL.md22 KB
Alternatives to n8n-code-javascript
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
n8n-code-javascript: common questions
When should I use a Code node instead of a native node?
Use a Code node only when no native node fits and the job is on the closed list, such as loops, state across runs or heavy all-items work. Filtering, sorting and joins have native nodes.
Why is my webhook field undefined?
Webhook data is nested under .body, so use $json.body.name rather than $json.name.
Which execution mode should I choose?
Run Once for All Items is the recommended default. Run Once for Each Item adds a per-item cost and is for specialized cases.
How do I install n8n-code-javascript?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is n8n-code-javascript free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is n8n-code-javascript safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to n8n-code-javascript?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
