n8n Python Code Specialist

•
41k
•

Provides expert guidance and implementation patterns for writing valid Python scripts within n8n Code nodes.

This skill equips Claude with the specific constraints and syntax requirements for n8n's Python execution environment, ensuring generated code is production-ready. It manages the critical nuances of n8n's Python (Beta) and Native modes, enforcing the mandatory list-of-dictionaries return format and correctly navigating the _input, _json, and _node helper objects. By strictly adhering to standard library limitations—preventing common errors like unauthorized external imports—this skill is essential for developers performing complex data transformations, statistical analysis, or regex operations within an n8n automation workflow.

주요 기능

01Optimized patterns for 'Run Once for All Items' versus 'Each Item' execution modes
02Webhook data handling logic for correctly accessing the nested ['body'] object
03Strict enforcement of n8n's standard library-only limitation (no external packages)
0440,657 GitHub stars
05Correct return format validation using the mandatory [{'json': ...}] structure
06Expert syntax guidance for _input.all(), _input.first(), and _node helpers

사용 사례

01Aggregating and filtering large datasets from previous nodes using list comprehensions
02Performing statistical analysis on workflow data using the Python statistics module
03Complex string manipulation and data cleaning with Python's native regex engine