Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

payload-analysis

БесплатноБез исполняемых скриптовНе проверен

Analyze a payload snapshot to identify root causes of blocking job failures, score candidate PRs, and produce an HTML report with revert recommendations

openshift-engот openshift-eng★ 123 звезды на GitHub

Об этом скилле

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

  1. Analyze an amd64 nightly payload (auto-creates snapshot if needed):

    /ci:payload-analysis 4.22.0-0.nightly-2026-02-25-152806
    
  2. Analyze using an existing snapshot directory:

    /ci:payload-analysis 4.22.0-0.nightly-2026-02-25-152806 --snapshot-dir payload/4.22/nightly
    
  3. Analyze an arm64 payload (architecture inferred from tag):

    /ci:payload-analysis 4.22.0-0.nightly-arm64-2026-02-25-152806
    

Prerequisites

  1. Python 3 (3.10 or later) — for running the snapshot script if needed
  2. gcloud CLI — for subagent artifact download (must-gather, pod logs)
  3. 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 and ANALYSIS_RESULT format (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 analyze
  • version: Extract from the tag (e.g., 4.22 from 4.22.0-0.nightly-...)
  • stream: Extract from the tag (e.g., nightly from 4.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 is amd64. Otherwise, the architecture is the segment between the stream and timestamp. Examples:
    • 4.22.0-0.nightly-2026-02-25-152806 → amd64
    • 4.22.0-0.nightly-arm64-2026-02-25-152806 → arm64
    • 4.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
Полный SKILL.md на GitHub

Установить payload-analysis в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/report-template.htmlreferences/completeness-review.mdreferences/investigation-subagent.mdreferences/report-guide.mdreferences/ship-status-component-map.md

FAQ

Что делает скилл payload-analysis?

Analyze a payload snapshot to identify root causes of blocking job failures, score candidate PRs, and produce an HTML report with revert recommendations

Как установить скилл payload-analysis?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл payload-analysis запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить payload-analysis с