prow-job-prometheus

prow-job-prometheus is a skill for Claude Code from openshift-eng/ai-helpers. It costs 69 tokens per session (2,777 once invoked), scanned C, original, Apache-2.0.

A tool for examining Prometheus metrics captured during a Prow CI job. Prometheus is a system that stores time-based measurements, while Prow runs automated tests and checks for software projects.

In plain words
What is it for?
Use it to query a saved metrics snapshot with PromQL, compare a failed run with a successful one, or investigate CPU, memory, disk, request, and restart problems in Kubernetes or OpenShift test runs.
Why use it?
It lets you investigate what a cluster was doing when a test failed, without relying only on the failure message. It can reveal slow API servers, etcd storage delays, high resource use, and restarts during that run.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ci plugin — 37 skills, 21 commands, 2 agents shipped together

Good fit Use it to query a saved metrics snapshot with PromQL, compare a failed run with a successful one, or investigate CPU, memory, disk, request, and restart problems in Kubernetes or OpenShift test runs.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add openshift-eng/ai-helpers
Claude Code
/plugin install ci

Made for: Claude Code.

Or install ci, the plugin that ships this one along with the rest of its 37 skills, 21 commands, 2 agents.

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 prow-job-prometheus

README.md
[![agentmods](https://agentmods.dev/badge/skills/openshift-eng/ai-helpers/prow-job-prometheus/github.svg)](https://agentmods.dev/skills/openshift-eng/ai-helpers/prow-job-prometheus)
Your own site
<a href="https://agentmods.dev/skills/openshift-eng/ai-helpers/prow-job-prometheus"><img src="https://agentmods.dev/badge/skills/openshift-eng/ai-helpers/prow-job-prometheus/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 prow-job-prometheus

Your own site · 80×15
<a href="https://agentmods.dev/skills/openshift-eng/ai-helpers/prow-job-prometheus"><img src="https://agentmods.dev/badge/skills/openshift-eng/ai-helpers/prow-job-prometheus.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,777 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00069 $0.02777
Opus 5.5 $0.00028 $0.01111
Sonnet 5.5 $0.00014 $0.00555
Haiku 4.5 $0.00007 $0.00278

Measured 13d ago against content hash 1f4a722cd8b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

prow-job-prometheus scanned grade C 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 13d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (load_snapshot.py, promql.py, test_prow_job_prometheus.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf -- "$HOME/.cache/prow-prometheus/${BUILD_ID}"
plugins/ci/skills/prow-job-prometheus/SKILL.md · 178 lines

How it starts

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

Prow Job Prometheus

Most OpenShift e2e prow jobs that use and reach the gather-extra step save the in-cluster Prometheus TSDB. Loading it locally lets you run PromQL against the cluster as it was during the run. This is the way to answer "what was the apiserver/etcd/node doing at the moment tests failed".

Use this skill when:

  • Autodl or Sippy data points at a time window (high CPU, disruption, a burst of failures) and you need the underlying metrics.
  • Debugging apiserver slowness, etcd latency, node resource exhaustion, or restarts in one run.
  • Comparing the same metrics between a bad run and a good run.

These TSDB's can be quite large, so avoid bulk downloading when possible, this is for targeted investigations.

Prerequisites

  • podman, to run Prometheus (and to build walfix if go isn't installed). On macOS the podman VM only mounts paths under /Users. The default cache ~/.cache/prow-prometheus is fine, but /tmp fails with statfs ... no such file or directory.
  • Python 3.9+.
  • Roughly 2 GB of disk per replica (download plus extracted data).
  • Artifacts come from the public test-platform-results-public bucket over anonymous HTTPS. Do not run gcloud auth login or change the user's gcloud account to reach them. The bucket named test-platform-results (no -public) is private.

Where the snapshots are

<run>/artifacts/<step>/gather-extra/artifacts/metrics/
  prometheus.tar.gz            # replica prometheus-k8s-0 TSDB (prometheus.tar in older runs)
  prometheus-k8s-1.tar.gz      # replica prometheus-k8s-1 TSDB (prometheus-k8s-1.tar in older runs)
  prometheus-tsdb-status.json  # live head stats at gather time (series count, time range)
  prometheus-targets.json      # scrape targets and their health at gather time
  job_metrics.json             # a few precomputed queries

Both replicas scrape the same targets, so either works. The snapshot covers the whole run (install through gather), roughly 2–3 hours.

Step 1: Load the snapshot

Read the full file on GitHub · 178 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 13d ago Changed 1f4a722cd8b7
  2. 1mo ago First seen · 178 lines · 69 tokens per session scan C 77085ed71353

Subscribe to this mod's changes

prow-job-prometheus is a skill published in the GitHub repository openshift-eng/ai-helpers (123 stars, last pushed yesterday), licensed Apache-2.0. It adds 69 tokens to every session and 2,777 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-21.

Related

prow-job-prometheus compared with skills from other repositories

prow-job-prometheus next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prow-job-prometheusopenshift-eng/ai-helpersSkill123yesterdayApache-2.0C69Claude Code
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7ktodayMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9ktodayApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill342todayApache-2.0A112Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2ktodayApache-2.0A15Claude Code, Codex
verus-query-timinglbx154/ArgusSkill337yesterdayMITA28Claude Code, Codex