ci-investigate

ci-investigate is a skill for Claude Code from drn/dots. It costs 51 tokens per session (1,361 once invoked), scanned A, original, MIT.

A CI failure investigation skill for continuous integration, the automated system that builds and tests code. It examines failures across several workflow runs to find repeated patterns and likely causes.

In plain words
What is it for?
Use it to investigate flaky tests, repeated CI failures, a particular job, or failures on a selected branch.
Why use it?
A single failed build may hide a flaky test or a recurring configuration problem. Comparing multiple runs helps separate one-off failures from issues that need fixing.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to investigate flaky tests, repeated CI failures, a particular job, or failures on a selected branch.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/drn/dots/ci-investigate
View source ↗ drn/dots
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 drn/dots --skill ci-investigate
Clone the repo
git clone --depth 1 https://github.com/drn/dots

Made for: Claude Code.

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 ci-investigate

README.md
[![agentmods](https://agentmods.dev/badge/skills/drn/dots/ci-investigate/github.svg)](https://agentmods.dev/skills/drn/dots/ci-investigate)
Your own site
<a href="https://agentmods.dev/skills/drn/dots/ci-investigate"><img src="https://agentmods.dev/badge/skills/drn/dots/ci-investigate/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 ci-investigate

Your own site · 80×15
<a href="https://agentmods.dev/skills/drn/dots/ci-investigate"><img src="https://agentmods.dev/badge/skills/drn/dots/ci-investigate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,361 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Memory Poisoning · line 95
    Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
    Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
How audits are shown
Origin original No closer match found 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.00051 $0.01361
Opus 5.5 $0.00020 $0.00544
Sonnet 5.5 $0.00010 $0.00272
Haiku 4.5 $0.00005 $0.00136

Measured 3mo ago against content hash 8b193d2f7d34, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ci-investigate 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 3mo 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.

agents/skills/ci-investigate/SKILL.md · 141 lines

How it starts

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

CI Failure Investigator

Investigate flaky CI failures across multiple workflow runs to identify patterns, categorize root causes, and propose targeted fixes.

Arguments

  • $ARGUMENTS - Optional: job name filter, number of runs to check, or branch name. Examples: "test-core-rspec", "--runs 10", "master"

If no arguments are provided, investigate the most recent failing workflow on the current branch.

Context

  • Current branch: !git branch --show-current
  • Repo remote: !git remote get-url origin 2>/dev/null | head -1
  • CI config: !find . -maxdepth 2 \( -name ".circleci" -o -name ".github" \) -type d 2>/dev/null | head -5
  • CircleCI config snippet: !head -30 .circleci/config.yml 2>/dev/null | head -30

Instructions

Investigate CI failures by fetching multiple workflow runs, extracting test results, and categorizing failure patterns.

Step 1: Determine Scope

Parse $ARGUMENTS for:

  • Job name filter (e.g., "test-core-rspec") -- only analyze jobs matching this name
  • Run count (e.g., "--runs 10") -- how many recent runs to check (default: 5, max: 15)
  • Branch -- which branch to investigate (default: current branch from context above)

Derive the project slug from the git remote URL. For GitHub repos, format is "gh/org/repo".

Report the scope to the user before proceeding:

  • Project slug
  • Branch
  • Job filter (if any)
  • Number of runs to fetch

Step 2: Fetch Recent Workflow Runs

Detect the CI provider from the context above and use the appropriate tools.

CircleCI (if .circleci/ exists): Use ToolSearch to find available CircleCI MCP tools (search "circleci"). Then:

  1. Fetch recent pipelines for the project slug and branch
  2. For each pipeline, get its workflows
  3. For each workflow, get jobs and their statuses
  4. Filter to failed jobs (and optionally by job name from Step 1)

GitHub Actions (if .github/workflows/ exists): Use the gh CLI:

  1. gh run list --branch {branch} --limit {N} to get recent runs
  2. gh run view {run_id} to get job details
  3. gh run view {run_id} --log-failed to get failure output

Read the full file on GitHub · 141 lines

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. 3mo ago First seen · 141 lines · 51 tokens per session scan A 8b193d2f7d34

Subscribe to this mod's changes

ci-investigate is a skill published in the GitHub repository drn/dots (23 stars, last pushed yesterday), licensed MIT. It adds 51 tokens to every session and 1,361 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ci-investigate compared with skills from other repositories

ci-investigate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ci-investigatedrn/dotsSkill23yesterdayMITA51Claude Code
repair-github-ciTracer-Cloud/opensreSkill17ktodayApache-2.0A40Claude Code, Codex
mcore-create-issueNVIDIA/skillsSkill4.3ktodayApache-2.0A26Claude Code
debug-taskmoonrepo/moonSkill4.2kyesterdayMITA203Claude Code
operating-github-ci-fixerTracer-Cloud/opensreSkill17ktodayApache-2.0A48Claude Code, Codex
meta-long-running-build-watchdogopensquilla/opensquillaSkill7.2k5d agoApache-2.0A131Claude Code
debugging-ci-failuresamplifthq/opentagSkill1.4k12d agoMITA189Claude Code, Codex