cluster-health-check

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

A diagnostic command for a Hosted Control Plane cluster, where the Kubernetes control plane runs separately from the worker machines. It checks control-plane pods, etcd, nodes, networking, infrastructure, certificates, and warning events.

In plain words
What is it for?
Use it to assess an HCP cluster's health and receive a text or JSON report of detected problems.
Why use it?
It brings many operational checks together so degraded, restarting, disconnected, or misconfigured cluster components are easier to find.

Command for Claude Code

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

Part of the hcp plugin — 6 skills, 2 commands shipped together

Good fit Use it to assess an HCP cluster's health and receive a text or JSON report of detected problems.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/openshift-eng/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/openshift-eng/ai-helpers

Made for: Claude Code.

Or install hcp, the plugin that ships this one along with the rest of its 6 skills, 2 commands.

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/openshift-eng/ai-helpers/cluster-health-check/github.svg)](https://agentmods.dev/commands/openshift-eng/ai-helpers/cluster-health-check)
Your own site
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/cluster-health-check"><img src="https://agentmods.dev/badge/commands/openshift-eng/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/openshift-eng/ai-helpers/cluster-health-check"><img src="https://agentmods.dev/badge/commands/openshift-eng/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 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.00011 $0.06684
Opus 5 $0.00005 $0.03342
Sonnet 5 $0.00002 $0.01337
Haiku 4.5 $0.00001 $0.00668

Measured 7d ago against content hash e794823c46fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 7d 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

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/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. 7d 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 openshift-eng/ai-helpers (116 stars, last pushed yesterday), 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. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.