/loxihart-engineering:operating-n8n-productionfrom loxihart-engineering
Manages n8n workflow automation in production — credential management, execution monitoring, error handling, workflow versioning, worker health, and blocked workflow recovery. Covers the Base44 Bearer credentials pattern and SCH-02 lane field fix for the FlashFusion platform. Use when running n8n in production, fixing blocked or failing workflows, rotating n8n credentials, monitoring execution logs, handling silent workflow failures, diagnosing n8n errors, setting up error alerting, managing workflow versions, or debugging n8n integration with Supabase or Base44. Also triggers on: n8n down, workflow not running, credential expired, execution failed, n8n cloud vs self-hosted, n8n webhook error. NOTE: n8n MCP is currently CONNECTION_ISSUE. All live ops use manual fallbacks at https://krosebrook.app.n8n.cloud until MCP is restored.
Ships in loxihart-engineering. 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.
None: SKILL.md is the whole skill.
Covers the operational layer between building workflows and keeping them
running reliably. Building is covered in workflow-automation and
ai-agents-workflow. This skill takes over after the workflow ships.
tools_required:
- name: n8n
status: CONNECTION_ISSUE
fallback: Manual operations at https://krosebrook.app.n8n.cloud
note: All sections requiring n8n MCP must include the manual URL fallback
FAIL_IF:
- n8n MCP unavailable → print: "n8n MCP has a connection issue. Navigate manually to https://krosebrook.app.n8n.cloud to complete this step." Do not attempt MCP calls.
- n8n MCP returns auth error → same as above
Operational semantics (apply when FAIL_IF fires):
What do you need?
│
├─ Fix a blocked workflow (Base44, SCH-02, or credential error)
│ → Section 1: Blocked Workflow Recovery
│ → [n8n MCP required for automated fix — manual fallback documented]
│
├─ A workflow failed silently — nothing ran, no error
│ → Section 2: Silent Failure Diagnosis
│ → [n8n MCP required for log access — manual fallback documented]
│
├─ Set up monitoring so failures surface automatically
│ → Section 3: Error Alerting Setup
│ → [n8n MCP required for workflow creation — manual fallback documented]
│
├─ Rotate or audit credentials
│ → Section 4: Credential Management
│ → [n8n MCP required for credential read/write — manual fallback documented]
│
├─ Version or backup workflows before a change
│ → Section 5: Workflow Versioning
│ → [n8n MCP required for export — manual fallback documented]
│
└─ Worker is slow, hanging, or unresponsive
→ Section 6: Worker Health
→ [n8n MCP required for status read — manual fallback documented]
CONNECTION CHECK — n8n MCP: CONNECTION_ISSUE Claude cannot update credentials or trigger workflows via MCP. Manual path: https://krosebrook.app.n8n.cloud → Credentials (for Base44 fix) Manual path: https://krosebrook.app.n8n.cloud → Workflows → [workflow name] → Edit (for SCH-02 fix) Steps below are valid — execute them in the n8n Cloud UI, not via MCP.
Symptom: Workflows calling Base44 APIs return 401 Unauthorized or silently fail without execution. Affects the 11 workflows connected to the FlashFusion platform (app.flashfusion.co).
Root cause: Base44 uses short-lived Bearer tokens, not static API keys. n8n credential stores treat these as static credentials. When the token expires, every workflow using that credential fails at the HTTP Request node.
Fix:
Base44 Bearer credential → EditBearer <new_token>Prevention: Add a workflow that tests the Base44 credential weekly and sends a Slack/email notification before it expires. Wire it to the Error Alerting setup in Section 3.
Symptom: Scheduling or routing workflows fail at a Set node or Switch node with a field reference error or undefined value.
Root cause: The lane field used in SCH-02 routing logic references
a data path that doesn't exist in the current execution context — either
the upstream node changed its output schema, or the field was renamed.
Fix:
{{ $json.lane }}
or similarPattern going forward: Use explicit field mapping nodes (Set nodes) immediately after any webhook or HTTP Request node to normalize field names before they're referenced downstream. This prevents schema drift from breaking routing logic.
CONNECTION CHECK — n8n MCP: CONNECTION_ISSUE Claude cannot read execution logs or query workflow state via MCP. Manual path: https://krosebrook.app.n8n.cloud → Executions (left sidebar) Filter by workflow name to isolate failures. All diagnosis steps below require manual navigation in the n8n Cloud UI.
Workflows that don't run and produce no error are the hardest to debug.
Diagnosis checklist:
Is the workflow active? Navigate to https://krosebrook.app.n8n.cloud → Workflows → locate the workflow → confirm the Active toggle is ON (top-right when editing). Inactive workflows ignore triggers entirely.
Is the trigger healthy?
Did the execution run but produce nothing visible? Go to https://krosebrook.app.n8n.cloud → Executions → filter by workflow → look for executions with 0 items processed. This indicates the trigger fired but the filter/IF node blocked all items.
Is the error swallowed downstream? Check all Error Trigger nodes attached to this workflow. A downstream node might be catching and discarding errors silently.
n8n Cloud: Check quota https://krosebrook.app.n8n.cloud → Settings → Usage and Plan n8n Cloud plans have execution limits. A maxed quota silently stops new executions from starting.
CONNECTION CHECK — n8n MCP: CONNECTION_ISSUE Claude cannot create or modify workflows via MCP. Manual path: https://krosebrook.app.n8n.cloud → Workflows → New Workflow Build the Error Handler workflow in the n8n Cloud UI using the steps below.
Goal: Every workflow failure surfaces as a notification within 5 minutes.
Error Trigger — this catches errors from all
other workflows in the instance by defaultWorkflow: {{ $json.workflow.name }}
Error: {{ $json.execution.error.message }}
Node: {{ $json.execution.error.node.name }}
Time: {{ $now.toLocaleString() }}
Link: {{ $json.execution.url }}
Error Handler and activate itFor high-criticality workflows (client-facing, payment-related):
Try / Catch pattern: wrap the main logic in a sub-workflow,
catch failures at the top level, send a specific alert with contextCONNECTION CHECK — n8n MCP: CONNECTION_ISSUE Claude cannot read, update, or audit credentials via MCP. Manual path: https://krosebrook.app.n8n.cloud → Settings → Credentials Export the credential list from the UI; all rotation steps below require manual execution in the n8n Cloud UI.
For each credential type:
Never delete a credential before verifying no active workflows use it. n8n does not warn you when a credential deletion will break live workflows.
CONNECTION CHECK — n8n MCP: CONNECTION_ISSUE Claude cannot trigger workflow exports via MCP. Manual path: https://krosebrook.app.n8n.cloud → Workflows → [workflow name] → ⋮ (three-dot menu) → Export → Download JSON All versioning steps below require manual execution in the n8n Cloud UI.
n8n does not have native version history on free/starter plans.
Manual versioning procedure (before any significant change):
~/drive/n8n-backups/YYYY-MM-DD-workflow-name.jsonNaming convention for exports:
YYYY-MM-DD_workflow-name_v[major].[minor].json
Example: 2026-06-06_ff-intake-routing_v2.3.json
For n8n Cloud Pro and above: Use the built-in version history panel (Workflows → [workflow name] → History tab in editor). Tag significant versions with a note before making breaking changes.
CONNECTION CHECK — n8n MCP: CONNECTION_ISSUE Claude cannot query worker status or stop stuck executions via MCP. Manual path: https://krosebrook.app.n8n.cloud → Executions (stuck executions appear with a spinner; click → Stop Execution) For usage/quota issues: https://krosebrook.app.n8n.cloud → Settings → Usage and Plan
If executions are stuck:
# Check process health
pm2 status n8n # if using pm2
docker stats n8n # if using Docker
# Restart worker (gracefully drains active executions first)
pm2 reload n8n
# or
docker restart n8n
# Check logs for memory or crash patterns
pm2 logs n8n --lines 200
docker logs n8n --tail 200
Recommended: set a weekly restart schedule during low-traffic hours to prevent memory accumulation. n8n is stateless between restarts for all execution data (stored in DB), so restarts are safe.
n8n MCP connection confirmed active before attempting programmatic ops. FAIL: MCP attempted while status is CONNECTION_ISSUE — check Claude.ai Settings → Integrations; use manual URL https://krosebrook.app.n8n.cloud as fallback until restored.
Base44 Bearer token is valid and has a rotation reminder set.
FAIL: A workflow using Base44 Bearer credential returns 401 → rotate
immediately per Section 1.
SCH-02 lane field references match actual upstream output schema. FAIL: Switch node condition references a field not present in upstream node output → remap per Section 1.
Error Trigger workflow is active and tested.
FAIL: No Error Handler workflow exists or it is inactive → build per
Section 3 before any production workflow goes live.
Credential audit has been run in the last 90 days. FAIL: Last audit >90 days ago or no audit date recorded → run per Section 4, Credential audit procedure.
All high-criticality workflows have a pre-change export. FAIL: No timestamped JSON backup exists for a workflow before modifying it → export first per Section 5.
Worker health has been checked this month. FAIL: Stuck executions present in Executions tab without resolution → stop them manually per Section 6.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub krosebrook/loxihart-skills --plugin loxihart-engineering22 skills in this plugin
/administering-supabaseManages Supabase database operations for FlashFusion's production stack — schema design, Row Level Security policies, migrations, Edge Functions, and debugging. Active project: flashnframe-app (etctmappdhpjuwptdbeb). Use when the user mentions: Supabase, RLS, row level security, migration, schema, database, table, Edge Function, auth, policies, Postgres, supabase query, database admin, add a column, create a table, why is my query blocked, or any task involving the Supabase project or database structure.
/auditing-logicAudits code for logical errors before they become bugs — control flow gaps, data contract violations, schema/type drift, business logic inconsistencies, and silent failure paths. Produces a severity-rated issue list with a one-line diagnosis and one-line fix per finding. Use this skill whenever code is pasted with a review request, or when the user says "audit this", "check the logic", "does this make sense", "any issues with this", "logic audit", "what's wrong here", "review this function", "is this correct", or hands you any code file and wants a critical eye. Even if the user does not say "logic" — if code is present and they want feedback, use this skill. Also triggers on: "find the bug", "something feels off", "is this right", "sanity check this", "does this hold", "validate my logic", "code review", "PR review", "review this PR".
/code-auditorPerforms comprehensive codebase analysis covering architecture, code quality, security, performance, testing, and maintainability. Use when user wants to audit code quality, identify technical debt, find security issues, assess test coverage, or get a codebase health check./code-transferTransfer code between files with line-based precision. Use when users request copying code from one location to another, moving functions or classes between files, extracting code blocks, or inserting code at specific line numbers./debug-like-expertDeep analysis debugging mode for complex issues. Activates methodical investigation protocol with evidence gathering, hypothesis testing, and rigorous verification. Use when standard troubleshooting fails or when issues require systematic root cause analysis. Triggers on: debug this, root cause analysis, systematic debugging, why is this failing, trace this bug, diagnose this issue, investigation protocol, hypothesis testing./engineering-patternsProduction engineering pattern library spanning 11 phases — Foundation, Resilience, Performance, Data Integrity, Observability, Deployment, Scalability, Edge Cases, Security Deep, Compliance/DR/FinOps, and AI/HITL. Use when auditing code for production readiness, applying hardening patterns, reviewing system design, pattern audit, apply phase, harden this, production-ready, resilience patterns, observability gaps, security review, DR plan, FinOps, or AI guardrails. Use alongside engineering-staff-workflows for execution. Not for writing the implementation itself — that is engineering-staff-workflows.