n8n-skills README

The project's README from github.com/czlonkowski/n8n-skills. As one markdown file: README.md.

n8n-skills

Expert Claude Code skills for building flawless n8n workflows using the n8n-mcp MCP server

skills.sh GitHub stars License: MIT n8n-mcp

Watch the Introduction Video

n8n Skills Introduction

💼 Need it built for you? Work with AiAdvisors — n8n automation audits, builds, and operations, run by the author of n8n-mcp and n8n-skills.


🎯 What is this?

This repository contains 14 complementary Claude Code skills — plus an always-on router skill and a hooks enforcement layer — that teach AI assistants how to build production-ready n8n workflows using the n8n-mcp MCP server, and how to deploy the self-hosted n8n that runs them.

Why These Skills Exist

Building n8n workflows programmatically can be challenging. Common issues include:

These skills solve these problems by teaching Claude:


📚 The 14 Skills

1. n8n Expression Syntax

Teaches correct n8n expression syntax and common patterns.

Activates when: Writing expressions, using {{}} syntax, accessing $json/$node variables, troubleshooting expression errors.

Key Features:

2. n8n MCP Tools Expert (HIGHEST PRIORITY)

Expert guide for using n8n-mcp MCP tools effectively.

Activates when: Searching for nodes, validating configurations, accessing templates, managing workflows.

Key Features:

Most Important: Teaches correct MCP tool usage patterns and parameter formats

3. n8n Workflow Patterns

Build workflows using 5 proven architectural patterns.

Activates when: Creating workflows, connecting nodes, designing automation.

Key Features:

4. n8n Validation Expert

Interpret validation errors and guide fixing.

Activates when: Validation fails, debugging workflow errors, handling false positives.

Key Features:

5. n8n Node Configuration

Operation-aware node configuration guidance.

Activates when: Configuring nodes, understanding property dependencies, setting up AI workflows.

Key Features:

6. n8n Code JavaScript

Write effective JavaScript code in n8n Code nodes.

Activates when: Writing JavaScript in Code nodes, troubleshooting Code node errors, making HTTP requests with this.helpers (the $helpers global), working with dates.

Key Features:

7. n8n Code Python

Write Python code in n8n Code nodes with proper limitations awareness.

Activates when: Writing Python in Code nodes, need to know Python limitations, working with standard library.

Key Features:

8. n8n Code Tool

Write code for the AI-agent-callable Custom Code Tool (@n8n/n8n-nodes-langchain.toolCode) — a different node from the regular Code node with a different contract.

Activates when: Building a Code Tool attached to an AI Agent, troubleshooting "Wrong output type returned" or "No execution data available" errors, deciding between unstructured query parsing and specifyInputSchema.

Key Features:

9. n8n Error Handling

Make failures loud, structured, and recoverable.

Activates when: Building webhook/API or unattended workflows, wiring error outputs, setting retries, designing 4xx/5xx responses, or chasing silent failures.

Key Features:

10. n8n Binary & Data

Handle files, images, and binary data correctly.

Activates when: Working with files, images, PDFs, attachments, uploads/downloads, vision input, or passing a file to/from an AI agent tool.

Key Features:

11. n8n Sub-workflows

Build reusable, composable sub-workflows.

Activates when: Extracting shared logic, building multi-step or reused workflows, or any workflow over ~10 nodes.

Key Features:

12. n8n AI Agents

Design n8n AI agents the right way.

Activates when: Building any @n8n/n8n-nodes-langchain.* node — AI Agent, LLM chain, Text Classifier — or working with tool calling, $fromAI, memory, structured output, RAG, or chat bots.

Key Features:

13. n8n Multi-Instance

Target the right n8n instance when an account has more than one.

Activates when: The n8n_instances tool is available, the user mentions multiple instances/environments (prod vs staging, several clients), or a call returns an unexpected NOT_FOUND or wrong/empty data.

Key Features:

14. n8n Self-Hosting (deployment/ops)

Deploy a production self-hosted n8n end-to-end to a fresh Linux VM.

Activates when: Self-hosting, installing, or deploying n8n on your own server/VPS (Hetzner, DigitalOcean, EC2, bare metal) — single or queue mode — or updating/backing-up/hardening it. Not for n8n Cloud, and not for building workflows.

Key Features:

This is the pack's one deployment skill; it triggers on its own description and is not part of the workflow-building router/hooks flow.


🪝 Enforcement Layer (hooks + router)

Beyond the capability skills, the plugin ships an always-on enforcement layer so the right guidance surfaces at the moment of decision — not only when a query happens to match a skill description.

Hooks run only in the Claude Code / Codex plugin install. On Claude.ai (individual skill uploads) the skills still activate by description — the pack degrades gracefully, just without the proactive nudges. Every hook fails open and never blocks a tool call.


🚀 Installation

Prerequisites

  1. n8n-mcp MCP server installed and configured (Installation Guide)
  2. Claude Code, Claude.ai, or Claude API access
  3. .mcp.json configured with n8n-mcp server

Claude Code

Method 1: Plugin Installation (Recommended)

# Install directly as a Claude Code plugin
/plugin install czlonkowski/n8n-skills

Method 2: Via Marketplace

# Add as marketplace, then browse and install
/plugin marketplace add czlonkowski/n8n-skills

# Then browse available plugins
/plugin install
# Select "n8n-mcp-skills" from the list

Method 3: Manual Installation

# 1. Clone this repository
git clone https://github.com/czlonkowski/n8n-skills.git

# 2. Copy skills to your Claude Code skills directory
cp -r n8n-skills/skills/* ~/.claude/skills/

# 3. Reload Claude Code
# Skills will activate automatically

Claude.ai

  1. Download individual skill folders from skills/
  2. Zip each skill folder (or grab prebuilt zips from the latest release)
  3. Upload via Settings → Capabilities → Skills

API / SDK

See docs/INSTALLATION.md for detailed instructions.


💡 Usage

Skills activate automatically when relevant queries are detected:

"How do I write n8n expressions?"
→ Activates: n8n Expression Syntax

"Find me a Slack node"
→ Activates: n8n MCP Tools Expert

"Build a webhook workflow"
→ Activates: n8n Workflow Patterns

"Why is validation failing?"
→ Activates: n8n Validation Expert

"How do I configure the HTTP Request node?"
→ Activates: n8n Node Configuration

"How do I access webhook data in a Code node?"
→ Activates: n8n Code JavaScript

"Can I use pandas in Python Code node?"
→ Activates: n8n Code Python

"Why does my Code Tool throw 'Wrong output type returned'?"
→ Activates: n8n Code Tool

Skills Work Together

When you ask: "Build and validate a webhook to Slack workflow"

  1. n8n Workflow Patterns identifies webhook processing pattern
  2. n8n MCP Tools Expert searches for webhook and Slack nodes
  3. n8n Node Configuration guides node setup
  4. n8n Code JavaScript helps process webhook data with proper .body access
  5. n8n Expression Syntax helps with data mapping in other nodes
  6. n8n Validation Expert validates the final workflow

All skills compose seamlessly!


📖 Documentation


🧪 Testing

Each skill includes 3+ evaluations for quality assurance:

# Run evaluations (if testing framework available)
npm test

# Or manually test with Claude
claude-code --skill n8n-expression-syntax "Test webhook data access"

🤝 Contributing

Contributions welcome! Please see DEVELOPMENT.md for guidelines.

Development Approach

  1. Evaluation-First: Write test scenarios before implementation
  2. MCP-Informed: Test tools, document real responses
  3. Iterative: Test against evaluations, iterate until 100% pass
  4. Concise: Keep SKILL.md under 500 lines
  5. Real Examples: All examples from real templates/tools

📝 License

MIT License - see LICENSE file for details.


🙏 Credits

Conceived by Romuald Członkowski

The hooks enforcement layer adapts patterns from the official n8n Skills project (Apache-2.0), retargeted for n8n-mcp and rewritten in our own voice. See NOTICES.



📊 What's Included


Ready to build flawless n8n workflows? Get started now! 🚀


💼 Need it built for you?

Work with AiAdvisors — n8n automation audits, builds, and operations, run by the author of n8n-mcp and n8n-skills.

n8n-skills (czlonkowski/n8n-skills)

Searching Database…

这是什么?一套包含 14 个 Claude Code 技能的合集(外加一个路由技能和 hooks 强制执行层),教 AI 助手如何使用 n8n-mcp MCP 服务器构建可用于生产环境的 n8n 工作流,以及如何自托管 n8n 来运行这些工作流。
这是独立应用,还是 Claude Code 的插件?它是面向 Claude Code / Claude.ai / Claude API 的技能包(外加 hooks 和一个路由技能)——它本身不能独立运行,而是扩展 AI 助手对 n8n 的了解。
怎么安装这些技能?在 Claude Code 中,通过插件市场安装或手动安装;在 Claude.ai 上,先下载单个技能文件夹并打包成 zip,然后在 Settings → Capabilities → Skills 下上传。
我需要先配置好 n8n-mcp MCP 服务器吗?需要——你需要安装并配置 n8n-mcp MCP 服务器,还要能访问 Claude Code、Claude.ai 或 Claude API,并有一个指向 n8n-mcp 服务器的 .mcp.json。
这些主动式 hooks 是在所有地方都生效,还是只在 Claude Code 中生效?PreToolUse/PostToolUse hooks 和路由技能只在 Claude Code / Codex 插件安装方式下生效;在 Claude.ai 上单独上传技能仍可按描述激活,但会失去这些主动提示;此外所有 hooks 在出错时都会放行,因此绝不会阻断工具调用。
它运行在哪些平台上?它可在任何操作系统上的 Claude Code / Claude.ai / Claude API 中使用,自带的 self-hosting(自托管)技能则专门面向将 n8n 部署到 Linux 虚拟机的场景。
n8n Self-Hosting 技能实际会为我搭建什么?它通过 Docker Compose 把 n8n 部署在 Caddy 之后并自动配置 HTTPS,提供单机模式(SQLite)或队列模式(Postgres + Redis + workers)模板,在服务器上现场生成全新密钥,并端到端验证证书和可达性。
Code Tool 技能是什么,它和普通的 Code 节点技能有什么区别?它介绍的是可被 AI 代理调用的 Custom Code Tool(toolCode),这是一种与普通 Code 节点不同的节点类型:拥有自己的沙盒,通过 query 而非 $fromAI 绑定输入,返回格式是纯字符串而不是 [{json:{...}}]。
除了技能描述之外,路由/hooks 强制执行层还能提供什么帮助?SessionStart hook 会在每个会话中加载一个路由技能,它指向正确的技能并概述 n8n-mcp 工具;PreToolUse/PostToolUse hooks 则会在有风险的 MCP 调用之前和验证之后触发针对性提醒,并在重复查询时再次触发。
为什么 Python Code 技能警告不要使用 Python?因为 n8n 的 Python Code 节点沙盒无法访问 requests、pandas、numpy 等外部库,所以该技能建议在 95% 的场景中改用 JavaScript,并记录了仅用标准库的替代方案。
Size
5.6 MB
Stars
6.5K
Age
11mo
Commits · 90 Days