disruption-change-suspects
БесплатноЗапускает вложенные скриптыНе проверенUse when looking for the code change behind a disruption regression or mechanism — lists every PR that landed between two release payloads, shortlists the…
от openshift-eng★ 123 звезды на GitHubОб этом скилле
Disruption Change Suspects
This skill answers what changed between two points that could explain a disruption mechanism. It ranks suspects by how well each change fits the mechanism; it does not prove a change caused the regression. Proof needs a run with and without the change (a revert, or the fix landing).
Prerequisites
- Python 3.7+ and network access to
*.ocp.releases.ci.openshift.org(public). gh, authenticated, to read PR descriptions and diffs. Without it, the PR list still works; say which PRs could not be read and give their URLs.- For
payload_diff.py: the gcloud CLI when givenjob:build_idruns (it readsprowjob.jsonandreleaseinfo.jsonanonymously from the publictest-platform-results-publicbucket), orocwhen given a release pullspec. - The
disruption_commonlibrary: thedisruptionplugin'sscripts/disruption_common, installed with the plugin. If it is missing,payload_diff.pyexits and says so. Report the message; do not work around it.
The scripts are in this skill's directory: ${CLAUDE_SKILL_DIR} in Claude Code, or the directory containing this SKILL.md elsewhere.
Rules shared by the disruption skills
- Backend names are exact. Use the names from the request or the state file's
series.backends. - Platform. A change limited to the alert's platform (a cloud provider's code, a platform-only component) is a suspect only with evidence that the mechanism is platform-specific. Say what that evidence is.
- State.
{investigation_dir}is the state file's directory; without a state file, create.work/disruption-analysis/<YYYY-MM-DD>-<short-slug>/. - One block. Do not run another disruption skill yourself. End with the checkpoint below.
Inputs
- Two points to compare, from the first of these that is available:
- payload tags in one stream, such as
5.0.0-0.nightly-2026-11-07-182718→5.0.0-0.nightly-2026-11-09-184859; - from the state file: the transition's
payloads.newest_target_before→payloads.oldest_target_after(fromdisruption-trend), or the newest target payload in the before cohort → the oldest in the after cohort (fromdisruption-find-runs); - two runs (
job:build_id), or run directories fromdisruption-analyze-run, forpayload_diff.py.
- payload tags in one stream, such as
- The mechanism and components, from
{investigation_dir}/comparison.md, a run'sanalysis.md, or the request ("anything that could hit kube-api"). Without a mechanism, rank by the backends' API and say the ranking is weak.
For upgrade jobs, the change can come from the payload a run started from, not only the one it upgraded to (see the trend's after_upgrades_by_initial). When the evidence says so, compare the initial payloads too.
Step 1: List every PR in the range
python3 "${CLAUDE_SKILL_DIR}/payload_prs.py" {older_payload} {newer_payload} --format text
It asks the release controller for the changelog across the whole range (one request, cached) and prints each updated component with its PR titles, PR URLs, Jira issues, and compare URL. Payloads from different streams (nightly and ci) cannot be compared this way; use payload_diff.py with two runs instead (Step 3). (ci:fetch-new-prs-in-payload lists the PRs new in one payload against its predecessor; this script covers any range of payloads in one stream.)
Step 2: Shortlist by description
Read every PR title in the list. For each component and PR that could plausibly touch the mechanism, read the description:
gh pr view {number} --repo {owner}/{repo} --json title,body,files,mergedAt
A PR fits when its description or changed files touch the mechanism's component, resource, or trigger: for example, a write to the resource that starts a static-pod revision, a change to the probed API server's handling, a networking change on the probe path, or a change to etcd or node timing. Keep a short reason for every PR you keep and for every component you drop wholesale ("documentation and test-only changes").
Step 3: Read the diffs of the shortlist
For each shortlisted PR, read its diff, or for a large PR only the files that touch the mechanism:
gh pr diff {number} --repo {owner}/{repo}
When the suspect is a component's commits between two runs rather than a PR list (different streams, or a component implicated by a revision trigger), read references/payload-diff.md and use payload_diff.py --component. It lists the commits and changed files from each run's release info.
Rank the suspects:
| Rank | Meaning |
|---|---|
| Strong | The diff changes the exact component and behavior the evidence shows (for example, it adds the write that revision_triggers.py found), and it landed inside the transition's change window. |
| Plausible | It touches the mechanism's component or path, but the diff does not show the exact behavior, or the timing is loose. |
| Weak | Same area, no link to the mechanism found. |
Out
Установить disruption-change-suspects в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл disruption-change-suspects?
Use when looking for the code change behind a disruption regression or mechanism — lists every PR that landed between two release payloads, shortlists the ones whose description fits the mechanism and components, and reads their diffs. Also answers "what landed between payload A and B that could affect this backend?" on its own. Usually one step of a disruption investigation (see investigate-disruption).
Как установить скилл disruption-change-suspects?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл disruption-change-suspects запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic