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 (плюс навык-роутер и слой принудительного применения хуков), которые учат AI-ассистентов собирать готовые к продакшену воркфлоу n8n с помощью MCP-сервера n8n-mcp и самостоятельно разворачивать n8n для их запуска.
Это отдельное приложение или плагин для Claude Code?Это пакет навыков (плюс хуки и навык-роутер) для Claude Code / Claude.ai / Claude API — сам по себе он не запускается, а расширяет знания AI-ассистента о n8n.
Как установить эти навыки?В Claude Code — установите через маркетплейс плагинов или вручную; в Claude.ai — скачайте папки нужных навыков, заархивируйте их в zip и загрузите в разделе Settings → Capabilities → Skills.
Нужно ли сначала настроить MCP-сервер n8n-mcp?Да — нужен установленный и настроенный MCP-сервер n8n-mcp, а также Claude Code, Claude.ai или доступ к Claude API и файл .mcp.json, указывающий на сервер n8n-mcp.
Проактивные хуки работают везде или только в Claude Code?Хуки PreToolUse/PostToolUse и роутер срабатывают только при установке плагина в Claude Code / Codex; в Claude.ai загруженные отдельные навыки по-прежнему активируются по описанию, но теряют эти проактивные подсказки, причём каждый хук «fail open» — он никогда не блокирует вызов инструмента.
На каких платформах это работает?Используется внутри Claude Code / Claude.ai / Claude API на любой ОС, а входящий навык по self-hosting ориентирован на развёртывание n8n на Linux-виртуалке.
Что именно настраивает навык n8n Self-Hosting?Он разворачивает n8n через Docker Compose за Caddy с автоматическим HTTPS, предлагает шаблоны single-mode (SQLite) или queue-mode (Postgres + Redis + воркеры), генерирует свежие секреты прямо на сервере и сквозно проверяет сертификаты и доступность.
Что такое навык Code Tool и чем он отличается от обычного навыка Code node?Он описывает Custom Code Tool (toolCode), вызываемый AI-агентом, — это другой тип узла, не обычный Code node: у него своя песочница, привязка входов через query вместо $fromAI и формат возврата в виде простой строки вместо [{json:{...}}].
Чем слой роутера/хуков помогает помимо описаний навыков?Хук SessionStart загружает в каждую сессию навык-роутер, который указывает на нужный навык и обобщает инструменты n8n-mcp, а хуки PreToolUse/PostToolUse выдают адресные напоминания перед рискованными MCP-вызовами и после валидации, срабатывая повторно при повторных запросах.
Почему навык Python Code предостерегает от использования Python?Потому что песочница узла Python Code в n8n не имеет доступа к внешним библиотекам вроде requests, pandas или numpy, поэтому навык рекомендует JavaScript в 95% случаев и описывает обходные пути только на стандартной библиотеке.
Size
5.6 MB
Stars
6.5K
Age
11mo
Commits · 90 Days