agentleFS
czlonkowskiczlonkowski/n8n-skills/CLAUDE.md

n8n-skills

CLAUDE.md6.4k starsChanged 3 months agoMITView on GitHub

This is the n8n-skills repository - a collection of Claude Code skills designed to teach AI assistants how to build flawless n8n workflows using the n8n-mcp MCP server. Repository: https://github.com/czlonkowski/n8n-skills Purpose: 14 complementary skills that provide expert guidance on using n8n-mcp MCP tools effectively for building n8n workflows, plus deploying the self-hosted n8n that runs them. Architecture: - n8n-mcp MCP Server: Provides data access (800+ nodes, validation, templates, workflow management) - Claude Skills: Provides expert guidance on HOW to use…

  • Installs packages

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 8 mentionsMar 2026: 0 mentionsApr 2026: 2 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 3 mentionsSep 2026: 4 mentionsOct 2026: 3 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the czlonkowski/n8n-skills repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about czlonkowski/n8n-skills

The biggest 5 of 22 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 22

Talked about on GitHub (22 times).

On GitHub · 22

17 more on GitHub

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

14 rules. About 0 are common, 9 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write JavaScript in n8n Code nodes

    line 79
  2. Very specific:

    Write code for the AI-agent-callable Custom Code Tool (@n8n/n8n-nodes-langchain.toolCode)

    line 87
  3. Very specific:

    Verify current before credential writes (the server fail-closes only the ambiguous case with INSTANCE_AMBIGUOUS).

    line 109
  4. Very specific:

    Create skill directory under skills/

    line 184
  5. Very specific:

    Write SKILL.md with frontmatter

    line 185
  6. Distinctive:

    Add reference files as needed

    line 186
  7. Very specific:

    Create 3+ evaluations in evaluations/

    line 187
  8. Distinctive:

    Test thoroughly before committing

    line 188
  9. Distinctive:

    Use n8n Workflow Patterns to identify structure

    line 198
  10. Distinctive:

    Use n8n MCP Tools Expert to find nodes

    line 199
  11. Distinctive:

    Use n8n Node Configuration for setup

    line 200
  12. Distinctive:

    Use n8n Expression Syntax for data mapping

    line 201
  13. Distinctive:

    Use n8n Code JavaScript/Python for custom logic

    line 202
  14. Distinctive:

    Use n8n Validation Expert to validate

    line 203

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

This is the n8n-skills repository - a collection of Claude Code skills designed to teach AI assistants how to build flawless n8n workflows using the n8n-mcp MCP server.

Repository: https://github.com/czlonkowski/n8n-skills

Purpose: 14 complementary skills that provide expert guidance on using n8n-mcp MCP tools effectively for building n8n workflows, plus deploying the self-hosted n8n that runs them.

Architecture:

  • n8n-mcp MCP Server: Provides data access (800+ nodes, validation, templates, workflow management)
  • Claude Skills: Provides expert guidance on HOW to use MCP tools
  • Together: Expert workflow builder with progressive disclosure

Repository Structure

n8n-skills/
├── README.md              # Project overview with video
├── LICENSE                # MIT License
├── skills/                # Individual skill implementations
│   ├── n8n-expression-syntax/
│   ├── n8n-mcp-tools-expert/
│   ├── n8n-workflow-patterns/
│   ├── n8n-validation-expert/
│   ├── n8n-node-configuration/
│   ├── n8n-code-javascript/
│   ├── n8n-code-python/
│   ├── n8n-code-tool/
│   ├── n8n-error-handling/
│   ├── n8n-binary-and-data/
│   ├── n8n-subworkflows/
│   ├── n8n-agents/
│   ├── n8n-multi-instance/
│   ├── n8n-self-hosting/         # Deployment/ops skill (deploy n8n to a VM); not in the router/hooks flow
│   └── using-n8n-mcp-skills/  # Always-on router skill (loaded by SessionStart hook)
├── hooks/                 # Enforcement layer: hooks.json + SessionStart/PreToolUse/PostToolUse scripts
├── evaluations/           # Test scenarios for each skill
├── docs/                  # Documentation
├── dist/                  # Build output (gitignored — zips ship as GitHub Release assets, never committed; committed zips broke Desktop/Cowork plugin installs)
├── NOTICES                # Attribution for Apache-2.0 material adapted from n8n-io/skills
└── .claude-plugin/        # Claude Code plugin configuration

Enforcement layer (hooks/): the plugin ships hooks that surface the right skill at the moment of decision. session-start.sh injects the using-n8n-mcp-skills router every session; PreToolUse hooks fire node-specific reminders on get_node, one-shot reminders on create/update/validate/test, and one-shot multi-instance/credential reminders on n8n_instances/n8n_manage_credentials; the PostToolUse hook parses validate_workflow's node JSON and routes to the relevant skills. Hooks run only in the Claude Code / Codex plugin install (not Claude.ai zip uploads), fail open, and never block a tool call. Attribution for the adapted scripts lives in NOTICES and the script headers — never inside agent-facing SKILL.md content.

The 14 Skills

1. n8n Expression Syntax

  • Teaches correct n8n expression syntax ({{}} patterns)
  • Covers common mistakes and fixes
  • Critical gotcha: Webhook data under $json.body
  • $jmespath(object, query) for querying nested JSON in one expression (quoting rules: 'string', `number`, "field"; json. prefix over .all())
  • Runtime JS errors inside {{ }} resolve silently to null (only n8n's own ExpressionErrors fail the node) — test with real items

2. n8n MCP Tools Expert (HIGHEST PRIORITY)

  • Teaches how to use n8n-mcp MCP tools effectively
  • Covers unified tools: get_node, validate_node, search_nodes
  • Workflow management with n8n_update_partial_workflow
  • New: n8n_deploy_template, n8n_workflow_versions, activateWorkflow

3. n8n Workflow Patterns

  • Teaches proven workflow architectural patterns
  • 5 patterns: webhook, HTTP API, database, AI, scheduled

4. n8n Validation Expert

  • Interprets validation errors and guides fixing
  • Handles false positives and validation loops
  • Auto-fix with n8n_autofix_workflow

5. n8n Node Configuration

  • Operation-aware node configuration guidance
  • Property dependencies and common patterns

6. n8n Code JavaScript

  • Write JavaScript in n8n Code nodes
  • Data access patterns, $helpers, DateTime

7. n8n Code Python

  • Native Python (n8n 2.x, pythonNative): only _items/_item, dict access; the Pyodide helpers (_input, _json, _node, _now, _jmespath) raise NameError
  • Imports blocked by default (instance allowlist; none on Cloud); sandbox limits (no classes/type()/dunders, nonlocal not global); verified return shapes and the continueRegularOutput passthrough trap

8. n8n Code Tool

  • Write code for the AI-agent-callable Custom Code Tool (@n8n/n8n-nodes-langchain.toolCode)
  • Critical distinction from Code node: return a string (not [{json:{...}}]), $fromAI() not available, different sandbox
  • Unstructured (query string) vs structured (specifyInputSchema) input modes

9. n8n Error Handling

  • Per-node error outputs (onError: continueErrorOutput + wiring main[1]), retryOnFail self-healing
  • 4xx/5xx response shapes; responseCode defaults to 200 even on error; Error Trigger workflows for unattended runs

10. n8n Binary & Data

  • $binary vs $json; reading/writing binary; Merge to preserve binary across transforms
  • Agent-tool binary boundary (pre-stage to storage, pass keys/URLs); CDN requirement for chat images

11. n8n Sub-workflows

  • Execute Workflow Trigger Define-Below typed inputs; mode: all vs each + waitForSubWorkflow
  • Verb-first prefix naming for discovery; stateless vs stateful; N+1 split-by-input-shape

12. n8n AI Agents

  • Agent vs LLM Chain vs Text Classifier; model/memory/tools/outputParser slots; $fromAI tool params
  • Tool names/descriptions as prompt; structured output + autoFix; memory/sessionId; human review; chat topologies

13. n8n Multi-Instance

  • n8n_instances list/switch; per-session target binding that persists across reconnects/deploys; uniform resolution across all tools
  • Verify current before credential writes (the server fail-closes only the ambiguous case with INSTANCE_AMBIGUOUS); NOT_FOUND ≈ wrong-instance misroute, not deletion; copy-between-instances flow

14. n8n Self-Hosting (deployment/ops, not workflow-building)

  • Deploy production self-hosted n8n end-to-end to a fresh Linux VM: Docker Compose behind Caddy (auto-TLS), single OR queue mode (asks the user first)
  • Secret-free/domain-free templates in assets/; fresh secrets generated on the box; secure defaults; DNS/ports preflight; Day-2 update/backup/restore
  • Python Code nodes need task runners in external mode: an n8nio/runners sidecar on the exact n8n version (the stock image has no Python 3, so internal mode fails with "Python runner unavailable"); one sidecar per queue worker; Python imports are all blocked until allowlisted in the sidecar's /etc/n8n-task-runners.json (TASK_RUNNERS.md)
  • Queue-mode env parity: the x-n8n-env anchor is the single source of the behavioural environment; only public-URL/proxy vars are main-only. Optional backend modules (N8N_ENABLED_MODULES, e.g. agents) must reach the workers or executions fail at runtime with EntityMetadataNotFoundError
  • Triggers on its own description; intentionally NOT wired into the workflow-building router or hooks (no relevant MCP tools)

Key MCP Tools

The n8n-mcp server provides these unified tools:

Node Discovery

  • search_nodes - Find nodes by keyword
  • get_node - Unified node info with detail levels (minimal, standard, full) and modes (info, docs, search_properties, versions)

Validation

  • validate_node - Unified validation with modes (minimal, full) and profiles (runtime, ai-friendly, strict)
  • validate_workflow - Complete workflow validation

Workflow Management

  • n8n_create_workflow - Create new workflows
  • n8n_update_partial_workflow - Incremental updates (19 operation types including patchNodeField, activateWorkflow, transferWorkflow)
  • n8n_validate_workflow - Validate by ID
  • n8n_autofix_workflow - Auto-fix common issues
  • n8n_deploy_template - Deploy template to n8n instance
  • n8n_workflow_versions - Version history and rollback
  • n8n_test_workflow - Test execution
  • n8n_executions - Manage executions

Data Tables

  • n8n_manage_datatable - Manage data tables and rows (CRUD, filtering, dry-run)

Credential Management

  • n8n_manage_credentials - Full credential CRUD (list, get, create, update, delete) + schema discovery (getSchema)

Security & Audit

  • n8n_audit_instance - Security audit combining n8n built-in audit (5 risk categories) + custom deep scan (hardcoded secrets, unauthenticated webhooks, error handling, data retention)

Templates

  • search_templates - Multiple modes (keyword, by_nodes, by_task, by_metadata)
  • get_template - Get template details

Other Workflow Tools

  • n8n_list_workflows - List workflows with filtering/pagination
  • n8n_get_workflow - Get workflow details (full, structure, minimal modes)
  • n8n_delete_workflow - Permanently delete workflows
  • n8n_update_full_workflow - Full workflow replacement

Guides

  • tools_documentation - Meta-documentation for all tools; the AI agent workflow guide is accessed via tools_documentation({topic: "ai_agents_guide", depth: "full"}) (not a standalone tool)

Important Patterns

Most Common Tool Usage Pattern

search_nodes → get_node (18s avg between steps)

Most Common Validation Pattern

n8n_update_partial_workflow → n8n_validate_workflow (7,841 occurrences)
Avg 23s thinking, 58s fixing

Most Used Tool

n8n_update_partial_workflow (38,287 uses, 99.0% success)
Avg 56 seconds between edits

Working with This Repository

When Adding New Skills

  1. Create skill directory under skills/
  2. Write SKILL.md with frontmatter
  3. Add reference files as needed
  4. Create 3+ evaluations in evaluations/
  5. Test thoroughly before committing

Skill Activation

Skills activate automatically when queries match their description triggers:

  • "How do I write n8n expressions?" → n8n Expression Syntax
  • "Find me a Slack node" → n8n MCP Tools Expert
  • "Build a webhook workflow" → n8n Workflow Patterns

Cross-Skill Integration

Skills are designed to work together:

  • Use n8n Workflow Patterns to identify structure
  • Use n8n MCP Tools Expert to find nodes
  • Use n8n Node Configuration for setup
  • Use n8n Expression Syntax for data mapping
  • Use n8n Code JavaScript/Python for custom logic
  • Use n8n Validation Expert to validate

Requirements

  • n8n-mcp MCP server installed and configured
  • Claude Code, Claude.ai, or Claude API access
  • Understanding of n8n workflow concepts

Distribution

Available as:

  1. GitHub Repository: Full source code and documentation
  2. Claude Code Plugin: npm install @anthropic/claude-code-plugin-n8n-skills
  3. Individual Skill Uploads: For Claude.ai users

Credits

Conceived by Romuald Członkowski - aiadvisors.pl/en

Part of the n8n-mcp project.

License

MIT License - See LICENSE file for details.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.