cluster-health-check

cluster-health-check is a command for Claude Code from wangke19/gemini-ai-helpers. It costs 11 tokens per session (6,684 once invoked), scanned A, a copy of cluster-health-check, Apache-2.0.

A diagnostic command for checking the health of a Hosted Control Plane cluster. It examines control-plane pods, etcd, node pools, networking, infrastructure, certificates, and warning events; HCP is a Kubernetes control plane hosted separately from worker infrastructure.

In plain words
What is it for?
Use it to investigate availability, crashes, restart problems, image-pull errors, certificate issues, and other HCP cluster failures.
Why use it?
It brings together many cluster checks so you can find degraded components and likely causes in one report.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Good fit Use it to investigate availability, crashes, restart problems, image-pull errors, certificate issues, and other HCP cluster failures.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/wangke19/gemini-ai-helpers/cluster-health-check
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.

Clone the repo
git clone --depth 1 https://github.com/wangke19/gemini-ai-helpers

Made for: Claude Code.

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 cluster-health-check

README.md
[![agentmods](https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/cluster-health-check/github.svg)](https://agentmods.dev/commands/wangke19/gemini-ai-helpers/cluster-health-check)
Your own site
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/cluster-health-check"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/cluster-health-check/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 cluster-health-check

Your own site · 80×15
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/cluster-health-check"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/cluster-health-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,684 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.
Origin 100% copy Near-identical to another mod 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.00011 $0.06684
Opus 5 $0.00005 $0.03342
Sonnet 5 $0.00002 $0.01337
Haiku 4.5 $0.00001 $0.00668

Measured 8d ago against content hash e794823c46fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

cluster-health-check 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 8d 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.

Origin

This is a copy

100% identical to cluster-health-check — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

extensions/hcp/commands/cluster-health-check.md · 706 lines

How it starts

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

Name

hcp:cluster-health-check

Synopsis

/hcp:cluster-health-check <cluster-name> [--verbose] [--output-format json|text]

Description

The /hcp:cluster-health-check command performs an extensive diagnostic of a Hosted Control Plane (HCP) cluster to assess its operational health, stability, and performance. It automates the validation of multiple control plane and infrastructure components to ensure the cluster is functioning as expected.

The command runs a comprehensive set of health checks covering control plane pods, etcd, node pools, networking, and infrastructure readiness. It also detects degraded or progressing states, certificate issues, and recent warning events.

Specifically, it performs the following:

  • Detects and validates the availability of oc or kubectl CLI tools and verifies cluster connectivity.
  • Checks the HostedCluster resource status (Available, Progressing, Degraded) and reports any abnormal conditions with detailed reasons and messages.
  • Validates control plane pod health in the management cluster, detecting non-running pods, crash loops, high restart counts, and image pull errors.
  • Performs etcd health checks to ensure data consistency and availability.
  • Inspects NodePools for replica mismatches, readiness, and auto-scaling configuration accuracy.
  • Evaluates infrastructure readiness (including AWS/Azure-specific validations like endpoint services).
  • Examines networking and ingress components, including Konnectivity servers and router pods.
  • Scans for recent warning events across HostedCluster, NodePool, and control plane namespaces.
  • Reviews certificate conditions to identify expiring or invalid certificates.
  • Generates a clear, color-coded summary report and optionally exports findings in JSON format for automation or CI integration.

Prerequisites

Before using this command, ensure you have:

  1. Kubernetes/OpenShift CLI: Either oc (OpenShift) or kubectl (Kubernetes)

Read the full file on GitHub · 706 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. 8d ago First seen · 706 lines · 11 tokens per session scan A e794823c46fc

Subscribe to this mod's changes

cluster-health-check is a command published in the GitHub repository wangke19/gemini-ai-helpers (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 11 tokens to every session and 6,684 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to cluster-health-check, differing in 0 lines, and is treated as a copy.