skills sourced live from GitHub · all skills listed are free · each skill is provided under its author's license.
home / Automation / N8n Code Tool Skill by @sickn33
The skill is the skills/n8n-code-tool folder inside that repository. Copy it into the folder your agent loads skills from; check your agent's documentation for where that is.
Guidance for writing JavaScript or Python for n8n's AI-callable Custom Code Tool, including schemas, sandbox limits and return formats.
Stresses that this tool is not the ordinary Code node, then covers the input model, minimal examples in both languages and essential rules. It tells you to constrain inputs with schemas and never accept executable code from untrusted sources.
The original SKILL.md is organised into these sections:
Written and maintained by @sickn33. It is published under the MIT license, which allows reuse with attribution. See the author profile. SkillDirectory does not claim authorship: this page adds our own review and links back to the original, and the skill's text belongs to its author.
# 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 | |---|---|---| …
Excerpt only, quoted from the author's repository. Open the repository for the complete file.