What problem does it solve?
This Skill clarifies how to responsibly write Python code in n8n Code nodes by outlining the no-external-libraries constraint, standard library usage, and the required code output format, reducing common errors and misconfigurations.
Core Features & Use Cases
- Learn to safely access data in Code nodes using _input.all(), _input.first(), _input.item and access webhook payloads via _json["body"].
- Leverage Python's standard library (json, datetime, re, base64, hashlib, urllib.parse, math, random, statistics) for common transformations, validation, and lightweight analytics without external packages.
- Use proven patterns (data transformation, filtering, aggregation, regex extraction) to build robust workflows inside n8n, with examples and best practices.
Quick Start
Create a Code node, import _input, and implement a small transformation that processes all items and returns a list of {"json": {...}} objects. Then consult the accompanying MD docs (DATA_ACCESS.md and COMMON_PATTERNS.md) for deeper patterns and caveats.