using-n8n-mcp-skills
它能做什么
这是一组 n8n 技能的入口指南,会针对每项任务把 AI 智能体引向对应的专门技能,例如表达式、节点或凭据。适合通过 n8n-mcp 连接 AI 智能体来构建 n8n 工作流的人。
适用场景
- ✓当你要求智能体通过 n8n-mcp 构建或修改 n8n 工作流时。
- ✓当某个 n8n 工作流运行异常,你希望智能体正确地诊断时。
- ✓当你不确定哪项 n8n 技能涵盖你要做的任务时。
技能链接
https://github.com/czlonkowski/n8n-mcp/blob/main/data/skills/using-n8n-mcp-skills/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请构建一个 n8n 工作流,把新的表单提交内容发送到电子表格中。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会先阅读本指南,然后在执行每个步骤之前,加载与之匹配的专门技能,从而遵循该步骤的规则。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Using the n8n-mcp Skills
This is a router, not a reference. It tells you which skill owns the rules for what you're about to do. The skill bodies hold the actual guidance — invoke them with the Skill tool. When in doubt, load more skills rather than fewer.
The community n8n-mcp server and n8n itself move faster than any model's training
cutoff. Tool names, parameters, node typeVersions, and default behaviors drift between
releases. When you spot drift — a tool a skill names doesn't exist, a parameter shape
doesn't match what get_node returns, behavior differs from what a skill describes —
trust the live tool, tell the user, and suggest updating the pack and the instance.
Non-negotiables
Three rules with no exceptions. Each one prevents a class of workflow that looks correct but breaks in production.
- Invoke the relevant skill before any n8n action — not just before MCP calls. Before writing an expression, configuring a node, designing a workflow, wiring a connection, or writing Code, invoke the matching skill. PreToolUse hooks remind you on the highest-impact tool calls, but they exist only in the Claude Code plugin install. Everywhere else — Claude.ai skill uploads, and any client that loads this pack as an Agent Plugin (Codex, Cursor, Copilot and the rest) — nothing nudges you and the responsibility is entirely yours. Assume you are un-hooked unless you have seen a hook fire this session.
- Validate AND verify before activating. Run
validate_workflow(orn8n_validate_workflowby id) before you activate, and calln8n_get_workflowafter every create or update to inspect theconnectionsobject. Validation alone misses silently dropped wires, Merge index off-by-one, and error outputs that were never wired. Validation passing means the JSON is well-formed — not that the workflow is correct. - Secrets never go in text fields. Tokens, API keys, and passwords always go through
the n8n credential system. If no native node exists, use the HTTP Request node with
the official credential type. A Set node holding a token referenced via
{{ $json.token }}is a leak with extra steps. Seen8n-mcp-tools-expert.
Lean on skills, not training data
n8n changes constantly. "Remembered" parameter names are often silently wrong — they
validate as plain strings and then do nothing at runtime. Trust the skills and the live
tools (get_node, search_nodes, tools_documentation) over recollection. If a skill
contradicts your memory, trust the skill. If get_node contradicts a skill, trust the
tool and flag the drift.
Strong defaults
Each skill owns its own exceptions; these are the defaults.
- The Code node is a last resort. Expression first, then an arrow function inside Edit
Fields, then a Code node only when neither can do the job. See
n8n-code-javascript. - A Set node feeding 0–1 consumers is almost always wrong. Inline the expression at
the consumer instead. See
n8n-expression-syntax. - Per-item iteration is automatic. Don't add a Loop Over Items node to "make it loop" when default per-item execution already handles the case.
- Configure from the live schema, never from memory.
get_nodebefore you set parameters. Seen8n-node-configuration.
Red flags: "about to ___" → invoke ___
If you catch yourself thinking any of these, stop and invoke the named skill first.
| Thought | Invoke |
|---|---|
| "This workflow is simple, I'll just build it" | n8n-workflow-patterns — most "simple" flows ship at 10+ nodes |
| "I'll add a Set node to map these fields" | n8n-expression-syntax — Set feeding ≤1 consumer is the #1 antipattern |
| "I'll just use a Code node, it's easier" | n8n-code-javascript — the bar is high; most reaches are expressions or Edit Fields |
| "The user mentioned data, I'll write Python" | n8n-code-javascript — default JS; Python (n8n-code-python) only on explicit ask |
| "I'm writing code an AI agent will call" | n8n-code-tool — a different runtime contract from the Code node |
| "Date math — I'll drop in a DateTime node" | n8n-expression-syntax — Luxon inline is almost always right |
| "I'll wire a Merge with 3 sources" | n8n-node-configuration — Merge defaults to 2 inputs; the 3rd silently drops |
| "Validation passed, I'm ready to activate" | n8n-validation-expert + n8n-workflow-patterns — run the antipattern scan |
| "Validation threw an error I don't under |
常见问题
智能体每个 n8n 步骤都会使用这份指南吗?
会。指南要求在执行任何 n8n 操作之前加载相关的专门技能,而不仅仅是在工具调用之前。
这份指南会取代专门技能吗?
不会。它是一个路由,负责指向这些技能,并提供 n8n-mcp 工具的基础知识。
如果工具在技能编写之后有所改变,怎么办?
技能说明应以实际运行的工具为准,指出差异,并建议更新该技能包。
详情
作者的原始描述
Use when building, editing, validating, testing, or debugging an n8n workflow through the n8n-mcp MCP server — designing a flow, configuring a node, writing an expression or Code node, wiring credentials, or fixing one that misbehaves. The entry-point skill for the n8n-mcp-skills pack: it routes you to the right specialist skill, gives working knowledge of every n8n-mcp tool from turn one, and states the rules that keep workflows from breaking in production. Always consult it first on any n8n, workflow, node, or automation task — even a quick one-off, and even when the user names no skill — be
repo: czlonkowski/n8n-mcp
热度
- GitHub 星标
- 23k
- 排名
- #10132
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …