Agent skill

CI Failure Batching

by ZaxbyHub in ZaxbyHub/opencode-swarm

Batch collection and fix protocol for CI failures. An agent skill from ZaxbyHub/opencode-swarm.

MITAuto-check passedTesting & QA

Install CI Failure Batching

skills CLI
$ npx skills add ZaxbyHub/opencode-swarm --skill ci-failure-batching -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ZaxbyHub/opencode-swarm ci-failure-batching --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.opencode/skills/ci-failure-batching .claude/skills/ci-failure-batching && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ci-failure-batching
GitHub stars
494
Token cost
~607 tokens
SKILL.md length
309 words
Files
1
Skills in repo
91
Repo updated
First seen
Licence
MIT

At a glance

Batch collection and fix protocol for CI failures. An agent skill from ZaxbyHub/opencode-swarm.

  • Works in 6 steps: DO NOT immediately fix the first… → If jobs are still running: Note the… → Once the run completes, collect ALL… → …
  • Tasks that involve Failing and flaky tests
  • SKILL.md covers Trigger, Protocol, Why this matters and Pr-monitor expectation
  • Calls gh and git

What it does

CI Failure Batching is an agent skill from ZaxbyHub/opencode-swarm. Batch collection and fix protocol for CI failures. Triggered when any CI check fails on a PR. Prevents serial diagnose-fix-push cycles by collecting all failures before fixing.

Its SKILL.md is about 610 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Failing and flaky tests. The repository describes itself as: Architect-centric agentic swarm plugin for OpenCode. Hub-and-spoke orchestration with SME consultation, code generation, and QA review. The licence is MIT.

When your agent uses it

  • Tasks that involve Failing and flaky tests

Example prompts

  • “/ci-failure-batching”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. DO NOT immediately fix the first failure. Check if other jobs are still running
  2. If jobs are still running: Note the failure, WAIT for the run to complete
  3. Once the run completes, collect ALL failures
  4. Fix ALL failures in one changeset: Cluster by root cause, fix each cluster, verify locally
  5. Publish through commit-pr. This skill owns diagnosis and fix-planning
  6. Only re-push if NEW failures surface that were not in the original batch.

What it can do on your machine

Read from SKILL.md and the folder at commit b63a4bd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

CI Failure Batching loads about 607 tokens when it runs. Until then it costs about 49 tokens; SKILL.md has 309 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~49
When it runs · the whole SKILL.md, loaded when a task matches
~607

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ZaxbyHub/opencode-swarm at commit b63a4bd, republished under its MIT licence (© ZaxbyHub). 309 words, ~607 tokens.

Download SKILL.mdSave it as .claude/skills/ci-failure-batching/SKILL.md (or your agent's skills folder).
name
ci-failure-batching
description
Batch collection and fix protocol for CI failures. Triggered when any CI check fails on a PR. Prevents serial diagnose-fix-push cycles by collecting all failures before fixing.
audience
swarm-plugin

CI Failure Batching

Trigger

When the PR monitor surfaces pr.ci.failed. The event is batched after the check set is complete and includes all known failed checks in failedChecks.

Protocol

  1. DO NOT immediately fix the first failure. Check if other jobs are still running:
    gh pr checks <PR> --repo <repo>
  2. If jobs are still running: Note the failure, WAIT for the run to complete
  3. Once the run completes, collect ALL failures:
    • Identify every check with fail status
    • For each: gh run view <run-id> --log-failed
    • Build a complete failure ledger
  4. Fix ALL failures in one changeset: Cluster by root cause, fix each cluster, verify locally
  5. Publish through commit-pr. This skill owns diagnosis and fix-planning ONLY (issue #2131 criterion E): before any commit or push, compose the commit-pr skill for the commit message, PR body/invariant-audit/test-plan discipline, and the push protocol. The batching goal is ONE push cycle (collect all → fix all → push once), not literally one commit — a single new commit containing all batched fixes satisfies the goal. Guardrail facts (verified in the tool-before push guardrail): bare git push --force and -f are deny-pattern-blocked; --force-with-lease is EXEMPT because it refuses to overwrite remote work gained since your last fetch — commit-pr mandates it for fork/rebase flows. Even so, prefer a normal new fix commit over amending an already-pushed commit.
  6. Only re-push if NEW failures surface that were not in the original batch.

Why this matters

Without batching, N failures produce N push cycles. With batching, N failures produce 1 push cycle.

Example from session #1685:

  • Without batching: 6 pushes (format → stale-assertion-1 → stale-assertion-2 → integration → merge-group → clean)
  • With batching: 2 pushes (collect all → fix all → push once → clean)

Pr-monitor expectation

The pr-monitor should fire one pr.ci.failed event for the completed failing check set, not one event per check. Still verify with gh pr checks before fixing, because GitHub can append late merge-group or matrix jobs.

© ZaxbyHub, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .opencode/skills/ci-failure-batching of ZaxbyHub/opencode-swarm.

Open the folder on GitHubat commit b63a4bd

Compare with similar skills

CI Failure Batching next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

CI Failure Batching compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
CI Failure Batching this skillZaxbyHub/opencode-swarm494—~607Automated safety check: PassMIT
Swig Testswig/swig6.3k—~2.3kAutomated safety check: PassCustom licence
Triage CI FailureDataDog/datadog-agent3.8k—~2.3kAutomated safety check: PassApache-2.0
Dynamo Jira TicketDynamoDS/Dynamo2k—~1.1kAutomated safety check: PassApache-2.0
Fix Ready PRsfastrepl/anarlog9.5k—~1.4kAutomated safety check: PassMIT
Trx Analysismicrosoft/vstest969—~1.8kAutomated safety check: PassMIT

Similar skills

  • Swig Test

    swig/swig

    Run SWIG test suite for specific languages. An agent skill from swig/swig.

    6.3k GitHub stars~2.3k tokensUpdated 3 days ago
    Testing & QAAuto-check passed
  • Triage CI Failure

    DataDog/datadog-agent

    Official

    Classify a failed CI as either caused by an active incident, flakiness, or a true code regression.

    3.8k GitHub stars~2.3k tokensUpdated today
    Testing & QAAuto-check passed
  • Dynamo Jira Ticket

    DynamoDS/Dynamo

    Create structured Jira tickets for Dynamo from bug reports, failing tests, or feature requests.

    2k GitHub stars~1.1k tokensUpdated today
    Testing & QAAuto-check passed
  • Fix Ready PRs

    fastrepl/anarlog

    Inspect every open non-draft PR for CI failures and unresolved Cursor Bugbot findings, then fix them on the existing PR branches.

    9.5k GitHub stars~1.4k tokensUpdated today
    Testing & QAAuto-check passed
  • Trx Analysis

    microsoft/vstest

    Official

    Parse and analyze Visual Studio TRX test result files. An agent skill from microsoft/vstest.

    969 GitHub stars~1.8k tokensUpdated today
    Testing & QAAuto-check passed
  • Wio

    workersio/skills

    Testing workflow skill for finding high-value test candidates, writing focused tests, generating realistic workloads, reviewing test value, and diagnosing test-suite health.

    204 GitHub stars~5.8k tokensUpdated 2 mo ago
    Testing & QAAuto-check passed

More from ZaxbyHub/opencode-swarm

All 91 skills in this repo
  • Codebase Review Swarm

    ZaxbyHub/opencode-swarm

    Runs an evidence-gated, quote-grounded audit of a codebase for security, QA, accessibility, performance and more, and writes a verified report without changing source files.

    494 GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Issue Tracer

    ZaxbyHub/opencode-swarm

    Drives a bug report from validation and root-cause tracing through a critic-reviewed plan, an approved minimal fix and a PR-ready closure, never merging without recorded human approval.

    494 GitHub stars~4.4k tokensUpdated today
    Auto-check passed
  • Commit and PR Publishing for Codex

    ZaxbyHub/opencode-swarm

    Codex adapter for opencode-swarm that governs commits, pushes, draft PRs, PR body updates and CI closeout, deferring to the repo's canonical commit-pr protocol.

    494 GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Durable Session State

    ZaxbyHub/opencode-swarm

    Keeps plans, decisions, evidence and reviewer verdicts in small files so long multi-phase tasks survive context compaction and session resumes.

    494 GitHub stars~896 tokensUpdated today
    Auto-check passed
  • Swarm PR Feedback Closer

    ZaxbyHub/opencode-swarm

    Ingests existing pull request feedback such as review comments and CI failures, verifies each claim, fixes confirmed issues and reports closure status for every item.

    494 GitHub stars~14k tokensUpdated today
    Auto-check passed
  • Swarm PR Subscribe

    ZaxbyHub/opencode-swarm

    Monitor a pull request after creation and act autonomously on pushed PR activity.

    494 GitHub stars~2.2k tokensUpdated today
    Auto-check passed

Categories

Questions about CI Failure Batching

What does CI Failure Batching do?

Batch collection and fix protocol for CI failures. An agent skill from ZaxbyHub/opencode-swarm. CI Failure Batching is an agent skill from ZaxbyHub/opencode-swarm. Batch collection and fix protocol for CI failures.

When should I use CI Failure Batching?

CI Failure Batching fits situations like: tasks that involve Failing and flaky tests.

How do I install CI Failure Batching in Claude Code?

Run `npx skills add ZaxbyHub/opencode-swarm --skill ci-failure-batching -a claude-code`. Or copy the skill folder (.opencode/skills/ci-failure-batching in ZaxbyHub/opencode-swarm) into .claude/skills/ci-failure-batching in your project. Claude Code loads it when a task matches its description.

How do I install CI Failure Batching in Codex?

Run `npx skills add ZaxbyHub/opencode-swarm --skill ci-failure-batching -a codex`. Or copy the skill folder (.opencode/skills/ci-failure-batching in ZaxbyHub/opencode-swarm) into .agents/skills/ci-failure-batching in your project. Codex loads it when a task matches its description.

Can I use CI Failure Batching in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ZaxbyHub/opencode-swarm --skill ci-failure-batching -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ci-failure-batching, .gemini/skills/ci-failure-batching, .github/skills/ci-failure-batching and .opencode/skills/ci-failure-batching in your project.

What does CI Failure Batching need to run?

Going by SKILL.md and its folder, CI Failure Batching needs the command-line tools its instructions call (gh and git).

Does CI Failure Batching access the network?

SKILL.md contains no URLs. Its commands use gh and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is CI Failure Batching safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does CI Failure Batching use?

CI Failure Batching is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does CI Failure Batching use?

About 607 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to CI Failure Batching?

Skills that share tags, products or a category with CI Failure Batching: Swig Test (swig/swig, 6.3k stars), Triage CI Failure (DataDog/datadog-agent, 3.8k stars), Dynamo Jira Ticket (DynamoDS/Dynamo, 2k stars) and Fix Ready PRs (fastrepl/anarlog, 9.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains CI Failure Batching?

ZaxbyHub (a GitHub organization) maintains it in ZaxbyHub/opencode-swarm, which has 494 GitHub stars. The repository holds 91 skills in this directory. The repository was last updated on October 10, 2026.

Source: ZaxbyHub/opencode-swarm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.