diagnose-integration-failure
БесплатноБез исполняемых скриптовНе проверенDiagnose a failing TMDb integration-test run — summarise the failure, rank the likely cause, and suggest a concrete fix
от adamayoung★ 182 звезды на GitHubОб этом скилле
Diagnose an integration-test failure
The TMDb integration tests hit the live TMDb API. The suite runs on three
triggers — pull_request / push (where it gates the change) and
schedule (the weekly live-API canary). Which run failed flips the most
likely cause, so determine the trigger first (step 0):
- PR / push-triggered → this run is the gate for a code change, so a
regression in the diff is a real candidate — weigh it alongside backend/data
drift. This is the common case when invoked from
/watch-pror/fix-pr-checks. - Scheduled → no code changed, so a regression is unlikely; the cause is almost certainly a backend change, drifted test data, or a transient error.
Wrong suite? If a CI check failed instead (lint, markdown, build, or unit tests from
ci.yml), use/diagnose-ci-failure. That one leads with the opposite assumption: a CI failure is almost always caused by the change under review.
Agent Behaviour Contract
Do these by default, without being reminded.
- Observe before you theorise. The log tells you what broke; only a live
call tells you what the API returns today. So a cause that claims the API
changed shape, or that a test's baseline drifted, must be backed by a live
observation —
mcp__tmdb__*(CLAUDE.md's standing instruction). - Every such cause carries an
observed:line naming the tool called and the shape that came back. A cause with noobserved:line is not reportable as ranked — demote it and mark itunverified. This is what makes the rule checkable by the consumer instead of trusting the diagnostician. - Only causes 1 and 2 can be observed. A transient/rate-limit (cause 3) and
an in-diff regression (cause 0) cannot be confirmed by a live call — the
endpoint being healthy now says nothing about either. Do not manufacture an
observed:line for them; the requirement does not apply. - Never publish a secret. An
observed:line records the tool and the shape, never a URL, command, or header carryingTMDB_API_KEY. TMDb takesapi_keyas a query item, so a pastedcurlleaks it — and this analysis is published verbatim into an issue on a public repo. Saymcp__tmdb__movie_details(550) → runtime: Int, present, not the command. - Headless runs cannot probe. The scheduled
integration-failure.ymljob mounts no MCP. There, writeobserved: unavailable (headless)and mark the causeunverified— do not fall back tocurl, which would put the key in the text (rule 4). Attended runs have the MCP; use it.
Produce a concise markdown analysis with exactly these three sections:
Summary: one or two sentences on what failed — name the failing suite/test where visible.
Likely cause: the most probable root cause, ranked most-likely first —
ranked by the trigger (step 0). Each cause 1 or 2 carries its observed:
line, or is marked unverified:
- If PR / push-triggered, add as a top candidate:
- A regression in the changed code — read the diff (
git diff main...HEAD). A new/renamed request path or query item, a changed model/CodingKeys, or a decoder tweak can break a live call. This run is the gate, so the diff is a prime suspect — but still weigh causes 1–3 below, since the live API can drift independently of your change.
- A regression in the changed code — read the diff (
- If scheduled, do NOT lead with "a code bug" (nothing changed); go straight to 1–3.
- A TMDb backend change — a response field was added, removed, renamed, or
became nullable, breaking a model's
Decodable. Call the endpoint viamcp__tmdb__*and record what came back (observed:); confirm against the OpenAPI spec (see step 3) for the documented shape. - Stale assumed data in an integration test — the test asserts a specific
live value (a title, count, id, date, or ordering) that the API now returns
differently. The code is fine; the test's baseline has drifted. Fetch the
value the test asserts and record it (
observed:) — drift is only a fact once you have seen today's value. - A transient API error, rate limiting (HTTP 429), or a timeout — the
Integration Test job has a 30-minute
timeout-minutes, and a cancelled (timed-out) run still surfaces as a workflowfailure. A truncated log with no assertion failure, or a run that ran the full 30 minutes, points here.
Cite the specific HTTP status codes, error messages, or failing assertions from the log that point to your conclusion.
Suggested fix: the concrete next step — which Swift model or JSON fixture to update for an API change, which integration-test assertion to relax or refresh for drifted data, or (only for case 3) re-run the job / wait out rate limiting / investigate the slow run if it timed out.
Keep it under ~150 words.
Steps
- Determine the trigger (it sets the cause ranking above). If the calle
Установить diagnose-integration-failure в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл diagnose-integration-failure?
Diagnose a failing TMDb integration-test run — summarise the failure, rank the likely cause, and suggest a concrete fix
Как установить скилл diagnose-integration-failure?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл diagnose-integration-failure запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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