debugging-ci-failures
БесплатноБез исполняемых скриптовНе проверенDebugs failing GitHub Actions CI runs for PostHog PRs, commits, and branches, and answers broad CI-health questions ("is CI red?", "is master green today?"…
от PostHog★ 41 278 звёзд на GitHubОб этом скилле
Debugging PostHog CI failures
Before you propose a change to CI, check things already tried for the idea. It records what was measured, and why some good-sounding changes were reverted or rejected.
Find the first meaningful failure, classify it, reproduce the smallest useful case locally when appropriate, and report the result. Avoid public-visible or irreversible actions unless the user explicitly asks.
For an interactive investigation, start with the hogli ci:insights digest.
It aggregates across runs and branches, which gh cannot do cheaply, and tells
you whether a failure is likely trunk-borne, gate-only, or isolated to a small
set of branches. gh is authoritative for one run's current state and
attribution. Use the digest to decide what to inspect; use gh to confirm
whose failure it is and exactly what failed in a given run.
The unattended Master-red workflow is the exception. Follow its reference, which defines a first step that works in the task sandbox.
This skill triages and classifies. Once a failure is confirmed flaky, hand off
to the fixing-flaky-tests skill, which owns local reproduction, root-cause
fixing, and N-run validation. For "who broke master" — the culprit commit and
the commit that fixed it — hand off to the investigating-ci-failures skill,
which owns the green/red boundary analysis. For aggregate pipeline health (is CI
getting slower, which workflow is the long pole, how long PRs take to merge),
read diagnosing-ci-and-merge-bottlenecks. Both are product skills under
products/engineering_analytics/skills/, not invocable here: read the
SKILL.md at that path.
Rule out a platform outage first
GitHub Actions goes down often enough that it belongs before any log reading, and
a platform incident makes every other signal a symptom. It costs two page loads:
https://www.githubstatus.com/ for GitHub, https://status.depot.dev/ for the
runners. Check them whenever failures are broad — several workflows at once, a
burst of runs failing together, jobs dying before Checkout, or anything red
across unrelated PRs.
Report an outage as an outage, name the component, and stop recommending reruns.
Safety rules
Do not do any of these without explicit approval in the current conversation:
- Rerun or cancel a GitHub Actions run, or retry, rerun, or cancel a Depot CI run. The exception is a check-job run from your working tree, see "Run a Depot CI check job from your working tree".
- Post a GitHub comment, PR review, or issue comment through any CLI, MCP, or API tool.
- Push commits, force-push, rename branches, or delete branches.
- Edit
.github/workflows/files (CI infra changes need human review). - Merge, close, or reopen the PR.
- Accept or update snapshots.
Read-only gh calls and read-only GitHub tools are fine. If you need to
change local Git state, make sure it is necessary for the task and does not
overwrite unrelated work.
Workflow
1. Start with CI insights for interactive investigations
hogli ci:insights reads PostHog's own engineering analytics — the cross-run
failure history a single run can't show. Consult it before any raw gh log
archaeology.
hogli ci:insights # digest for the current repo + branch
hogli ci:insights search "<error or test name>" # match a specific failure
hogli ci:insights view <ref> # one failure in full
hogli ci:insights view <ref> --logs # ...plus the failing log lines
- Broad question ("is CI red?", "is master green today?", "what's broken right now?"): the no-arg digest answers directly. It gives the default-branch verdict (how many workflows are failing on their latest run, and which), the live failures grouped by state, the jobs red on trunk right now, a grouped feed of default-branch failures, and the PR your branch belongs to. You often do not need a target PR or run at all; report from the digest.
- Specific failure: run
search "<error>"to match it before reading logs, thenview <ref>on a row the digest or search printed.--logsprints the thinned failing lines from that failure's latest run, which is usually enough to classify without touchinggh.
Read each row's state as a triage ranking:
| State | Means |
|---|---|
breaking_master |
failing on the default branch and that job's latest run is still red |
blocking_merge_queue |
failed only on merge-queue gate branches in the window |
novel_burst |
new within a day, already spreading across branches, not on trunk yet |
potentially_resolved |
hit trunk but that job's latest run is green again |
Установить debugging-ci-failures в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл debugging-ci-failures?
Debugs failing GitHub Actions CI runs for PostHog PRs, commits, and branches, and answers broad CI-health questions ("is CI red?", "is master green today?", "what's broken right now?"). Use when the user asks why CI is red, asks for the current CI or master status, or mentions a failing check, GitHub Actions run, Depot runner, Depot CI run, workflow, job, shard, merge queue kick, flaky test, lint failure, typecheck failure, snapshot diff, migration check, generated types drift, or skills build failure. Interactive runs start with the `hogli ci:insights` digest (cross-run CI history from engineering analytics), then use read-only inspection, failure classification, the smallest local reproduction with hogli, and safe reporting without rerunning CI or posting to GitHub. Running unattended as the "Master-red diagnosis" workflow: see references/master-red-incident.md for its sandbox-compatible first step.
Как установить скилл debugging-ci-failures?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл debugging-ci-failures запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic