diagnose-gateway

diagnose-gateway is a skill for Claude Code, Codex from openclaw/openclaw. It costs 25 tokens per session (587 once invoked), scanned A, original, MIT.

A skill for investigating Gateway failures, configuration problems, secret issues, chat-channel errors, and port conflicts using read-only commands.

In plain words
What is it for?
Use it to inspect Gateway configuration, secrets, channels, and ports when a service is not working.
Why use it?
It helps identify the cause of an operational problem without changing the system during diagnosis.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to inspect Gateway configuration, secrets, channels, and ports when a service is not working.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openclaw/openclaw/diagnose-gateway
About the project

OpenClaw is an AI assistant that runs on a user's own devices and connects to chat services such as Discord, Slack, Telegram, and WhatsApp. Individuals or teams use it for assistant tasks while keeping its state, memory, and credentials on their hardware and choosing the models or agent harnesses it uses. The catalogue entries are skills, agents, instructions, hooks, and settings that define or extend OpenClaw's workflow.

openclaw/openclaw · 393,160 stars · on GitHub · openclaw.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add openclaw/openclaw --skill diagnose-gateway
Clone the repo
git clone --depth 1 https://github.com/openclaw/openclaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for diagnose-gateway

README.md
[![agentmods](https://agentmods.dev/badge/skills/openclaw/openclaw/diagnose-gateway/github.svg)](https://agentmods.dev/skills/openclaw/openclaw/diagnose-gateway)
Your own site
<a href="https://agentmods.dev/skills/openclaw/openclaw/diagnose-gateway"><img src="https://agentmods.dev/badge/skills/openclaw/openclaw/diagnose-gateway/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for diagnose-gateway

Your own site · 80×15
<a href="https://agentmods.dev/skills/openclaw/openclaw/diagnose-gateway"><img src="https://agentmods.dev/badge/skills/openclaw/openclaw/diagnose-gateway.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 587 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.00587
Opus 5.5 $0.00010 $0.00235
Sonnet 5.5 $0.00005 $0.00117
Haiku 4.5 $0.00003 $0.00059

Measured 19d ago against content hash e0448d96d55c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

diagnose-gateway scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

custodian-skills/diagnose-gateway/SKILL.md · 59 lines

How it starts

The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Diagnose the Gateway

This playbook is read-only: no config writes, no service restarts, no doctor --fix, no killing listeners. Never print secret values; report only redacted SecretRef owner state. Every run ends with the observable Prove result or an exact explanation of why it could not be proven.

Gather

openclaw doctor --lint
openclaw gateway status --deep
openclaw config validate
openclaw channels status
openclaw models status
openclaw channels logs --channel <id>

doctor --lint is read-only and can exit 1 for findings: read the report and continue the remaining checks. Do not substitute ordinary doctor or doctor --non-interactive; they can copy legacy config and migrate state without --fix.

On managed installs, bounded recent logs: ./scripts/clawlog.sh (repo checkout) or the log path printed at gateway startup (/tmp/openclaw/openclaw-<date>.log by default).

Check these signatures without guessing:

  • invalid config or schema errors (config validate names the exact key and line);
  • degraded SecretRef owners — report the owner, never ids or values;
  • expired or rejected channel authentication (channels status per account);
  • EADDRINUSE, a second gateway listener, or service/config port mismatch (lsof -nP -iTCP:<port> -sTCP:LISTEN);
  • gateway crash loops: read the last startup stack in the gateway log; a schema-valid config that still crashes startup is a bug — capture the stack and report it.

Correlate timestamps and identify the first owner-boundary failure.

Mutate

Nothing. Do not change config, migrate state, or alter services. Diagnostic commands may still produce incidental logs or cache bookkeeping.

Repair

Translate each finding into the next action, naming the responsible skill when one exists: configure-channel, add-model-provider, or cloud-image-bake. Recommend openclaw doctor --fix --non-interactive only as a separately approved step.

Prove

Repeat the smallest read-only check that exposes the condition and record its output, for example:

Read the full file on GitHub · 59 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago Changed e0448d96d55c
  2. 1mo ago Changed · +2 lines 646eaebcab12
  3. 1mo ago First seen · 57 lines · 25 tokens per session scan A 6e91ab07de01

Subscribe to this mod's changes

diagnose-gateway is a skill published in the GitHub repository openclaw/openclaw (393,160 stars, last pushed today), licensed MIT. It adds 25 tokens to every session and 587 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.