investigating-ci-failures

investigating-ci-failures is a skill for Claude Code, Codex from PostHog/skills. It costs 177 tokens per session (1,567 once invoked), scanned A, a copy of investigating-ci-failures, MIT.

A method for tracing a failed continuous-integration (CI) test—the automated checks that run when code changes—to a specific cause. It determines whether the failure comes from your change, the main code branch, or a flaky test.

In plain words
What is it for?
Use it to investigate broken builds, identify who introduced a failure, distinguish flaky tests from real bugs, and check whether a fix has landed.
Why use it?
It connects failed tests with commits, authors, pull requests, and later successful runs, so developers do not have to rerun CI just to understand the history.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate broken builds, identify who introduced a failure, distinguish flaky tests from real bugs, and check whether a fix has landed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/skills/investigating-ci-failures
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PostHog/skills --skill investigating-ci-failures
Clone the repo
git clone --depth 1 https://github.com/PostHog/skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for investigating-ci-failures

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/skills/investigating-ci-failures/github.svg)](https://agentmods.dev/skills/posthog/skills/investigating-ci-failures)
Your own site
<a href="https://agentmods.dev/skills/posthog/skills/investigating-ci-failures"><img src="https://agentmods.dev/badge/skills/posthog/skills/investigating-ci-failures/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for investigating-ci-failures

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/skills/investigating-ci-failures"><img src="https://agentmods.dev/badge/skills/posthog/skills/investigating-ci-failures.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 177 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,567 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00177 $0.01567
Opus 5.5 $0.00071 $0.00627
Sonnet 5.5 $0.00035 $0.00313
Haiku 4.5 $0.00018 $0.00157

Measured 18d ago against content hash 418a90e7c451, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

investigating-ci-failures scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to investigating-ci-failures — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/omnibus/investigating-ci-failures/SKILL.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Investigating CI failures

Take one failing test or one red run to a verdict: the PR's own bug, a default-branch break, or a flaky test. For a default-branch break, also name the culprit commit, its author, its PR, and the fix if one landed. You never need to re-run CI to answer.

Choosing a starting point

Question Use
What is broken across CI right now? engineering-analytics-broken-tests
Why did my PR's CI fail? engineering-analytics-ci-failure-logs with the PR number
Why did this run fail? engineering-analytics-run-failure-logs with run_id and ci_engine
Who broke master? When did this failure start? The two views, with the steps below
Is this test flaky? The failure's shape, then engineering-analytics-flaky-tests
Is this setup or infrastructure failure common? Job conclusions, query 7

Query the two views with the execute-sql tool:

  • engineering_analytics_ci_failures has one row per pytest FAILED <nodeid> line from the CI logs. fingerprint joins the test id to a normalized error, so it groups one failure across runs.
  • engineering_analytics_ci_job_history has one row per job attempt, with its conclusion and commit attribution: head_sha, commit_author_name, commit_message, and commit_pr_number.

The logs hold failures only. Passing jobs exist only in the job history, so every question about when a job turned red or green must use it.

Every numbered query is in references/investigation-queries.md.

Read the full file on GitHub · 99 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago Changed · -63 lines · +29 tokens per session 418a90e7c451
  2. 28d ago Changed · +1 lines 0723c0573049
  3. 1mo ago Changed · +2 lines a04c1f9927a9
  4. 2mo ago First seen · 159 lines · 148 tokens per session scan A 94b68bbb82d4

Subscribe to this mod's changes

investigating-ci-failures is a skill published in the GitHub repository PostHog/skills (81 stars, last pushed today), licensed MIT. It adds 177 tokens to every session and 1,567 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to investigating-ci-failures, differing in 0 lines, and is treated as a copy.

Related

investigating-ci-failures compared with skills from other repositories

investigating-ci-failures next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
investigating-ci-failuresPostHog/skillsSkill81todayMITA177Claude Code, Codex
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7ktodayMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9ktodayApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill342todayApache-2.0A112Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2ktodayApache-2.0A15Claude Code, Codex
diagnosing-missing-recordingsPostHog/posthogSkill41ktodaynoneA76Claude Code, Codex