payload-analysis
FreeNo executable scriptsNot checkedAnalyze a payload snapshot to identify root causes of blocking job failures, score candidate PRs, and produce an HTML report with revert recommendations
by openshift-eng★ 123 GitHub starsAbout this skill
Payload Analysis
This skill analyzes a payload using a local snapshot (produced by payload-snapshot) to identify root causes of blocking job failures and produce a comprehensive HTML report. The snapshot pre-gathers all release controller, GitHub, and CI data so this skill can focus purely on analysis — no live API orchestration required.
It supports Rejected payloads (full analysis of all failed blocking jobs), Ready payloads (early analysis of blocking jobs that have already failed), and Accepted payloads (which may have been force-accepted despite blocking failures).
When to Use This Skill
Use this skill when you need to:
- Understand why a payload was rejected
- Investigate failures in a force-accepted payload
- Assess whether an in-progress ("Ready") payload is likely to be rejected
- Determine whether failures are new or persistent
- Identify which PRs likely caused new failures
- Get a comprehensive overview of payload health with actionable root cause analysis
- Re-analyze a historical payload against its original snapshot data
Examples
Analyze an amd64 nightly payload (auto-creates snapshot if needed):
/ci:payload-analysis 4.22.0-0.nightly-2026-02-25-152806Analyze using an existing snapshot directory:
/ci:payload-analysis 4.22.0-0.nightly-2026-02-25-152806 --snapshot-dir payload/4.22/nightlyAnalyze an arm64 payload (architecture inferred from tag):
/ci:payload-analysis 4.22.0-0.nightly-arm64-2026-02-25-152806
Prerequisites
- Python 3 (3.10 or later) — for running the snapshot script if needed
- gcloud CLI — for subagent artifact download (must-gather, pod logs)
- GitHub CLI (
gh) — for step-registry change detection (Step 3.6) and checking existing revert PRs (Step 6.3)
Bundled Resources
Load these only at the step that needs them — not up front:
references/investigation-subagent.md— the verbatim per-job subagent prompt andANALYSIS_RESULTformat (Step 4)references/report-guide.md— per-section content rules for the HTML report (Step 7)references/completeness-review.md— the completeness-reviewer prompt and response handling (Step 9)assets/report-template.html— the fill-in-the-blanks HTML report template (Step 7)references/ship-status-component-map.md— SHIP Status slug mapping (Step 6.5)
The payload-results-yaml and payload-autodl-json skills define the structured output schemas; load each via the Skill tool at its point of use (Steps 6.7 and 8).
Implementation Steps
Step 1: Parse Arguments
Anchor the output directory before anything else. Capture the current working directory up front so all output files land in one stable, predictable location even if a later step changes directories:
OUTPUT_DIR="$(pwd)"
All three output files — the payload results YAML (Step 6.7), the HTML report (Step 7), and the autodl JSON (Step 8) — MUST be written under $OUTPUT_DIR, never into a snapshot subdirectory or a path a later cd may have changed. The Step 10 self-check verifies them at $OUTPUT_DIR.
The first argument is a full payload tag (e.g., 4.22.0-0.nightly-2026-02-25-152806). Parse from it:
tag: The specific payload tag to analyzeversion: Extract from the tag (e.g.,4.22from4.22.0-0.nightly-...)stream: Extract from the tag (e.g.,nightlyfrom4.22.0-0.nightly-...)architecture: Inferred from the tag. The tag format is<version>-0.<stream>[-<arch>]-<timestamp>. If no architecture is present between the stream and timestamp, it isamd64. Otherwise, the architecture is the segment between the stream and timestamp. Examples:4.22.0-0.nightly-2026-02-25-152806→amd644.22.0-0.nightly-arm64-2026-02-25-152806→arm644.22.0-0.nightly-ppc64le-2026-02-25-152806→ppc64le
Optional flags:
--snapshot-dir DIR: Use an existing snapshot directory (Step 2).--as-of TIMESTAMP: An RFC 3339 UTC cutoff (e.g.2026-07-23T07:44:48Z). When present, this is a point-in-time analysis: reason only from evidence that existed at or before this instant, as if you were analyzing the payload the moment it completed.
Point-in-time boundary. When --as-of is set, treat it as a hard cutoff for every piece of evidence, direct or delegated:
- Do not use later reverts, follow-up comments, subsequent payload outcomes, or the present-day absence of a revert as causal evidence. A PR that was later reverted, or never reverted, tells you nothing about causality as of the cutoff.
- Timestamp-bound every external lookup. When checking GitHub PRs, step-registry history (Step 3.6), or existing revert PRs (Step 6.3), ignore any commit, PR, comment, or review created after the cutoff.
- Pass the cutoff to every subagent you dispatch and instruct it to discard post-cutoff artifacts and discussion.
- If a lookup returns only post-cutoff results, treat t
Install payload-analysis in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the payload-analysis skill do?
Analyze a payload snapshot to identify root causes of blocking job failures, score candidate PRs, and produce an HTML report with revert recommendations
How do I install the payload-analysis skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the payload-analysis skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
by AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
by Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
by Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
by Anthropic