Gateway doctor

From oyi77/1ai-skills · View interactive version

Gateway doctor is an AI agent skill from the GitHub repository oyi77/1ai-skills. Use when diagnose and fix MCP gateway routing issues, health checks, and server connectivity problems. Use when working with gateway doctor.

How to use this skill

Skill file

Gateway Doctor

When to Use

Trigger phrases:

When NOT to Use

Overview

Gateway Doctor is a foundational core infrastructure skill that provides system foundation capabilities for the agent ecosystem.

Architecture

Configuration

Integration

Anti-Rationalization Table

| Rationalization | Reality |

|---|---|

| "I will add monitoring later" | Without monitoring, you cannot detect failures. Add it from day one. |

| "One model is enough" | Different tasks need different models. Route intelligently. |

| "Premature optimization" | Infrastructure decisions are hard to change later. Design for scale early. |

# Example: Model routing
ROUTES = {
    "code": ["claude-sonnet-4-20250514", "gpt-4o"],
    "vision": ["gemini-2.5-pro", "gpt-4o"],
    "fast": ["gemini-2.5-flash", "gpt-4o-mini"],
}

def route_request(task: str, prompt: str):
    models = ROUTES.get(task, ROUTES["fast"])
    for model in models:
        try:
            return call_model(model, prompt)
        except Exception:
            continue
    raise RuntimeError("All models failed")

Process

  1. Prepare — Gather requirements, verify prerequisites, set up environment
  2. Execute — Run gateway doctor workflow with configured parameters
  3. Verify — Validate output meets requirements, document results

Verification

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.