SKILL

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.

Target: AI & workflow automation. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • Python Code Node (Beta)
  • ⚠️ Important: JavaScript First
  • Quick Start
  • Essential Rules
  • Mode Selection Guide
  • Run Once for All Items (Recommended - Default)
  • Run Once for Each Item
  • Python Modes: Beta vs Native

Expert guidance for writing Python code in n8n Code nodes. -- Recommendation: Use JavaScript for 95% of use cases. Only use Python when: You need specific Python standard library functions You're significantly more comfortable with Python syntax You're doing data transformations better suited to Python Why JavaScript is preferred: Full n8n helper functions ($helpers.httpRequest, etc.) Luxon DateTime library for advanced date/time operations No external library limitations Better n8n documentation and community support -- 1. Consider JavaScript first - Use Python only when necessary 2. Access data: input.all(), input.first(), or input.item 3. CRITICAL: Must return [{"json": {...}}] format 4. CRITICAL: Webhook data is under json["body"] (not json directly) 5. CRITICAL LIMITATION: No external libraries (no requests, pandas, numpy) 6. Standard library only: json, datetime, re, base64, hashlib, urllib.parse, math, random, statistics -- Same as JavaScript - choose based on your use case: Use this mode for: 95% of use cases How it works: Code executes once regardless of input count Data access: input.all() or items array (Native mode) Best for: Aggregation, filtering, batch processing, tr

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
davila7/claude-code-templates
Source file
cli-tool/components/skills/workflow-automation/n8n/n8n-code-python/SKILL.md
Fixed revision
21be197f100a12b8d0dd9a211cc244c8179f84d3
Read the complete original documentation ↗

Requirements

  • Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.

A small first task

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

Instructions for your AI tool

Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: davila7/claude-code-templates · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T15:01:40.954Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.