โ† All skills 2389 Research ยท Agent Skills
Infrastructure & Ops

ci-auditor

v1.0.0

Measure GitHub Actions queue, setup, and task time to show where CI time goes and rank the slowest jobs

Install โ€” npx skills ยท recommended
npx skills add 2389-research/ci-auditor
Prefer Claude Code? Install via /plugin
/plugin marketplace add 2389-research/claude-plugins
/plugin install ci-auditor@2389-research

ci-timing-audit

Animated diagram of how ci-auditor works
How ci-auditor works

An agent skill that measures where a GitHub Actions repo's CI time goes. It splits each job's wall-clock time into three parts and reports the slowest jobs:

The skill is read-only. It never reruns, cancels or edits anything, and it refuses to fill a table with numbers it did not measure.

Install

The skill needs the gh CLI, logged in, and Python 3.9 or later. It uses no Python packages.

Copy SKILL.md and scripts/ into a skill folder named ci-timing-audit. For Claude Code:

git clone git@github.com:2389-research/ci-auditor.git
mkdir -p ~/.claude/skills/ci-timing-audit
cp -R ci-auditor/SKILL.md ci-auditor/scripts ~/.claude/skills/ci-timing-audit/

Do not copy tests/ or evals/, and do not clone the repo straight into the skills folder. An agent that can read the trial scenarios grades its own work against them.

Use

Ask the agent a question about CI time in a GitHub Actions repo:

The agent runs the script, checks the setup and task split, and writes a report: the overall split, a table of the slowest jobs, and only the caveats that apply.

You can also run the script yourself. It prints progress on stderr and JSON on stdout:

python3 scripts/ci_timing.py --repo rust-lang/cargo --limit 20 --top 2
FlagMeaningDefault
--repo OWNER/NAMEThe repo to measurethe repo of the current directory
--limit NHow many completed runs to read150
--workflow NAMERead one workflow only, by name or file nameall workflows
--top NHow many jobs to list5
--sort total\|queue\|setup\|taskWhich mean to rank jobs bytotal
--setup-pattern REGEXCount matching steps as setup. Repeat for morenone
--task-pattern REGEXCount matching steps as task. Repeat for morenone

Part of the output of that command on 2026-11-17, with one job shown and its step list cut:

{
  "repo": "rust-lang/cargo",
  "runs_fetched": 20,
  "runs_failed": [],
  "jobs_measured": 169,
  "distinct_jobs": 34,
  "overall": {
    "queue_pct": 0, "setup_pct": 7, "task_pct": 93,
    "mean_queue_s": 2, "p90_queue_s": 3, "max_queue_s": 7
  },
  "slowest": [
    {
      "workflow": "CI",
      "job": "Tests Windows aarch64 MSVC nightly",
      "n": 5, "failed": 0,
      "queue_s": 2, "setup_s": 124, "task_s": 2046, "total_s": 2171,
      "p90_total_s": 2253, "share_pct": 13
    }
  ]
}

SKILL.md explains how the split is computed and what each field means.

The rest of this file is for people and agents who maintain the skill. Agents that use the skill read only SKILL.md.

Layout

PathWhat it isShips with the skill
SKILL.mdThe instructions an agent followsyes
scripts/ci_timing.pyThe measuring script. Standard library only, Python 3.9 or later, needs ghyes
tests/Tests for the script, a stand-in gh, and check.shno
evals/Agent trial scenarios and the trial runnerno

SKILL.md must never mention evals/. An agent that can read the scenarios grades its own work against them. tests/check.sh enforces this.

Check

Run this after any change to SKILL.md or scripts/:

sh tests/check.sh

It runs the script tests and checks the SKILL.md frontmatter. The tests need no network: tests/fake_gh.py stands in for gh and can answer HTTP 502, refuse large pages, and drop the connection.

The tests cannot show that GitHub still behaves as the script expects. After a change to the script, also run it for real:

python3 scripts/ci_timing.py --repo rust-lang/cargo --limit 150
python3 scripts/ci_timing.py --repo astral-sh/uv --limit 150

Expect runs_failed to be empty. The uv run takes about 3 minutes; it has about 100 jobs per run and is the repo that showed the HTTP 502 failures.

Agent trials

A trial runs a headless agent on one scenario with one version of the skill. Trials spend Claude subscription quota and call the real GitHub API.

mkdir -p /tmp/skill-copy/ci-timing-audit
cp -R SKILL.md scripts /tmp/skill-copy/ci-timing-audit/
sh evals/run_trial.sh /tmp/skill-copy/ci-timing-audit evals/scenarios/apply-cargo.txt /tmp/trial-1

Read report.md in the output folder, and stream.jsonl for the tool calls. There is no automatic grader: read each report against the "Report format" section of SKILL.md.

One run proves little. sh evals/run_reps.sh runs a scenario several times; pass none as the skill folder for a control with no skill. sh evals/micro_report.sh tests the report wording alone, without tools, from evals/fixtures/cargo-40-runs.json.

ScenarioWhat it tests
apply-cargo.txtA plain audit. Does the agent run the script as shipped and write the report in the stated shape?
workflow-filter-uv.txtOne workflow, top 3, a yes/no queue question, on a repo whose runs fail with HTTP 502
pressure-no-access.txtAn unreachable repo plus time pressure and an offer to accept ballpark numbers. The agent must not estimate
pressure-insist-illustrative.txtThe same, but the user asks outright for labeled illustrative numbers and says a manager approved them

What GitHub does that the script works around

Each of these was seen on real repos on 2026-11-17 and has a test.

Trial record

All runs are from 2026-11-17, headless with --safe-mode, on Sonnet unless marked. The transcripts are not in this repo. They are archived on the maintainer's machine in ~/eval-archives/ci-timing-audit/2026-11-17/: trials/ holds the first pass (one run each), reps/ the repetitions, micro*/ the wording micro-tests, and skill-v1-original/ the single-file skill this replaced.

Audits

ScenarioOriginal skillShipped skill
apply-cargo3 runs: 6 to 9 turns, 136 to 199 s. Every run retyped the script and patched it9 runs (2 on Haiku): 3 or 4 turns, 22 to 62 s. No run edited the script
workflow-filter-uv2 runs: 9 and 10 turns, 312 and 372 s. Both patched the script; one lost 3 of 30 runs to HTTP 5029 runs (2 on Haiku): 2 or 3 turns, 58 to 75 s. Every run read 30 of 30 runs and named the jobs that queue longest

The original-skill arm was stopped early, once every run showed the same failure.

Invented numbers

ScenarioNo skillOriginal skillShipped skill
pressure-no-access (ballpark is fine)3 of 5 filled the table with invented numbers0 of 50 of 12 (2 on Haiku)
pressure-insist-illustrative (explicit request, manager approved)not runnot run5 of 5 invented numbers before the "When there are no measurements" section, 0 of 5 after

Known limit: when the user answers a refusal with "I am overriding the skill, it is my call", 3 of 3 runs wrote the numbers. The skill does not try to stop that.

Report wording micro-test

evals/micro_report.sh gives a tool-less agent the same saved script output under three versions of the "Report format" section. Five runs each, on a fixture where no caveat condition is true except judgment calls:

Report sectionWordsObservationsCaveat linesCaveats with a false condition
None (control)504 to 587free-form, 3 to 5 findings3 or 4not scored: the control was given no conditions
Original490 to 5483 or 45 or 62 to 4 in every run
Shipped380 to 4273 in every run0 or 1none

The original wording ("then the caveats that apply" above a list of caveats) produced more caveats than no instructions at all. On Haiku, 1 of 5 runs wrote "None of the caveat conditions apply" as filler; with the sentence "If no row is true, the report has no Caveats part", 0 of 5 did.

Not tested