Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

n8n

БесплатноБез исполняемых скриптовНе проверен

n8n is a fair-code workflow automation platform with a visual editor, webhook and schedule triggers, JavaScript and Python code nodes and 1500+ integrations…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

n8n

Overview

n8n is a workflow automation tool you can run yourself or use as n8n Cloud. Workflows are graphs of nodes: triggers (Webhook, Schedule, app events), 1500+ integration nodes, flow logic (IF, Switch, Merge), HTTP Request, and Code nodes. The current stable release is 2.46.6 (the docs track stable and beta separately; n8n 3.x has been tagged but the Docker docs still list 2.46.6 as stable, and 3.0 has its own breaking-changes page, so do not jump to it without reading that page and running the migration report). The source is "fair-code" under the Sustainable Use License, not an OSI open-source license: free to self-host for internal business use, but reselling it as a hosted service needs a commercial agreement. This skill was checked against the n8n documentation and the n8n-hosting repository; the Docker setup was not started here.

Instructions

Step 1: Self-host with Docker Compose

Authentication changed in n8n 1.0/2.x: the old N8N_BASIC_AUTH_* variables are gone. The first visit to the editor asks you to create the owner account, so do not look for a password in the compose file. Put secrets in an .env file next to compose.yaml and keep it out of git.

# compose.yaml — n8n + PostgreSQL behind a reverse proxy that terminates TLS
services:
  postgres:
    image: postgres:18
    restart: always
    environment:
      POSTGRES_DB: n8n
      POSTGRES_USER: n8n
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
      PGDATA: /var/lib/postgresql/data
    volumes: [pgdata:/var/lib/postgresql/data]
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U n8n -d n8n"]
      interval: 5s
      retries: 10
  n8n:
    image: docker.n8n.io/n8nio/n8n:2.46.6   # pin a version; update on purpose
    restart: always
    ports: ["127.0.0.1:5678:5678"]          # publish to the proxy only, not the internet
    environment:
      DB_TYPE: postgresdb
      DB_POSTGRESDB_HOST: postgres
      DB_POSTGRESDB_DATABASE: n8n
      DB_POSTGRESDB_USER: n8n
      DB_POSTGRESDB_PASSWORD: ${POSTGRES_PASSWORD}
      N8N_ENCRYPTION_KEY: ${N8N_ENCRYPTION_KEY}
      N8N_WEBHOOK_URL: https://n8n.acme-shop.dev/
      N8N_PROXY_HOPS: "1"
      GENERIC_TIMEZONE: Europe/Berlin
      TZ: Europe/Berlin
      N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS: "true"
    volumes: [n8n_data:/home/node/.n8n]
    depends_on:
      postgres: {condition: service_healthy}
volumes:
  n8n_data:
  pgdata:
$ printf 'POSTGRES_PASSWORD=%s\nN8N_ENCRYPTION_KEY=%s\n' "$(openssl rand -hex 16)" "$(openssl rand -hex 24)" > .env
$ docker compose up -d
$ docker compose logs -f n8n     # wait for "Editor is now accessible via"
  • N8N_ENCRYPTION_KEY encrypts stored credentials. Set it once; if it is lost or changed, saved credentials cannot be decrypted. Back it up with the volume.
  • N8N_WEBHOOK_URL (the old name WEBHOOK_URL is deprecated from 2.35) must be the public URL, otherwise webhook URLs shown in the editor point to localhost. The reverse proxy must forward X-Forwarded-For, -Host and -Proto.
  • Quick local try-out without Postgres: docker run -it --rm --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n, then open http://localhost:5678.
  • Update by raising the image tag, docker compose pull, docker compose up -d.

Step 2: Webhook trigger

A Webhook node has two URLs. The test URL (/webhook-test/<path>) works only while you press "Listen for Test Event" and shows the data in the editor. The production URL (/webhook/<path>) is registered when the workflow is published, and runs appear in the Executions tab. Setting path order-received gives:

$ curl -s -X POST https://n8n.acme-shop.dev/webhook/order-received \
    -H 'Content-Type: application/json' \
    -d '{"order_id": "A-10432", "customer": "[email protected]", "total": 149.90}'
{"message":"Workflow was started"}

The JSON body arrives under $json.body in later nodes (the request headers and query are siblings: $json.headers, $json.query). Protect public webhooks with the node's Authentication option (header or basic auth) so strangers cannot trigger the workflow.

Step 3: Code node

The Code node runs in "Run Once for All Items" (default) or "Run Once for Each Item" mode. In all-items mode, read input with $input.all() and return an array of { json: {...} }:

// Code node (JavaScript), mode: Run Once for All Items
return $input.all().map(item => {
  const order = item.json.body;
  return {
    json: {
      orderId: order.order_id,
      email: order.customer.toLowerCase(),
      total: order.total,
      isLarge: order.total > 100,
    },
  };
});
  • Python was Pyodide-based in 1.x and the Pyodide runtime is removed in 2.0. Native Python runs through task runners in external mode (stable in 2.x; the compose file above has none, so add the n8nio/runners service from the n8n-hosting repository first) and only offers _items (all-items mode) and _item (per
Полный SKILL.md на GitHub

Установить n8n в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл n8n?

n8n is a fair-code workflow automation platform with a visual editor, webhook and schedule triggers, JavaScript and Python code nodes and 1500+ integrations, self-hosted or in n8n Cloud. Use when a user asks to automate business workflows, connect APIs visually, build integrations between apps, self-host a Zapier alternative, receive webhooks, or create data pipelines with a visual editor.

Как установить скилл n8n?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл n8n запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить n8n с