n8n-code-tool
Write and debug JavaScript or Python for the AI-callable n8n Custom Code Tool, including schemas, sandbox limits, and return formats.
npx skills add sickn33/agentic-awesome-skills --skill n8n-code-tool --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# n8n Custom Code Tool ## When to Use Use this skill specifically for code executed by the AI-agent-callable n8n Custom Code Tool. Use the separate JavaScript or Python Code-node skills for ordinary workflow Code nodes. Do not hardcode secrets or accept arbitrary executable code from untrusted input. Constrain inputs with a schema, validate outputs, allowlist any network destinations, and ask before testing a tool whose code can write data or invoke an external service. Expert guidance for writing code inside `@n8n/n8n-nodes-langchain.toolCode` — the tool an AI Agent can invoke, **not** the regular workflow Code node. --- ## ⚠️ This is NOT the Code node The Custom Code Tool looks like a Code node in the editor — same JavaScript editor, similar layout — but it is a **completely different node** from a different package with a **different runtime contract**. | | Code node | Custom Code Tool | |---|---|---| | **Node type** | `n8n-nodes-base.code` | `@n8n/n8n-nodes-langchain.toolCode` | | **Package** | `n8n-nodes-base` | `@n8n/n8n-nodes-langchain` | | **Invoked by** | Previous node (workflow flow) | AI Agent (LangChain) | | **Input** | `$input.all()` — item stream | `query` — string or
- When to Use
- ⚠️ This is NOT the Code node
- Quick Start
- Minimal JavaScript Code Tool
- Minimal Python Code Tool
- Essential Rules
- The Two Input Modes
- Mode 1: Unstructured (default, specifyInputSchema: false)
- Mode 2: Structured (specifyInputSchema: true)
- Return Format
- Best practice: JSON-stringify structured results
- Error handling: the agent reads your failures
- Tool Name and Description
- Name
What does the n8n-code-tool skill do?
Write and debug JavaScript or Python for the AI-callable n8n Custom Code Tool, including schemas, sandbox limits, and return formats.
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill n8n-code-tool --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.