analyze

analyze is a command for Claude Code from openshift-eng/ai-helpers. It costs 17 tokens per session (2,313 once invoked), scanned A, original, Apache-2.0.

A command that analyzes OpenShift must-gather data, which is a collected snapshot of cluster diagnostics. It summarizes versions, operators, nodes, pods, networking, storage, events, databases, and alerts.

In plain words
What is it for?
Use it to investigate an OpenShift cluster, review overall health, or focus on a component such as nodes, OVN networking, etcd, persistent storage, or Prometheus alerts.
Why use it?
Cluster failures can involve many components and produce large amounts of diagnostic data. This gathers the relevant findings into a health report instead of requiring manual inspection of every file.

Command for Claude Code

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 "$SCRIPTS_DIR/analyze_clusteroperators.py" ./must-gather.local.123/quay-io-....

Part of the must-gather plugin — 1 skill, 3 commands shipped together

Good fit Use it to investigate an OpenShift cluster, review overall health, or focus on a component such as nodes, OVN networking, etcd, persistent storage, or Prometheus alerts.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/openshift-eng/ai-helpers
agentmods
npx agentmods add commands/openshift-eng/ai-helpers/analyze

Made for: Claude Code.

Or install must-gather, the plugin that ships this one along with the rest of its 1 skill, 3 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 analyze

README.md
[![agentmods](https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/analyze.svg)](https://agentmods.dev/commands/openshift-eng/ai-helpers/analyze)
Your own site
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/analyze"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/analyze.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,313 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.00017 $0.02313
Opus 5 $0.00009 $0.01156
Sonnet 5 $0.00003 $0.00463
Haiku 4.5 $0.00002 $0.00231

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

Security

Grade A, and why

analyze 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 3d 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.

plugins/must-gather/commands/analyze.md · 268 lines

How it starts

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

Name

must-gather:analyze

Synopsis

/must-gather:analyze [must-gather-path] [component]

Description

The analyze command performs comprehensive analysis of OpenShift must-gather diagnostic data. It runs specialized Python analysis scripts to extract and summarize cluster health information across multiple components.

The command can analyze:

  • Cluster version and update status
  • Cluster operator health (degraded, progressing, unavailable)
  • Node conditions and resource status
  • Pod failures, restarts, and crash loops
  • Network configuration and OVN health
  • OVN databases - logical topology, ACLs, pods
  • Kubernetes events (warnings and errors)
  • etcd cluster health and quorum status
  • Persistent volume and claim status
  • Prometheus alerts

You can request analysis of the entire cluster or focus on a specific component.

Prerequisites

Required Directory Structure:

Must-gather data typically has this structure:

must-gather/
└── registry-ci-openshift-org-origin-...-sha256-<hash>/
    ├── cluster-scoped-resources/
    ├── namespaces/
    └── ...

The actual must-gather directory is the subdirectory with the hash name, not the parent directory.

Required Scripts:

Analysis scripts are bundled with this plugin at:

<plugin-root>/skills/must-gather-analyzer/scripts/
├── analyze_clusterversion.py
├── analyze_clusteroperators.py
├── analyze_nodes.py
├── analyze_pods.py
├── analyze_network.py
├── analyze_ovn_dbs.py
├── analyze_events.py
├── analyze_etcd.py
└── analyze_pvs.py

Where <plugin-root> is the directory where this plugin is installed (typically ~/.cursor/commands/ai-helpers/plugins/must-gather/ or similar).

Error Handling

CRITICAL: Script-Only Analysis

  • NEVER attempt to analyze must-gather data directly using bash commands, grep, or manual file reading
  • ONLY use the provided Python scripts in plugins/must-gather/skills/must-gather-analyzer/scripts/
  • If scripts are missing or not found:
    1. Stop immediately
    2. Inform the user that the analysis scripts are not available
    3. Ask the user to ensure the scripts are installed at the correct path
    4. Do NOT attempt alternative approaches

Read the full file on GitHub · 268 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. 3d ago First seen · 268 lines · 17 tokens per session scan A bc11bf630e42

Subscribe to this mod's changes

analyze is a command published in the GitHub repository openshift-eng/ai-helpers (116 stars, last pushed 3d ago), licensed Apache-2.0. It adds 17 tokens to every session and 2,313 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-05.