ci-repair

ci-repair is a skill for Claude Code, Codex from yimwoo/codex-agenteam. It costs 26 tokens per session (2,036 once invoked), scanned A, original, MIT.

A workflow for fixing failed GitHub Actions checks on a pull request. It gathers the failure logs, asks a developer agent to make a fix, tests the fix locally, and pushes it only when verification succeeds.

In plain words
What is it for?
Use it to diagnose and repair failed automated checks on GitHub pull requests, then verify and push the repair.
Why use it?
It removes the need to repeatedly inspect CI logs, coordinate a fix, and check whether the repair worked. It also records progress and stops when limits, approvals, or changed code require human attention.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Codex.

Good fit Use it to diagnose and repair failed automated checks on GitHub pull requests, then verify and push the repair.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yimwoo/codex-agenteam/ci-repair
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 yimwoo/codex-agenteam --skill ci-repair
Clone the repo
git clone --depth 1 https://github.com/yimwoo/codex-agenteam

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yimwoo/codex-agenteam/ci-repair"><img src="https://agentmods.dev/badge/skills/yimwoo/codex-agenteam/ci-repair.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,036 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 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.00026 $0.02036
Opus 5 $0.00013 $0.01018
Sonnet 5 $0.00005 $0.00407
Haiku 4.5 $0.00003 $0.00204

Measured 10d ago against content hash 6705126f61f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

ci-repair 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 10d 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.

skills/ci-repair/SKILL.md · 253 lines

How it starts

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

AgenTeam CI Repair

Fix a CI failure on a pull request. Fetches the failure context from GitHub Actions, dispatches the dev role with bounded logs, verifies the fix locally, and pushes only if verification passes.

GitHub Actions only. The workflow is a bounded, resumable monitor → diagnose → repair → verify loop.

Loop Contract

  • Defaults: max_repair_cycles: 3, max_elapsed_minutes: 90, and a five-minute CI polling interval. User-supplied lower budgets win.
  • Persist every cycle in .agenteam/ci-repair/pr-<pr_number>.json, keyed by head_sha. Record the run ID, failed jobs, repair attempt, local verification, pushed SHA, last heartbeat, and stop reason.
  • Emit a heartbeat while waiting for a role or CI. If the host cannot remain active, schedule a follow-up/automation and stop cleanly instead of holding a silent blocking wait.
  • Before replaying a repair after restart, compare the checkpoint head SHA and current PR head. Never repeat a completed repair for the same SHA.
  • Stop explicitly on success, exhausted cycle/elapsed budget, changed PR head, unavailable evidence, or required human approval.

Process

1. Accept Input

Get the PR reference from the user:

  • PR number: $ateam:ci-repair #42
  • Branch name: $ateam:ci-repair feature/add-auth
  • Nothing: use the current branch

2. Resolve PR

Resolve the input to a canonical tuple: pr_number, pr_url, pr_branch, head_sha.

If PR number given:

gh pr view <number> --json number,url,headRefName,headRefOid

If branch given or current branch:

BRANCH=$(git rev-parse --abbrev-ref HEAD)  # if no input
gh pr list --head <branch> --json number,url,headRefName,headRefOid --limit 1

If no PR found: "No PR found for branch <branch>. Push and create a PR first, then retry." Stop.

Extract:

  • pr_number from number
  • pr_url from url
  • pr_branch from headRefName
  • head_sha from headRefOid

3. Check CI Status

Get the latest CI run for the PR's current head commit:

Read the full file on GitHub · 253 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. 10d ago First seen · 253 lines · 26 tokens per session scan A 6705126f61f4

Subscribe to this mod's changes

ci-repair is a skill published in the GitHub repository yimwoo/codex-agenteam (13 stars, last pushed 2mo ago), licensed MIT. It adds 26 tokens to every session and 2,036 once invoked, about $0.0001 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

lookup-warn

Get context warnings for a file based on its extension and name. Surfaces known gotchas before the user hits them. Triggers on: warn me, gotchas, pitfalls, what should I watch out for, check this file.

Smart-AI-Memory/attune-ai · 51 tokens

rpi-fix-ci

Diagnose existing CI failures and repair their root causes locally with regression evidence and complete verification before any authorized publication.

juan294/cc-rpi · 28 tokens

overllm

Find the LLM call you didn't need — your GPT call is a regex. Static, zero-config linter that flags unnecessary GPT/Claude/AI API calls a regex, the stdlib, or a library already does (parsing dates, extracting emails/JSON, sorting, classifying with fixed labels). Runs locally, no model, no API key, nothing phones…

theadamdanielsson/overllm · 119 tokens

langbot-plugin-dev

Develop, debug, and test LangBot plugins. Use when creating new LangBot plugins, fixing plugin bugs, setting up a LangBot test environment, or testing plugins via WebSocket. Covers plugin component architecture (EventListener, Command, Tool), the plugin SDK API (invokellm, getllmmodels, sendmessage, plugin storage)…

langbot-app/LangBot · 110 tokens

baby-sit

Monitor a GitHub pull request until CI is green, diagnose failures, and rerun only evidence-backed flaky GitHub Actions jobs.

langchain-ai/open-swe · 30 tokens

ax-cpp-agent-observability

Use when writing C++ code with axllm for agent tracing, centralized and multi-tenant usage accounting, action logs, runtime diagnostics, replay, and production debugging.

ax-llm/ax · 44 tokens