gateway-diagnostics

gateway-diagnostics is a skill for Claude Code, Codex from scitix/siclaw. It costs 94 tokens per session (1,037 once invoked), scanned A, original, Apache-2.0.

A network guide for finding and testing the gateway of an interface on a Kubernetes node or inside a pod. A gateway is the router used to reach destinations outside the local network.

In plain words
What is it for?
Use it to display a gateway and interface type, or ping the gateway, for Ethernet, RoCE, or InfiniBand interfaces on nodes and pods.
Why use it?
It shows whether the expected default route exists and whether that router can be reached, helping separate route problems from other network failures.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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.

agentmods
npx agentmods add skills/scitix/siclaw/gateway-diagnostics
Any agent
npx skills add scitix/siclaw --skill gateway-diagnostics
Clone the repo
git clone --depth 1 https://github.com/scitix/siclaw

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 gateway-diagnostics

README.md
[![agentmods](https://agentmods.dev/badge/skills/scitix/siclaw/gateway-diagnostics.svg)](https://agentmods.dev/skills/scitix/siclaw/gateway-diagnostics)
Your own site
<a href="https://agentmods.dev/skills/scitix/siclaw/gateway-diagnostics"><img src="https://agentmods.dev/badge/skills/scitix/siclaw/gateway-diagnostics.svg" alt="Measured on agentmods" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,037 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00094 $0.01037
Opus 5 $0.00047 $0.00518
Sonnet 5 $0.00019 $0.00207
Haiku 4.5 $0.00009 $0.00104

Measured 6d ago against content hash 9811afa02faf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

gateway-diagnostics 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 6d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/ping-gateway.sh, scripts/show-gateway.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/core/gateway-diagnostics/SKILL.md · 103 lines

How it starts

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

Gateway Diagnostics

Inspect and test the gateway of a network interface. Two operations, one script each; both run identically on a node or inside a pod — the only difference is how you launch them (see Targets below).

Router

Need Action
See the gateway / default route for an interface (with TYPE) scripts/show-gateway.sh
Test whether the gateway is reachable scripts/ping-gateway.sh
Target is a node (or a bound SSH host) run directly — see Node target
Target is a pod resolve the netns first — see Pod target
Switchdev PF caveat, or what RoCE/Ethernet/IB means read references/switchdev-and-interface-types.md

Targets

Node target

Prefer host_script when the node is a bound SSH host (check host_list) — it runs over SSH with no debug pod. Fall back to node_script otherwise. Both take the same skill / script / args.

host_script: host="<host>", skill="gateway-diagnostics", script="show-gateway.sh", args="<args>"
node_script: node="<node>", skill="gateway-diagnostics", script="show-gateway.sh", args="<args>"

Pod target

Runs in the pod's network namespace using host tools — one step: pass pod (+ namespace) and node_script resolves the node and enters the pod's netns for you:

node_script: pod="<pod>", namespace="<ns>", skill="gateway-diagnostics", script="ping-gateway.sh", args="<args>"

node_script resolves the pod → node + netns internally and runs the script in the pod's network namespace. The same script file serves both node and pod targets.

Parameters

show-gateway.sh

Parameter Required Description
--interface IFACE no Network interface name. If omitted, shows all.
--json no Output in JSON format (adds a type field per gateway).

ping-gateway.sh

Parameter Required Description
--interface IFACE yes Network interface to find the gateway for
--source-ip no flag — auto-detect IP from the interface, use as ping source (-I <ip>)
--source-dev no flag — use the interface name as ping source (-I <iface>)
--count N no Number of ping packets (default: 3)

Read the full file on GitHub · 103 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 103 lines · 94 tokens per session scan A 9811afa02faf

Subscribe to this mod's changes

gateway-diagnostics is a skill published in the GitHub repository scitix/siclaw (232 stars, last pushed today), licensed Apache-2.0. It adds 94 tokens to every session and 1,037 once invoked, about $0.0005 per session on Opus 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.