check

check is a command for coding agents from wangke19/gemini-ai-helpers. It costs 8 tokens per session (1,266 once invoked), scanned A, original, Apache-2.0.

A command-line check for Gateway API resources in a Kubernetes or OpenShift cluster. It reports GatewayClass and Gateway status, listener readiness, addresses, and connectivity.

In plain words
What is it for?
Use it to diagnose Gateway API deployments and inspect one namespace or the whole cluster.
Why use it?
It gives you a quick view of whether the cluster's Gateway API setup is installed and working, without checking each resource manually.

Command

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 commands/wangke19/gemini-ai-helpers/check
Clone the repo
git clone --depth 1 https://github.com/wangke19/gemini-ai-helpers

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 check

README.md
[![agentmods](https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/check.svg)](https://agentmods.dev/commands/wangke19/gemini-ai-helpers/check)
Your own site
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/check"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/check.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,266 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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 $0.00008 $0.01266
Opus 5 $0.00004 $0.00633
Sonnet 5 $0.00002 $0.00253
Haiku 4.5 $0.00001 $0.00127

Measured yesterday against content hash e537ea0705c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

check scanned grade A with 1 finding 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 yesterday.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Suggest testing connectivity: `curl -v http://<gateway-address>`
extensions/gwapi/commands/check.md · 148 lines

How it starts

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

Name

gwapi:check

Synopsis

/gwapi:check [namespace]

Description

The gwapi:check command verifies the status of Gateway API resources in a Kubernetes or OpenShift cluster. It checks:

  1. Presence and status of GatewayClass resources
  2. Presence and status of Gateway resources
  3. Gateway listener configuration and readiness
  4. Gateway addresses and connectivity

This command helps troubleshoot Gateway API deployments and verify successful installation.

Arguments

  • $1 (optional): Target namespace to check for Gateway resources. If not specified, checks all namespaces for GatewayClass (cluster-scoped) and Gateway resources.

Implementation

  1. Tool Detection

  2. Cluster Connection Verification

    • Verify cluster connectivity: oc whoami or kubectl cluster-info
    • If connection fails, inform the user to authenticate to their cluster:
      • For OpenShift: oc login <cluster-url>
      • For Kubernetes: Configure kubeconfig properly
  3. Check GatewayClass Resources

    • List all GatewayClass resources: oc get gatewayclass or kubectl get gatewayclass
    • For each GatewayClass found:
      • Display name, controller, and ACCEPTED status
      • Get detailed status: oc get gatewayclass <name> -o yaml
      • Check the status.conditions for any errors or warnings
    • If no GatewayClass found:
      • Display: "No GatewayClass resources found. You may need to install Gateway API CRDs or run /gwapi:install"
  4. Check Gateway Resources

    • If namespace argument provided:
      • Check Gateway resources in specified namespace: oc get gateway -n <namespace>
    • If no namespace argument:
      • Check all namespaces: oc get gateway --all-namespaces
    • For each Gateway found:
      • Display name, namespace, class, and PROGRAMMED status
      • Get detailed information: oc get gateway <name> -n <namespace> -o yaml
      • Extract and display:
        • Gateway addresses (LoadBalancer IPs/hostnames)
        • Listener configurations (hostnames, ports, protocols)
        • Listener status and attached routes count
      • Check the status.conditions for any errors or warnings
    • If no Gateway found:
      • Display: "No Gateway resources found in [namespace/cluster]"

Read the full file on GitHub · 148 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. yesterday First seen · 148 lines · 8 tokens per session scan A e537ea0705c3

Subscribe to this mod's changes

check is a command published in the GitHub repository wangke19/gemini-ai-helpers (2 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 8 tokens to every session and 1,266 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.