ci-forensics
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when reading CI logs and diagnosing failures — fetching Actions logs through the GitHub MCP, classifying failures by cause, and…
от TheLobbi★ 22 звезды на GitHubОб этом скилле
CI Forensics
Fetching logs — the correct sequence
1. mcp__github__actions_list method: "list_workflow_runs", branch: <head ref>
2. mcp__github__get_job_logs run_id: <run>, failed_only: true
3. mcp__github__get_job_logs job_id: <job>, return_content: true, tail_lines: 200
Known pitfalls in these tools:
actions_listandactions_getare multiplexed behind amethoddiscriminator. Calling either withoutmethoderrors.actions_getalso needsresource_id(notrun_id) and returns metadata, not logs. It is the wrong tool for log triage.get_check_runfetches one check run bycheckRunId; it has no list mode. For "is CI green on this sha", useactions_list→list_workflow_runsand filter byhead_sha.list_workflow_runscan exceed the token limit and be spilled to a file. Parse that file withnode -e, do not read it inline.
Failure taxonomy
Classify before changing anything. Fixing an infra flake by editing source code produces a red PR with extra churn.
| Class | Signals | Action |
|---|---|---|
| Real regression | Traces to a file/line in the diff; reproduces locally; the test is new or newly touched | Fix + regression test |
| Flaky | Same commit sha, different result; timing/ordering/port/network in the trace | Confirm across ≥3 runs, then quarantine |
| Infra | Runner OOM, disk full, image pull failure, registry 5xx, action download timeout | Re-run. Escalate after 2. Never edit code |
| Base broken | Same job red on the base at a commit predating the branch point | Report once, wait for recovery |
| Config drift | Failure in workflow YAML, action inputs, or a missing secret | Fix the workflow |
| Dependency | Appeared with no source change; a transitive package published | Pin or roll back |
Establishing "base broken"
Do not infer it from error text. Check the base branch's own runs for the same job at a commit predating this branch's point of divergence. Red there too → base breakage. Otherwise it is yours.
Flaky vs real
| Evidence | Strength |
|---|---|
| Same commit sha, different results | Conclusive |
| Passed on a neighbouring run, no relevant change | Strong |
| Fails only under parallel execution | Strong — ordering or shared state |
| Fails only on one OS or runtime version | Medium — environment dependence |
| "It passed when I re-ran it" | Weak — never sufficient alone |
A test that has never passed is not flaky. It is broken.
Failure rate hints at mechanism: ~50% is usually an async race; ~2% is usually resource pressure or a real-time dependency.
Sources of nondeterminism
Real time · unseeded randomness · test ordering and shared module state · fixed ports · shared database rows · reused temp paths · missing awaits · real network calls · resource pressure.
Never
- Never disable, skip, or
.onlya test to make CI pass..onlysilently disables the rest of the file. - Never re-run a job to make a failure disappear without recording why it failed.
- Never claim CI is fixed without a green run to point at.
See also
actions-authoring— fixing the workflow itself../commands/ci.md— the drive-to-green loop
Установить ci-forensics в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ci-forensics?
This skill should be used when reading CI logs and diagnosing failures — fetching Actions logs through the GitHub MCP, classifying failures by cause, and distinguishing flaky tests from real regressions.
Как установить скилл ci-forensics?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ci-forensics запускает скрипты?
Нет, скилл состоит только из инструкций (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