Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

n8n-code-tool

Skill by sickn33

Guides writing and debugging JavaScript or Python for the n8n Custom Code Tool, a tool that AI Agents can call. It is aimed at developers building n8n agent workflows.

  • Score 92
  • 51k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install n8n-code-tool

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/n8n-code-tool ~/.claude/skills/n8n-code-tool

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install n8n-code-tool in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives guidance for writing and debugging JavaScript or Python inside the n8n Custom Code Tool (@n8n/n8n-nodes-langchain.toolCode), a tool an AI Agent can invoke. It explains that this node is different from the regular Code node. The input arrives as a query variable, and the return value must be a string rather than a workflow items array.

The skill covers two input modes, unstructured string input and structured schema input. It also explains tool naming, writing descriptions the model can act on, and common errors with their fixes. The sandbox is narrower than the Code node sandbox, so helpers such as $fromAI(), $input and this.helpers.httpRequest() are not available. The skill points to other tool nodes for HTTP calls and sub-workflows. It is aimed at developers who need pure computation tools such as calculators or parsers.

Written from the project's SKILL.md and checked against it.

What it can do

  • Input modesExplains unstructured string input and structured schema input for the query variable.
  • Return formatShows which return values work, such as strings and JSON-stringified results, and which throw errors.
  • Tool naming and descriptionsGuides naming and writing descriptions so the AI Agent knows when to call the tool.
  • Error catalogLists common Custom Code Tool errors with their causes and fixes.
  • Sandbox limitsLists helpers that are not available in the Code Tool sandbox and suggests alternatives.
  • Tool type selectionHelps choose between Code Tool, Call Sub-workflow Tool and HTTP Request Tool.

What you need

  • n8n with the Custom Code Tool node
  • n8n v1.1 or later for tool name rules
  • n8n v1.3 or later for fromJson schema type
  • JavaScript or Python code

Try asking

  • Write a Custom Code Tool in JavaScript that computes a monthly loan payment.
  • Why does my n8n Custom Code Tool throw 'Wrong output type returned'?
  • Help me write a tool description so my AI Agent calls it at the right time.

Good to know

  • The Code Tool sandbox cannot use $fromAI(), $input or this.helpers.httpRequest().
  • The tool must return a string, not an array or a plain object.
  • The input variable is fixed as query in JavaScript and _query in Python.
  • Tool names must use letters, numbers and underscores (v1.1 and later).

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/n8n-code-tool/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md18 KB
  • references/ERROR_PATTERNS.md7 KB
  • references/INPUT_SCHEMA.md7 KB

Alternatives to n8n-code-tool

All alternatives →
openclaw-github-repo-commandersickn33
94

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.

AAA Skill 50k
gradiogradio-app
94

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.

AAA Skill 44k
hig-components-menussickn33
94

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.

AAA Skill 50k
fastapi-templateswshobson
94

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.

AAA Skill 43k
appfunctionsandroid
94

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.

AAA Skill 11k
agent-qa-authoringsickn33
94

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.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

n8n-code-tool: common questions

Is the Custom Code Tool the same as the n8n Code node?

No. The source says it is a different node from a different package with a different runtime contract, and it is invoked by an AI Agent rather than the previous node.

What should a Custom Code Tool return?

A string. Numbers are converted automatically, and structured results should be JSON-stringified, since returning arrays or objects throws an error.

Can the Code Tool make HTTP requests?

The source says this.helpers.httpRequest is not exposed to the tool sandbox, so it recommends the HTTP Request Tool for API calls.

How do I install n8n-code-tool?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is n8n-code-tool free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is n8n-code-tool safe to use?

It scores 92 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-tool?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

n8n-code-tool Install

Add to stack

Loading.