wait-ci

wait-ci is a skill for Claude Code, Codex from Codagent-AI/agent-skills. It costs 62 tokens per session (1,968 once invoked), scanned A, original, MIT.

A tool that checks whether automated tests and other checks for the current pull request have passed, failed, or are still running. A pull request is a proposed code change awaiting review, and the tool also reports review comments that may block it.

In plain words
What is it for?
Waiting for CI, or continuous integration, to finish; reporting check results; showing relevant logs for failures; and finding blocking pull-request reviews.
Why use it?
It saves developers from repeatedly checking the code-hosting site and can reveal review problems even when automated checks are green.

Skill for Claude CodeCodex

Part of the codagent plugin — 27 skills shipped together

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.

agentmods
npx agentmods add skills/codagent-ai/agent-skills/wait-ci
Any agent
npx skills add Codagent-AI/agent-skills --skill wait-ci
Clone the repo
git clone --depth 1 https://github.com/Codagent-AI/agent-skills

Made for: Claude Code, Codex.

Or install codagent, the plugin that ships this one along with the rest of its 27 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/codagent-ai/agent-skills/wait-ci.svg)](https://agentmods.dev/skills/codagent-ai/agent-skills/wait-ci)
Your own site
<a href="https://agentmods.dev/skills/codagent-ai/agent-skills/wait-ci"><img src="https://agentmods.dev/badge/skills/codagent-ai/agent-skills/wait-ci.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,968 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00062 $0.01968
Opus 5 $0.00031 $0.00984
Sonnet 5 $0.00012 $0.00394
Haiku 4.5 $0.00006 $0.00197

Measured 4d ago against content hash b9cdb1366118, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wait-ci 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 4d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/check-ci.sh, scripts/get-pr-comments_test.sh, scripts/get-pr-comments.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/wait-ci/SKILL.md · 182 lines

How it starts

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

codagent:wait-ci

Poll CI check status for the current branch's PR and report the result, enriching failures with log output and checking for blocking reviews.

Use the bundled scripts for all API calls — they encode the correct field names, jq patterns, and GraphQL queries. Do not rewrite API calls inline.

NEVER pause to ask the user for permission to wait. Always run the full polling duration silently. Asking mid-execution breaks automation and is never needed — the caller already decided to invoke this skill.

How polling works

check-ci.sh is a single-invocation script. It polls every 10 seconds for up to 90 seconds, then exits. Claude calls it in a loop to cover the full max wait time. This keeps each Bash call bounded to ~2 minutes rather than blocking the agent for the full duration.

Each Bash call to check-ci.sh must use timeout: 120000 (2 minutes).

Steps

1. Run the polling loop

Compute max_runs = ceil(max_minutes * 60 / 90), defaulting to max_minutes = 15 → 10 runs.

The skill accepts an optional --max-minutes N argument; pass it through to adjust max_runs.

Track ever_had_checks = false, run = 0, and the overall deadline across iterations. The deadline is max_minutes after polling starts and also bounds any review-bot waiting in Step 3.

For each run:

bash skills/wait-ci/scripts/check-ci.sh

Use timeout: 120000 on the Bash call. Check the exit code:

Exit code Meaning Action
0 Terminal (passed or failed) Break out of loop, proceed to Step 2
2 Not yet terminal (pending or no_checks) If run < max_runs, re-run; else preserve the result and proceed to Step 3
1 Fatal error Report error and stop

After each exit-2 result, set ever_had_checks = ever_had_checks OR result.had_checks.

Timeout handling: When all runs are exhausted (exit code 2 on the last run):

  • If ever_had_checks is false → treat CI as non-blocking, then still run Step 3 before reporting a final status
  • Otherwise → preserve pending and the list of still-running checks, then run Step 3 before classifying the final status

Read the full file on GitHub · 182 lines

Files

What ships with it

3 files 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. 4d ago First seen · 182 lines · 62 tokens per session scan A b9cdb1366118

Subscribe to this mod's changes

wait-ci is a skill published in the GitHub repository Codagent-AI/agent-skills (30 stars, last pushed 1mo ago), licensed MIT. It adds 62 tokens to every session and 1,968 once invoked, about $0.0003 per session on Opus 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

Other skills, from other repositories