Communityn8ngithub.com

n8n-self-hosting

Run self-hosted n8n in production with Docker Compose - PostgreSQL, Redis and queue mode (main + workers, optional webhook processors), reverse proxy and WEBHOOK_URL, encryption key handling, execution pruning, task runners, backups (pg_dump, workflow/credential export, the key) with a restore drill, and safe version upgrades including the n8n 2.0 breaking changes. Ships a ready docker-compose.yml and .env.example, plus a checker for .env / `docker compose config` output that flags missing or mismatched N8N_ENCRYPTION_KEY, SQLite or removed MySQL, queue mode without Redis or workers, unpinned images, missing data volume, public ports, removed variables and risky Code-node settings without printing any values. Use when installing, moving, scaling, backing up, upgrading or debugging a self-hosted n8n (Docker, VPS, queue mode, workers).

n8n-self-hosting とは?

n8n-self-hosting is a Claude Code agent skill that run self-hosted n8n in production with Docker Compose - PostgreSQL, Redis and queue mode (main + workers, optional webhook processors), reverse proxy and WEBHOOK_URL, encryption key handling, execution pruning, task runners, backups (pg_dump, workflow/credential export, the key) with a restore drill, and safe version upgrades including the n8n 2.0 breaking changes. Ships a ready docker-compose.yml and .env.example, plus a checker for .env / `docker compose config` output that flags missing or mismatched N8N_ENCRYPTION_KEY, SQLite or removed MySQL, queue mode without Redis or workers, unpinned images, missing data volume, public ports, removed variables and risky Code-node settings without printing any values. Use when installing, moving, scaling, backing up, upgrading or debugging a self-hosted n8n (Docker, VPS, queue mode, workers).

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/saizul/n8n-automation-skills/tree/HEAD/skills/n8n-self-hosting

Installed? Explore more n8n skills: n8n-ai-agent-workflows, n8n-webhook-security, audit-securite-app-ia · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

n8n self-hosting

Read-only first: inspect and report, then change the server only with the user's explicit OK for each step. Never print or paste the encryption key, database password or .env.

Paths below are relative to this skill's folder (in Claude Code: ${CLAUDE_SKILL_DIR}).

When to use

  • "Install n8n on my VPS with Docker", "move from SQLite to Postgres", "enable queue mode"
  • Executions slow or stuck, UI freezes during big runs, database growing fast
  • Backups, restore, moving n8n to a new server
  • Upgrading n8n (especially 1.x to 2.x), "credentials could not be decrypted" after a move
  • Reviewing someone's docker-compose.yml / .env for n8n

When not to use

  • n8n Cloud (no server access; settings are in the admin panel)
  • Generic Docker/nginx/server hardening beyond n8n: use your server/compose review tooling
  • Workflow-level problems: n8n-workflow-lint, n8n-error-handling

Workflow

  1. Inventory (read-only). Ask for or run, in the compose directory:
    docker compose ps
    docker compose config --format json > /tmp/n8n-compose.json   # contains secrets: never paste it
    docker compose exec n8n n8n --version
    
  2. Check the configuration (values are hashed or hidden, never printed):
    python3 scripts/n8n_env_check.py --compose /tmp/n8n-compose.json
    python3 scripts/n8n_env_check.py --env .env                     # env file only
    python3 scripts/n8n_env_check.py --env .env --role worker --json
    
    Delete /tmp/n8n-compose.json afterwards (shred -u or rm), with the user's OK.
  3. Decide the topology:
    • < ~5k executions/day, no long CPU-heavy runs: single n8n + Postgres (regular mode).
    • More load, long runs, or the UI must stay responsive: queue mode with Redis and 1+ workers (assets/docker-compose.yml).
    • Heavy webhook traffic: add webhook processors (command: webhook) behind the proxy. Details, sizing and task runners: references/queue-mode.md.
  4. Install or fix using the assets. Copy assets/.env.example to .env (chmod 600), generate the key with openssl rand -hex 32, pin N8N_VERSION, set the public URL and timezone, then docker compose config -q && docker compose up -d. For an existing instance, the key must stay the same (read it from the user's secret store or from /home/node/.n8n/config inside the volume; do not display it).
  5. Back up before any change and on a schedule: references/backup-restore.md (Postgres dump, workflow and credential export, the encryption key, restore drill).
  6. Upgrade with references/upgrades.md: read the release notes, back up, bump the pinned version on all n8n services at once, watch migrations in the logs, verify, keep the rollback path (restore the dump; migrations do not roll back).
  7. Verify: docker compose ps healthy, curl -fsS https://n8n.example.com/healthz, a test webhook works through the proxy, one scheduled workflow fires at the right local time, and a worker picks up jobs (docker compose logs -f n8n-worker).

Output

n8n config check (compose): 2 high, 3 medium
HIGH  worker: EXECUTIONS_MODE=queue missing -> worker idles, executions queue up
HIGH  n8n, worker: N8N_ENCRYPTION_KEY differs (hash mismatch) -> workers cannot decrypt credentials
MED   n8n: image n8nio/n8n (latest) -> pin docker.n8n.io/n8nio/n8n:<version>
MED   n8n: WEBHOOK_URL not set -> providers get http://localhost:5678/webhook/...
MED   n8n: no /home/node/.n8n volume

Plan (each step needs your OK):
1. Backup: pg_dump + export workflows/credentials (commands below)
2. Edit .env: same key on all services, WEBHOOK_URL, pin N8N_VERSION=...
3. docker compose up -d; verify healthz, worker logs, a test webhook

Individual skills in this repo

This repo contains 2 individual skills — each has its own dedicated page.

n8n-ai-agent-workflows

Build and review n8n AI Agent workflows - when to use an agent vs a Basic LLM Chain or plain nodes, system prompts, tool design (Call n8n Workflow Tool, HTTP Request Tool, app tools) with clear names, descriptions and input schemas, memory (Simple/Window, Postgres, Redis) and per-user session keys, structured output parsers, human approval for tools with side effects, guardrails, and cost control (model choice, max tokens, maxIterations, memory window, public chat limits). Includes an audit script that maps each agent's model, memory and tools in an exported workflow and flags missing system messages, runaway iteration limits, tools without descriptions, shared memory sessions, missing output parsers, destructive tools and unbounded token use. Use when the user builds a chatbot, AI agent, RAG or LLM automation in n8n, asks why the agent picks the wrong tool, loops, forgets context, mixes up users, or costs too much.

n8n-webhook-security

Secure n8n Webhook, Form Trigger and Chat Trigger endpoints - pick the right authentication (Header Auth, Basic, JWT, IP allowlist), verify provider HMAC signatures (GitHub, Stripe, Shopify, Slack, generic) in a Code node over the raw body with timingSafeEqual and replay windows, respond safely, and rate-limit /webhook/ at the reverse proxy. Includes an audit script for exported workflows (unauthenticated webhooks, signature checks without Raw Body, non-constant-time compares, secrets typed into nodes, public chat bots) and a signer to send correctly signed test requests. Use when the user exposes an n8n webhook to the internet, integrates Stripe/GitHub/Shopify/Slack webhooks, asks how to protect or authenticate a webhook, sees fake or replayed requests, or publishes a chat/form trigger.

関連スキル

n8n-ai-agent-workflows

Build and review n8n AI Agent workflows - when to use an agent vs a Basic LLM Chain or plain nodes, system prompts, tool design (Call n8n Workflow Tool, HTTP Request Tool, app tools) with clear names, descriptions and input schemas, memory (Simple/Window, Postgres, Redis) and per-user session keys, structured output parsers, human approval for tools with side effects, guardrails, and cost control (model choice, max tokens, maxIterations, memory window, public chat limits). Includes an audit script that maps each agent's model, memory and tools in an exported workflow and flags missing system messages, runaway iteration limits, tools without descriptions, shared memory sessions, missing output parsers, destructive tools and unbounded token use. Use when the user builds a chatbot, AI agent, RAG or LLM automation in n8n, asks why the agent picks the wrong tool, loops, forgets context, mixes up users, or costs too much.

community

n8n-webhook-security

Secure n8n Webhook, Form Trigger and Chat Trigger endpoints - pick the right authentication (Header Auth, Basic, JWT, IP allowlist), verify provider HMAC signatures (GitHub, Stripe, Shopify, Slack, generic) in a Code node over the raw body with timingSafeEqual and replay windows, respond safely, and rate-limit /webhook/ at the reverse proxy. Includes an audit script for exported workflows (unauthenticated webhooks, signature checks without Raw Body, non-constant-time compares, secrets typed into nodes, public chat bots) and a signer to send correctly signed test requests. Use when the user exposes an n8n webhook to the internet, integrates Stripe/GitHub/Shopify/Slack webhooks, asks how to protect or authenticate a webhook, sees fake or replayed requests, or publishes a chat/form trigger.

community

audit-securite-app-ia

Read-only security audit for AI-generated apps (Next.js/React on Vercel, Supabase, React Native/Expo, n8n workflows, LLM calls). Finds exposed secrets (NEXT_PUBLIC_/EXPO_PUBLIC_ keys, Supabase service_role, committed env files), weak Supabase RLS and public storage buckets (checked live via the Supabase MCP or supabase/psql CLI when available), prompt injection into LLM instructions, and 14 server-trusts-client attacks (XSS, IDOR, price tampering, fake payments, race conditions, mass assignment, SQL injection, unsafe uploads). Every finding gives file:line, a concrete exploit and a one-commit fix; secrets are never printed. Works in Claude Code, Codex and OpenCode. Use for 'audit my app', 'is my app secure', 'audite mon app', 'est-ce que mon app est sécure'.

community

tool-finder

이미 만들어진 AI 도구를 찾을 때 쓰는 통합 검색. "MCP 찾아줘", "에이전트 찾아줘", "플러그인 찾아줘", "skill 있어?", "n8n 템플릿 찾아줘", "OO 하는 거 누가 만들어 둔 거 없나", "OO 자동화할 도구 있어?"처럼 MCP 서버, Claude skill, Claude Code 플러그인, n8n 워크플로, GitHub 봇·에이전트, 완성형 AI 앱을 찾거나 비교하려 하면 반드시 사용한다. 요구를 기능 단위로 쪼개 여러 디렉터리를 한 번에 검색하고, 실제로 있고 지금 쓸 만한지 확인한 뒤, 유형을 넘나들어 기능을 모두 덮는 조합과 근거를 보여준다. 직접 만들기 전에 기존 것이 있는지 확인할 때도 쓴다. 이미 고른 도구의 설치·디버깅, 일반 웹 정보 검색에는 쓰지 않는다.

community

maintain-n8n-workflows

Maintain portable, sanitized, version-compatible n8n workflow templates and their Bootstrap/Maintenance lifecycle. Use when editing or reviewing n8n workflow JSON, moving workflows between instances or n8n versions, grouping agents and subworkflows as one documented project, or preventing scheduled updates from overwriting human documentation.

community

n8n-workflows

Find, adapt, and assemble n8n automation workflows from a local library of 2,061 real workflow templates covering 365+ integrations. Use when the user wants to automate something with n8n, asks for an n8n workflow, template, or example, mentions connecting two services with n8n, wants to see how an n8n node is wired up, or needs a starting point for an automation involving webhooks, schedules, or app triggers. Also use when the user asks what n8n can integrate with. Do NOT use for non-n8n automation (Zapier, Make, Airflow) unless the user wants an n8n equivalent.

community