N8n Code Python

czlonkowski/n8n-skills/skills/n8n-code-python

作者 czlonkowski19cd793f4789无许可证6.3K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库3周前更新

Write Python in n8n Code nodes (native Python, `language` pythonNative, n8n 2.x). Use when the user explicitly wants Python in a Code node, when migrating old Pyodide/"Python (Beta)" code that used _input/_json/_node/_now, or when a Python Code node fails with NameError, "Security violations detected", "Import of standard library module … is disallowed", "__build_class__ not found", "A 'json' property isn't a dictionary", or "Python runner unavailable". Covers the only two variables (_items/_item), dict-only access, imports blocked by default, the sandbox's denied builtins, accepted return shapes, and how errors interact with onError. JavaScript is the default for Code nodes — native Python has no n8n helpers and, by default, no imports. EXCEPTION — for Python in the AI-agent-callable Custom Code Tool (@n8n/n8n-nodes-langchain.toolCode), use the n8n-code-tool skill instead (input is _query, return must be a string).

添加到 SourceWeft 工作区

  1. 在控制台中打开该技能,并将它添加到工作区。
  2. 为需要使用它的对话启用该技能。

该技能仅含说明:不附带任何可执行的脚本。

添加到 SourceWeft

系统会先要求你登录,然后直接带你回到这个技能。

让你的智能体来安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 或其他能运行命令的智能体中,也可以粘贴到 SourceWeft 对话里。智能体会阅读这个技能的安装说明,向你展示它的来源、许可证和脚本情况,在你同意后用 SourceWeft CLI 安装。

阅读 https://sourceweft.com/skills/gh-czlonkowski-n8n-skills-n8n-code-python/install.md 中的说明,按说明安装这个技能。安装前先告诉我它的来源、许可证以及是否附带脚本,等我确认。修改我电脑上的其他任何内容之前也要先问我。

查看智能体所遵循的安装说明

用命令行自行安装

适用于 Claude Code、Codex、Cursor 及其他本地智能体。SourceWeft CLI 会从源代码仓库中获取此处扫描过的那次提交,并根据扫描时记录的哈希值逐一校验每个文件。只要有任何不一致,就不会写入任何内容。

npx @sourceweft/cli skills install @czlonkowski/n8n-code-python

添加 --agent claude-code、codex、cursor 或 universal 来选择安装给哪个智能体(默认为 Claude Code)。

上游安装器——未经 SourceWeft 校验

开源的 skills 安装器会获取同一个固定的提交,但不会根据 SourceWeft 记录的哈希值校验文件。

npx skills add https://github.com/czlonkowski/n8n-skills/tree/19cd793f4789e3ef9c657ccf26e097f641a77df0/skills/n8n-code-python

来源与署名

来源:czlonkowski/n8n-skills位于skills/n8n-code-python提交19cd793

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架

更多来自 czlonkowski/n8n-skills 的技能

Using N8n Mcp Skills

czlonkowski

将 n8n 工作流任务路由到对应的专项技能,并说明 n8n-mcp 工具集。

AI & Agents6.3K3周前更新

N8n Validation Expert

czlonkowski

指导解读并修复 n8n 工作流验证错误、警告与误报。

Software Development6.3K3周前更新

N8n Subworkflows

czlonkowski

指导构建可复用、可组合的 n8n 子工作流,包含类型化输入、清晰契约与正确的调用模式。

AI & Agents6.3K3周前更新

N8n Multi Instance

czlonkowski

Use when an n8n-mcp account targets more than one n8n instance — i.e. the `n8n_instances` tool is available, the user mentions multiple n8n instances or environments (prod vs staging, several teams or clients), a workflow / datatable / credential / execution call returns an unexpected NOT_FOUND or reads data you don't recognize, or a credential create/update/delete is refused with an `INSTANCE_AMBIGUOUS` error. Covers choosing and switching which instance this MCP session targets, verifying the target before high-stakes work — credential writes above all — and recovering from misroutes and ambiguous-write fail-closes. Always consult this skill before operating on a specific instance, before any credential create/update/delete on a multi-instance account, or when a call hits the wrong/empty data or an `INSTANCE_AMBIGUOUS` error.

待分类6.3K3周前更新

N8n Mcp Tools Expert

czlonkowski

指导智能体正确使用 n8n-mcp MCP 工具来搜索节点、校验配置并管理 n8n 工作流。

AI & Agents6.3K3周前更新

N8n Expression Syntax

czlonkowski

指导编写和调试 n8n 表达式,涵盖 {{}} 语法、$json/$node 变量以及 $jmespath 查询。

Software Development6.3K3周前更新