N8n

From tonydzi/second-brain-starter-kit · View interactive version

N8n is an AI agent skill from the GitHub repository tonydzi/second-brain-starter-kit. Health-check, audit and, on approval, fix a self-hosted n8n automation stack. Health is read-only; any workflow edit goes preview, approval, apply. Triggers: "/n8n", "/n8n health", "/n8n fix <id>", "which workflows are failing".

How to use this skill

Skill file

/n8n β€” automation-stack health & repair

πŸ§’ When reporting to Anton end with a child-simple "In plain words" recap. (memory eli5-always)

Anton's operational nervous system = self-hosted n8n at https://n8n.example.com (v2.14.2, 89 workflows). n8n = event bus, NOT the brain. Full state + every gotcha = memory [[n8n-stack]] (read it first). Workflows fail SILENTLY β†’ this skill makes failure visible and fixes it safely.

Access: REST https://n8n.example.com/api/v1/, header X-N8N-API-KEY; key in $USERPROFILE/.claude/secrets/n8n.env ⚠️ expires 2026-07-15 (recreate non-expiring; warn if near). API needs a browser User-Agent header or returns 403 (WAF). The n8n MCP (mcp__n8n__*) is wired BUT can drop mid-session (it disconnected 2026-07-04) β€” do NOT depend on it.

MCP-down fallback = build/edit straight over REST (proven 2026-07-04): $IMPORTS_ROOT/n8n\n8n_build.py β€” create_workflow(name,nodes,connections), post_webhook(path,payload) (fire a webhook for /tt), set_active(id,on); and n8n_edit.py β€” get_workflow/update_workflow (backup-before-PUT), list_workflows, _req. Both reuse the WAF User-Agent. The resilience workflows built this way β€” WATCHDOG IdSRNxfOT9Mo7Qse (dead-man's-switch), ERROR CATCHER 5X7xsGlwz44AO8Wf (set as settings.errorWorkflow to make a workflow's failures scream in chat 03), INBOUND DOOR 5e8JGjnVSvnkrRSX, bus-bridge U96y7qLDLufGpbUf β€” plus their builders (watchdog_build.py/catcher_build.py/inbound_build.py) live in _imports\n8n\. Full map = memory [[n8n-watchdog]].

Step 0 β€” key liveness (run BEFORE anything else)

First check the API key is still alive: compare today's date to N8N_KEY_EXPIRES in n8n.env (see Access above for the date). If today is past it the key is DEAD β†’ every call silently 403s, so recreate the key first (n8n UI β†’ Settings β†’ API β†’ new key, paste into n8n.env, bump N8N_KEY_EXPIRES) β€” a Tier-2 write, so pause for Anton's "+" (see Safety). Within ~7 days β†’ warn but proceed.

Modes

Known scars (verify still true before acting β€” memory may be stale)

Safety

Output

RED/FLAKY/IDLE counts + the worst offender with its proven error + suggested fix. Then πŸ§’ recap. Related: [[platinum-crm-import]] (CHARM CRM engine), [[automation-inventory]] (that = LOCAL jobs; this = REMOTE n8n).

<!--kit-footer-->


Like this skill? It is part of second-brain-starter-kit: the second brain we built for ourselves and run every day at Palo Alto AI Research Lab. Install the whole set with npx skills add tonydzi/second-brain-starter-kit. Everything is open source and free, so take what you need.

Flagships worth a look on their own: secondop-panel (a second opinion from a panel of external models), claude-memory-tidy (stop your agent's memory from rotting), telegram-mcp-kit (your own Telegram over MCP in about 15 minutes).

Author: Anton Dziatkovskii, Palo Alto AI Research Lab. Telegram @tonydzi - WhatsApp +1 341 222 9178 - X @Tony_Stef_

Engineers: want to test-drive this setup? Message me. I hand out free starter seeds to engineers who test and report back, and custom skill requests are welcome.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.