/major-ai-skills:n8nfrom major-ai-skills
Design production n8n workflows with webhook auth, queue-mode scaling, expression mapping, idempotent side effects, and credential hygiene. Use for self-hosted or cloud automation, REST workflow CI, and debugging executions.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
n8n is a workflow automation platform (self-hosted or n8n Cloud) where workflows are directed graphs of nodes. Data moves as items (JSON arrays). Triggers (Webhook, Schedule, app triggers) start executions; downstream nodes transform and call external systems. Credentials are encrypted at rest; production scale often uses queue mode (Redis + workers + optional webhook processors).
Claude operates as a Principal Automation Architect: webhook ingress hardening, at-least-once idempotency, expression-safe data mapping, error workflows, and API-managed workflow exports.
┌─────────────────────────────────────────────────────────────┐
│ n8n Production Stack │
│ │
│ Ingress │
│ ├── Webhook (Header/Basic/JWT auth, IP allowlist) │
│ ├── Schedule / app triggers │
│ └── Respond to Webhook (sync) vs async queue handoff │
│ │
│ Execution │
│ ├── Item fan-out (1 trigger → N items) │
│ ├── SplitInBatches / rate limits │
│ └── Code / HTTP Request / native app nodes │
│ │
│ Scale-out (optional) │
│ ├── Redis queue + worker processes │
│ ├── Webhook processors + load balancer │
│ └── Shared N8N_ENCRYPTION_KEY across all nodes │
│ │
│ Control plane │
│ ├── REST API /api/v1 + API keys │
│ ├── Workflow JSON in git │
│ └── Credentials vault (never in exported JSON secrets) │
└─────────────────────────────────────────────────────────────┘
Use when
Do not use when
$json paths.N8N_ENCRYPTION_KEY on main, workers, and webhook processors or credentials decrypt fails on workers.Webhook (POST, Header auth)
→ Set (normalize event_id from body.headers)
→ HTTP Request OR Redis/Postgres "claim" idempotency key (INSERT … ON CONFLICT / SET NX)
→ IF duplicate → Respond 200 "already processed"
→ ELSE side effects (CRM, email)
→ Respond to Webhook 200
Code node (normalize + validate):
const items = $input.all().map((item) => {
const j = item.json.body ?? item.json;
const eventId = String(j.id ?? j.event_id ?? "").trim();
if (!eventId) return null;
return {
json: {
eventId,
tenantId: j.tenant_id ?? "default",
payload: j,
receivedAt: new Date().toISOString(),
},
};
}).filter(Boolean);
return items;
curl -X POST "https://n8n.example.com/api/v1/workflows/42/activate" \
-H "X-N8N-API-KEY: $N8N_API_KEY"
| Issue & signature | Root cause | Fix |
|---|---|---|
| Webhook 404 | Workflow inactive or wrong path/method | Activate; confirm Production URL vs Test URL |
| 401/403 on webhook | Auth header/IP allowlist | Match credential; update allowlist |
| Duplicate CRM rows | Provider retries; no idempotency | Claim event_id before create; upsert by external ID |
Expression undefined | Wrong path ($json vs $node) | Pin data; inspect item JSON mid-run |
| Credential works in UI, fails on worker | Missing shared encryption key in queue mode | Align N8N_ENCRYPTION_KEY on all processes |
| Slow webhook response | Heavy sync chain | Ack early; async sub-workflow |
| HTML webhook response broken | n8n 1.103+ sandbox iframe | Use absolute URLs; embed short-lived token in HTML |
{tenantId}:evt:{stableId} with TTL (24–72h typical).endpoints.disableProductionWebhooksOnMainProcess + dedicated webhook processors behind LB./api/v1N8N_ENCRYPTION_KEY, EXECUTIONS_MODE=queue, Redis URL@zapier — SaaS-first alternative when self-hosting is unnecessary@stripe — signed webhooks + idempotency patterns upstream of n8n@nodejs — custom webhook receivers when n8n is bypassedMANDATORY: Treat all webhook triggers as at-least-once. Persist an idempotency key before irreversible side effects. Store secrets in Credentials/env only. Enable webhook authentication on production URLs. Never disable error alerting to “reduce noise.”
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization.Other plugins' skills for the same job
/act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.