N8n Code Python
Python code guide for n8n Code nodes, covering native _items/_item syntax and runtime limits.
- CCM score
- 57 of 100
- skills.sh installs
- 215
- GitHub stars
- 50.5K
- last updated
- Jun 3, 2026
Own this skill? Claim it
What it does
- Covers bounded Python transformations in n8n Code nodes, with all-items and per-item modes shown
- Explains the n8n 2 runtime contract: the removed Pyodide runtime, unavailable
_input/_json/_nodehelpers, and import restrictions - Enforces guardrails such as validating input types, using managed credentials, and keeping item counts and runtime bounded
- Designed for users who need to check n8n version and task runner support before writing Python in workflows
Install
$ npx -y skills add sickn33/agentic-awesome-skills --skill n8n-code-python -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Python Code Node (Native)
When to Use
Use for bounded Python transformations in an n8n Code node when native nodes or expressions are insufficient. Check the installed n8n version and task runner first.
Runtime contract
n8n 2 removed the legacy Pyodide runtime. Native Python uses _items in all-items
mode and _item in per-item mode; legacy _input, _json, _node and _now
helpers are unavailable. Self-hosted imports depend on installed runner packages
and explicit allowlists. Cloud imports may be unavailable, including standard
modules. JavaScript imports are restricted too; switching languages does not
provide unrestricted filesystem, networking or package access.
Examples
All-items mode, with no imports:
return [
{"json": {"id": item["json"].get("id"), "processed": True},
"pairedItem": {"item": index}}
for index, item in enumerate(_items)
if item["json"].get("active")
]
Per-item mode:
return {"json": {**_item["json"], "name_upper": (_item["json"].get("name") or "").upper()}}
Details
- Repository
- github.com/sickn33/agentic-awesome-skills
- Categories
- Workflow Automation, Python
- First seen
- Jun 3, 2026
Questions
What does the n8n-code-python skill do?
n8n-code-python writes Python code for n8n Code nodes, covering the _items and _item syntax for all-items and per-item modes. It also explains the standard library limits and runtime constraints that apply to Python inside n8n Code nodes.
How do I install the n8n-code-python skill?
Run npx -y skills add sickn33/agentic-awesome-skills --skill n8n-code-python -y in your project. After that, n8n-code-python lets the agent write bounded Python transformations for n8n Code nodes.
Which n8n versions does n8n-code-python support for Python code nodes?
n8n-code-python notes that n8n 2 removed the legacy Pyodide runtime, so native Python uses _items and _item instead of _input, _json and _node. Self-hosted imports depend on installed runner packages, and cloud imports may be unavailable.
Where does n8n-code-python sit in the Workflow Automation category?
n8n-code-python is listed in the Workflow Automation category on Claude Marketplaces, next to computer-use, python-executor and gws-events. Its focus is narrow: Python inside n8n Code nodes rather than general workflow building.
More from sickn33/agentic-awesome-skills
All 682- Security Bluebook Builder215
- Haskell Pro213
- Threat Mitigation Mapping212
- Cc Skill Clickhouse Io211
- Embedding Strategies210
- Cqrs Implementation207
- Bats Testing Patterns206
- Antigravity Skill Orchestrator205
- Conductor Validator205
- Julia Pro205
- X Article Publisher Skill205
- Ml Pipeline Workflow204
- Distributed Tracing203
- Fix Review203
- Pci Compliance203
- Team Collaboration Issue203
- Fal Generate201
- Graphql Architect201
- Incident Response Incident Response201
- Network 101201
- Workflow Patterns201
- Multi Cloud Architecture200
- Stride Analysis Patterns199
- Bazel Build Optimization198
Similar to N8n Code Python
More Workflow Automationn8n-code-javascriptczlonkowski/n8n-skills7.9K installsWrite JavaScript for n8n Code nodes, gated so native nodes handle any job they already cover.
n8n-node-configurationsickn33/agentic-awesome-skills255 installsGuided configuration for n8n nodes that accounts for operation-specific property dependencies and required fields.
n8n-mcp-tools-expertsickn33/agentic-awesome-skills261 installsExpert guide for choosing and calling n8n-mcp tools to search nodes, validate configs, and manage workflows.
n8n-workflowclaude-office-skills/skills5.1K installsAutomation guide for document pipelines on n8n, using node-based workflows with templates and Claude-driven review steps.
n8n-workflow-generatorjeremylongshore/tons-of-skills-marketplace262 installsGeneric n8n workflow helper that gives step-by-step guidance for n8n tasks within business automation.
n8n-workflow-patternsczlonkowski/n8n-skills12.7K installsStructured patterns for building n8n workflows, covering six core architectures with selection guidance and a creation checklist.