Skip to content
Agentmart
Submit a tool

CLAUDE.md · czlonkowski/n8n-skills

CLAUDE.md from czlonkowski/n8n-skills: 230 lines covering Project Overview, Repository Structure, The 14 Skills, Key MCP Tools and more.

Template by czlonkowski

IndexedMIT★ 6,517
Write a review

Chalk Labs

Need help deploying CLAUDE.md · czlonkowski/n8n-skills?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code. Read the repository before you give any tool access to your data.

curl -fsSL https://raw.githubusercontent.com/czlonkowski/n8n-skills/main/CLAUDE.md -o CLAUDE.md

Read it and adapt it to your project before use.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The CLAUDE.md file that czlonkowski/n8n-skills (6,517 stars) keeps for coding agents. It has 230 lines in 10 sections: Project Overview; Repository Structure; The 14 Skills; Key MCP Tools; Important Patterns; Working with This Repository; Requirements; Distribution; Credits; License. Use it as a model for your own project's instructions.

Use cases: prompt-engineering, workflow-automation

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

What's in it

A CLAUDE.md file: project memory Claude Code loads at the start of every session.

For
Claude Code
Length
230 lines
File
CLAUDE.md

Sections

  1. Project Overview
  2. Repository Structure
  3. The 14 Skills
  4. Key MCP Tools
  5. Important Patterns
  6. Working with This Repository
  7. Requirements
  8. Distribution
  9. Credits
  10. License

First lines (shown under the repo's MIT license)

# 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 (create/update also scan the payload for Code / HTTP Request nodes without a `Why Code:` / `Why HTTP:` note and for function bodies in `{{ }}`, once per node), 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)
- The transform gatekeeper: service node → native node → short expression → Code (a function body in `{{ }}` counts as code); expression-only helpers (`.pluck()`, `.sum()`, `$ifEmpty()`, `.diffTo()`)
- 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
- NATIVE_NODES.md: configs for the native nodes that replace Code (Summarize, Merge, Compare Datasets, Remove Duplicates, HTTP pagination, Webhook raw body + Crypto v2, node settings)

### 6. n8n Code JavaScript
- Write JavaScript in n8n Code nodes once native nodes are ruled out (closed list of exceptions, `Why Code:` note)
- Data access patterns, `this.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
- Per-call `instance: "<name>"` on every n8n tool (backend 0.1.120+ / n8n-mcp 2.94.0+): stateless, the preferred way to target; unknown names fail closed with `INSTANCE_NOT_FOUND`
- `n8n_instances` `list`/`switch`; `switch` sets the default for unnamed calls, shared by every chat on a hosted connection
- Name the instance on credential writes (never `INSTANCE_AMBIGUOUS`); NOT_FOUND ≈ wrong-instance misroute, not deletion; copy-between-instances flow without switching

### 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

Signals

Stars
6,517
Forks
1,075
Open issues
10
Last commit (this folder)
Oct 24, 2026 (6 days ago)
Last release
Oct 24, 2026 (6 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from czlonkowski

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get CLAUDE.md · czlonkowski/n8n-skills running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying CLAUDE.md · czlonkowski/n8n-skills?

CallGet help
Cite this page

CLAUDE.md · czlonkowski/n8n-skills. Agent Mart. https://agentmart.dev/templates/czlonkowski-n8n-skills-claude-md (last updated 2026-10-24)