n8n-code-python

n8n-code-python is a skill for Claude Code from walidboulanouar/n8n-claude-code-template. It costs 0 tokens per session (1,296 once invoked), scanned A, original, no licence file.

A coding guide for writing Python in n8n Code nodes, which are workflow steps that run custom code.

In plain words
What is it for?
Writing Python-based transformations and logic within n8n workflows.
Why use it?
It helps avoid Python that does not work correctly inside n8n's Code node environment.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Writing Python-based transformations and logic within n8n workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/walidboulanouar/n8n-claude-code-template/n8n-code-python
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add walidboulanouar/n8n-claude-code-template --skill n8n-code-python
Clone the repo
git clone --depth 1 https://github.com/walidboulanouar/n8n-claude-code-template

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for n8n-code-python

README.md
[![agentmods](https://agentmods.dev/badge/skills/walidboulanouar/n8n-claude-code-template/n8n-code-python/github.svg)](https://agentmods.dev/skills/walidboulanouar/n8n-claude-code-template/n8n-code-python)
Your own site
<a href="https://agentmods.dev/skills/walidboulanouar/n8n-claude-code-template/n8n-code-python"><img src="https://agentmods.dev/badge/skills/walidboulanouar/n8n-claude-code-template/n8n-code-python/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for n8n-code-python

Your own site · 80×15
<a href="https://agentmods.dev/skills/walidboulanouar/n8n-claude-code-template/n8n-code-python"><img src="https://agentmods.dev/badge/skills/walidboulanouar/n8n-claude-code-template/n8n-code-python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,296 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01296
Opus 5.5 $0.00000 $0.00518
Sonnet 5.5 $0.00000 $0.00259
Haiku 4.5 $0.00000 $0.00130

Measured 2mo ago against content hash d153dda4edce, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

n8n-code-python scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/n8n-code-python/SKILL.md · 205 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 205 lines · 0 tokens per session scan A d153dda4edce

Subscribe to this mod's changes

n8n-code-python is a skill published in the GitHub repository walidboulanouar/n8n-claude-code-template (24 stars, last pushed 7mo ago), with no licence file. It costs nothing until one of its globs matches a file; then it loads 1,296 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

n8n-code-python

Write Python code in n8n Code nodes. Use when writing Python in n8n, using input/json/node syntax, working with standard library, or need to understand Python limitations in n8n Code nodes. Use this skill when the user specifically requests Python for an n8n Code node. Note — JavaScript is recommended for 95% of use…

czlonkowski/n8n-mcp · 157 tokens

n8n-code-python

Write Python code in n8n Code nodes. Use when writing Python in n8n, using input/json/node syntax, working with standard library, or need to understand Python limitations in n8n Code nodes.

neurawork-git/n8n-autopilot · 52 tokens

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 Code node. Use when building a Code Tool attached to an AI Agent, writing code that an LLM will invoke, parsing the query input, returning a string result, defining an input schema…

czlonkowski/n8n-skills · 221 tokens

n8n-code-python

Write Python in n8n Code nodes (native Python, language pythonNative, n8n 2.x). Use when the user explicitly wants Python in a Code node, when migrating old Pyodide/"Python (Beta)" code that used input/json/node/now, or when a Python Code node fails with NameError, "Security violations detected", "Import of standard…

czlonkowski/n8n-skills · 228 tokens

matlab

Builds, reviews, migrates, and plans MATLAB or GNU Octave numerical workflows. Use for arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 44 tokens

pennylane

Builds and differentiates PennyLane quantum circuits, hybrid PyTorch or JAX models, molecular VQE and QAOA workflows. Use for variational quantum algorithms, quantum machine learning, simulator validation, and moving validated circuits to provider plugins. For hardware-specific compilation use qiskit or cirq; for…

K-Dense-AI/scientific-agent-skills · 74 tokens