mhmalvi

n8n Claude Ops — Testing skill for Claude Code

Testing community

n8n + Claude ops automation: Error Trigger incident triage and inbox/lead triage with schema-validated Claude output, escalate-on-failure fallback, Postgres logging, structural + JS/Python parity test.

How to install n8n Claude Ops

This entry records only its repository, not the path inside it, so there is no exact command to give. Open mhmalvi/n8n-claude-ops and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What n8n Claude Ops does

n8n + Claude ops automation: Error Trigger incident triage and inbox/lead triage with schema-validated Claude output, escalate-on-failure fallback, Postgres logging, structural + JS/Python parity tests, and a real run in throwaway n8n 2.4.6.

Alternatives in Testing

  • Mda — MDA Open Spec — a Markdown superset for agent-facing documents 615 ★
  • Free Search MCP — Local-first, no-API-key MCP server for web search, fetch, and document reading 186 ★
  • Skill Trigger Test — PHẢI dùng khi: vừa tạo agent/skill mới, vừa sửa description frontmatter, nghi ngờ routing conflict giữa 2 agen 90 ★

README

n8n-claude-ops

Two importable **n8n workflows that put Claude in the operations loop**, plus a local Python runner that executes the same logic, structural tests for the workflow JSON, and a script that runs everything for real inside a throwaway n8n.

  1. Incident triage - an n8n Error Trigger (or any alert POSTed to a webhook) is enriched, Claude classifies severity and category and writes a short fix note as schema-validated JSON, then a Switch routes it: critical -> email + Telegram, high -> Telegram, medium -> Slack, low -> log only. Every incident lands in Postgres.
  2. Inbox and lead triage - an inbound email or form message is classified by intent, priority and a 0-100 lead score, with a reply draft for a human to review. Hot leads alert sales and go into the CRM table, warm leads go into the CRM, support and billing open a helpdesk ticket, spam is dropped. Everything is logged.

The business problem

Small teams running n8n find out about failures from a red dot in the executions list, or from a customer. Raw error messages ("Authorization failed - please check your credentials") do not say how urgent something is or what to do, and paging everybody for every failure trains people to ignore the pager. The same shape of problem sits in a shared inbox: a ready-to-buy lead waits behind SEO spam and invoice questions.

These flows put a cheap, fast model (Claude Haiku) in the middle, but keep the decisions that matter in plain code: the model only fills a fixed JSON schema, the routing table is deterministic, and anything the model gets wrong or cannot answer is escalated rather than dropped.

Architecture

flowchart LR
  subgraph Triggers
    ET[n8n Error Trigger
from any workflow] WH[Alert webhook
X-Webhook-Token] IN[Inbound message webhook
email / form] end ET --> CFG[Ops config
Set node] WH --> CFG CFG --> NORM[Normalize + enrich
Code: HTTP status, upstream detail,
fingerpri