openshift-eng/ai-helpers/payload-snapshot
Claude Code and agent skill by openshift-eng/ai-helpers
- community
Checking that the SKILL.md file is still in the repository.
Snapshot OpenShift payload data (release controller, PR diffs, comments, CI jobs, JUnit results, regression tracking) to a local directory for offline analysis
Install
npx vskill@latest install openshift-eng/ai-helpers/payload-snapshotSKILL.md
The same SKILL.md was published earlier as openshift-eng/ai-helpers/payload-snapshot.
Payload Snapshot
This skill downloads all data needed to analyze an OpenShift payload into a local directory tree. The resulting snapshot can be navigated entirely via file reads — no live API calls required during analysis.
When to Use This Skill
Use this skill when you need to:
- Analyze a rejected payload and want all data available locally before starting
- Create a reproducible snapshot of payload state at a point in time
- Track test failure regressions across multiple payloads
- Work offline or reduce API calls during payload analysis
Prerequisites
- Python 3 (3.10 or later)
- Uses only standard library (no external dependencies)
- GitHub CLI (`gh`) — for PR diff, comment, and job data
- Install:
brew install gh(macOS) or see https://cli.github.com - Authenticate:
gh auth login - Without
gh, release controller data is still fetched; PR data is skipped
- Google Cloud SDK (`gcloud`) — for JUnit test result download
- Install:
brew install google-cloud-sdk(macOS) or see https://cloud.google.com/sdk - Authentication is not required — the CI artifact buckets are public and
are read anonymously when no account is configured
- Without
gcloudentirely, JUnit data is skipped and the snapshot is
reported as incomplete (see Data completeness)
- Container runtime (`podman`) — for RHCOS RPMDB extraction
- Install: available in most Linux distributions;
brew install podmanon macOS - Requires access to the release image registry (e.g.,
registry.ci.openshift.org) - Without
podman, RPMDB data is skipped; all other data is still collected
- `rpm` CLI — for the RPM changelog diffs between payloads
- Queries the already-extracted RPMDBs locally; no network, no root
- Without
rpm, changelog diffs are skipped; the RPMDBs themselves are still extracted
- Network access to:
*.ocp.releases.ci.openshift.org(release controller)sippy.dptools.openshift.org(historical payload fallback)api.github.com(viaghCLI)storage.googleapis.com(viagcloudCLI)
Implementation Steps
Step 1: Run the Snapshot Script
The script will:
- Parse the payload tag to determine version, stream, and architecture
- Probe all available streams for the version (nightly, ci, across architectures)
- Chain backwards through Sippy's time-ordered release tag list until finding one where all blocking jobs passed, restoring tags garbage collected from the release controller
- For each payload in the chain, prefer release controller data and changelogs; fall back per historical tag or cross-tag diff to Sippy payload, PR, and job data
- Split jobs into blocking/informing directories with metadata and GCS browser links
- For each failed blocking job, download and parse JUnit XML test results
- For each failed blocking job, download build-log.txt from GCS and extract error/warning lines + log tail
- Track test failure regressions — when did each failure first appear?
- Track per-job failure streaks — consecutive failures, originating payload, failure pattern
- For each unique PR across all changelogs, fetch the git diff, comments, and CI jobs via
gh - For each payload in the chain, extract the full RPM database from RHCOS images via
podman - Diff the target payload's RPM changelogs against every older payload in the chain, using the extracted RPMDBs
- Generate summary.json with comprehensive triage data, plus AGENTS.md/CLAUDE.md for agent orientation
Step 2: Navigate the Snapshot
The output directory is structured for easy navigation:
Step 3: Use the Data
Find failed blocking jobs (with streaks):
Check test failures and when they started:
List PRs in a payload:
Read a specific PR's diff:
Check JUnit failures for a specific job:
Query RHCOS RPM packages (using the extracted rpmdb.sqlite):
See what changed in the RHCOS RPMs since the baseline (inline in summary.json — no file read needed):
Find which payload in the chain introduced a package bump:
CLI Reference
Output Files
streams.json
Lists all available streams for the payload's version.
summary.json
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/ci/skills/payload-snapshot/SKILL.md
Popularity
- Repository stars
- 114
- Repository forks
- 307
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/openshift-eng/ai-helpers/payload-snapshot)