n8n Code Python Skill for Native Item Transformations
Use Claude Code to write a Native Python item transformation and verify the output envelope in a local workflow.
中文Install in Claude Code
Use local n8n and a configured Native Python runner. The pinned source also discusses legacy Pyodide, so match the native mode to your installed version.
- Get the complete `cli-tool/components/skills/workflow-automation/n8n/n8n-code-python` directory from the pinned GitHub commit.
- Copy it into the target project's `.claude/skills/`. Check `.claude/skills/n8n-code-python/SKILL.md`, start Claude Code at the project root, and call `/n8n-code-python`.
Example task
Use Run Once for All Items. Iterate _items containing mug and cup, preserve each id, and set processed=True in the returned JSON items.What to check
Two items reach the next node with original IDs and processed set. The output inspector shows the expected shape.
Original SKILL.md on GitHub · Updated
Frequently asked question
Do the older Pyodide beta helpers still work in n8n 2.x?
n8n 2.0 removed Pyodide. This example uses Native Python's _items. Check other entry points for your installed version.