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)

n8n
Searching Database…

What is this?A set of 14 Claude Code skills (plus a router skill and hooks enforcement layer) that teach AI assistants how to build production-ready n8n workflows using the n8n-mcp MCP server, and how to self-host n8n to run them.
Is this a standalone app, or a plugin for Claude Code?It's a skills pack (plus hooks and a router skill) for Claude Code / Claude.ai / Claude API — it doesn't run on its own, it extends an AI assistant's knowledge of n8n.
How do I install these skills?In Claude Code, install via the plugin marketplace or manually; on Claude.ai, download individual skill folders, zip them, and upload under Settings → Capabilities → Skills.
Do I need the n8n-mcp MCP server set up first?Yes — you need the n8n-mcp MCP server installed and configured, plus Claude Code, Claude.ai, or Claude API access, and an .mcp.json pointing to the n8n-mcp server.
Do the proactive hooks work everywhere, or only in Claude Code?The PreToolUse/PostToolUse hooks and router only fire in the Claude Code / Codex plugin install; on Claude.ai individual skill uploads still activate by description but lose those proactive nudges, and every hook fails open so it never blocks a tool call.
Which platforms does this run on?It's used inside Claude Code / Claude.ai / Claude API on any OS, and the included self-hosting skill specifically targets deploying n8n to a Linux VM.
What's the n8n Self-Hosting skill actually set up for me?It deploys n8n via Docker Compose behind Caddy with automatic HTTPS, offering single-mode (SQLite) or queue-mode (Postgres + Redis + workers) templates, generates fresh secrets on the box, and verifies certs and reachability end-to-end.
What is the Code Tool skill and how is it different from the regular Code node skill?It covers the AI-agent-callable Custom Code Tool (toolCode), a different node type from the regular Code node with its own sandbox, input binding via query instead of $fromAI, and a plain string return format instead of [{json:{...}}].
How does the router/hooks enforcement layer help beyond the skill descriptions?A SessionStart hook loads a router skill into every session that points to the right skill and summarizes n8n-mcp tools, while PreToolUse/PostToolUse hooks fire targeted reminders before risky MCP calls and after validation, re-triggering on repeated lookups.
Why does the Python Code skill warn against using Python?Because n8n's Python Code node sandbox has no access to external libraries like requests, pandas, or numpy, so the skill recommends JavaScript for 95% of use cases and documents stdlib-only workarounds.
Size
5.6 MB
Stars
6.5K
Age
11mo
Commits · 90 Days