analyze

analyze is a command for Claude Code from wangke19/gemini-ai-helpers. It costs 27 tokens per session (6,218 once invoked), scanned A, original, Apache-2.0.

A troubleshooting command for OpenShift LVMS storage, usable with either a live cluster or saved must-gather data. It examines the storage components that provide volumes to workloads.

In plain words
What is it for?
It investigates pending PVCs, LVMCluster readiness, physical volumes, TopoLVM, disk availability, thin pools, device classes, and operator errors.
Why use it?
It helps diagnose why storage claims, volume groups, disks, storage pools, or storage-related pods are unhealthy.

Command for Claude Code

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 extensions/lvms/skills/lvms-analyzer/scripts/analyze_lvms.py {must-gather-path}.

Good fit It investigates pending PVCs, LVMCluster readiness, physical volumes, TopoLVM, disk availability, thin pools, device classes, and operator errors.

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/wangke19/gemini-ai-helpers
agentmods
npx agentmods add commands/wangke19/gemini-ai-helpers/analyze

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 analyze

README.md
[![agentmods](https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/analyze.svg)](https://agentmods.dev/commands/wangke19/gemini-ai-helpers/analyze)
Your own site
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/analyze"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/analyze.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 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,218 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.00027 $0.06218
Opus 5 $0.00014 $0.03109
Sonnet 5 $0.00005 $0.01244
Haiku 4.5 $0.00003 $0.00622

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

extensions/lvms/commands/analyze.md · 756 lines

How it starts

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

Name

lvms:analyze

Synopsis

/lvms:analyze [must-gather-path] [--live] [--component <component>]

Description

The lvms:analyze command provides comprehensive troubleshooting for OpenShift LVMS (Logical Volume Manager Storage). It analyzes the health and configuration of LVMCluster, volume groups, PVCs, TopoLVM CSI driver, and node-level storage to identify and diagnose common LVMS issues.

The command can operate in two modes:

  • Must-gather analysis: Analyzes LVMS must-gather data offline
  • Live cluster analysis: Connects to a running cluster and performs real-time diagnostics

Common issues detected:

  • PVCs stuck in Pending state
  • LVMCluster not reaching Ready state
  • Volume group creation failures
  • Missing or unhealthy physical volumes
  • TopoLVM CSI driver issues
  • Node-level disk availability problems
  • Thin pool configuration issues
  • Device class misconfigurations
  • Operator and vg-manager pod errors (from log analysis)

Prerequisites

For Live Cluster Analysis:

  • oc CLI installed and configured
  • Active cluster connection: oc whoami
  • Read access to LVMS namespace (openshift-lvm-storage or older openshift-storage)
  • Ability to read cluster-scoped resources (CRDs, Nodes, PVs)

For Must-Gather Analysis:

  • LVMS must-gather data extracted to a directory
  • Must-gather structure:
    must-gather/
    └── registry-ci-openshift-org.../
        ├── cluster-scoped-resources/
        ├── namespaces/
        │   └── openshift-lvm-storage/  (or openshift-storage for older versions)
        └── ...
    

Namespace Compatibility:

  • LVMS namespace changed from openshift-storage to openshift-lvm-storage in recent versions
  • The command automatically detects which namespace is used in the must-gather
  • Both namespaces are supported for backward compatibility

Analysis Script:

  • Python 3 script at: extensions/lvms/skills/lvms-analyzer/scripts/analyze_lvms.py
  • If script is missing, command will use built-in analysis logic

Read the full file on GitHub · 756 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. 4d ago First seen · 756 lines · 27 tokens per session scan A 9bd53968051e

Subscribe to this mod's changes

analyze is a command published in the GitHub repository wangke19/gemini-ai-helpers (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 27 tokens to every session and 6,218 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.