ci-failure-batching · zaxbyhub — скилл для Claude Code: CI-сбои и установка
Скилл ci-failure-batching собирает все упавшие проверки PR, прежде чем планировать исправления. Помогает избежать отдельного цикла диагностики и отправки изменений для каждой ошибки.
MIT ★ 539 обновлён 2026-10-29
npx skills add ZaxbyHub/opencode-swarm --skill ci-failure-batching -a claude-codeЧто делает ci-failure-batching
Скилл срабатывает при событии pr.ci.failed. Перед исправлениями он предлагает проверить gh pr checks <PR> --repo <repo> и дождаться завершения запущенных задач. Затем для каждой упавшей проверки собирает лог через gh run view <run-id> --log-failed и сводит сбои в общий список.
Ошибки группируются по первопричинам: скилл планирует исправить их вместе, проверить локально и отправить одним циклом. Перед коммитом или отправкой он делегирует работу над сообщением коммита, описанием PR и протоколом отправки скиллу commit-pr. Поздние проверки GitHub могут появиться уже после сбора: при новых сбоях потребуется повторная отправка.
Какие задачи решает
- собрать логи всех упавших проверок PR
- дождаться завершения ещё работающих CI-задач
- сгруппировать ошибки по общей первопричине
- подготовить единый набор исправлений для PR
Примеры запросов агенту
- Собери все сбои CI для этого PR и дождись завершения запущенных проверок.
- Посмотри логи всех упавших проверок, сгруппируй ошибки по причинам и составь план исправлений.
- Проверь, появились ли новые сбои после отправки исправлений для PR.
Как установить ci-failure-batching
1Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill ci-failure-batching -a claude-code2Вручную: положить файлы
~/.claude/skills/ci-failure-batching/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/ci-failure-batching/
1Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill ci-failure-batching -a codex2Вручную: положить файлы
.agents/skills/ci-failure-batching/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill ci-failure-batching -a cursor2Вручную: положить файлы
.cursor/skills/ci-failure-batching/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install ZaxbyHub/opencode-swarm .opencode/skills/ci-failure-batching2Вручную: положить файлы
.github/skills/ci-failure-batching/SKILL.md1Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill ci-failure-batching -a gemini-cli2Командой платформы
gemini skills install https://github.com/ZaxbyHub/opencode-swarm --path .opencode/skills/ci-failure-batchingВручную: положить файлы
.devin/skills/ci-failure-batching/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill ci-failure-batching -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о ci-failure-batching
Как установить ci-failure-batching в Claude Code?
Выполните npx skills add ZaxbyHub/opencode-swarm --skill ci-failure-batching -a claude-code. Файл скилла находится по пути ~/.claude/skills/ci-failure-batching/SKILL.md.
Что делает ci-failure-batching?
Он собирает логи всех проваленных CI-проверок PR, группирует ошибки по причинам и планирует исправить их за один цикл отправки.
Почему скилл проверяет PR перед исправлением?
GitHub может добавить задачи merge-group или matrix уже после первого сбоя. Поэтому сначала скилл проверяет состояние через gh pr checks <PR> --repo <repo>.
Исходный текст
SKILL.md · MIT
--- 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. metadata: 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 · ZaxbyHub/opencode-swarm
Похожие скиллы
Все скиллы по теме «DevOps и инфраструктура» →Сначала — ci-failure-batching от других авторов.