mcpField
G
gateway-diagnose

gateway-diagnose

github.com/joelhooksCloud & DevOps6550 installsUpdated 2d ago
Repository

About gateway-diagnose

gateway-diagnose is a skill for investigating gateway requests, events, runs, and flows. It guides operators through tracing failures, safely applying authorized recovery, and verifying delivery without exposing private data.

Key features

  1. 01Trace requests through gateway stages
  2. 02Compare timestamps, IDs, and timeouts
  3. 03Follow failures to their causes
  4. 04Use scoped, authorized recovery
  5. 05Verify behavior and report observations

Use cases

  1. 01Investigating a failed gateway delivery
  2. 02Distinguishing queue delay from a hung agent
  3. 03Auditing a gateway failure without probing
  4. 04Verifying an authorized service recovery

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/joelhooks/joelclaw --skill gateway-diagnose

After installing, type/gateway-diagnosein Claude Code to confirm it loaded.

Details

From the project README

Gateway diagnosis

Find the failing request, event, run, or flow id and expected behavior. Start from the existing evidence; diagnosis does not itself authorize sending a probe message.

Read the current gateway entrypoint, service configuration, and ownership/runbook. Use joelclaw gateway --help for supported status, event, and diagnostic commands. Resolve service placement before probing dependencies; an absent local cluster is not evidence that a remotely owned dependency failed.

Trace the actual path: ingress, durable queue, policy, gateway session, adapter, and delivery receipt. Compare timestamps, correlation ids, progress, and configured timeouts. Queue age alone does not prove a hung agent. Degraded dependencies may still permit useful channel and session diagnosis.

Follow the first relevant failure to its cause. For an audit, report it. For an authorized repair, fix that failure and continue independent diagnosis. Do not stop the whole task merely because the first probe failed.

Use the configured model, provider, process owner, and current startup source. Historical error strings are clues, not a mandate to restore old embedded controllers, poll-owner leases, or model pins.

Preserve the single transport and gateway owners. Do not start a competing poller or gateway, weaken access controls, kill processes by name, or reset a shared checkout. Use the owning service's scoped restart or recovery path when authorized.

Verify the affected behavior and report the exact observation. A successful queue submission is not proof of delivery. Never print tokens, raw private messages, or auth files in a diagnostic report.

Comments

Markdown supported