loop-on-ci
БесплатноБез исполняемых скриптовНе проверенMonitor PR checks until green. Watch required checks, fix failures via [[fix-ci]], and iterate until all pass. Cap at 5 iterations.
от fmflurry★ 173 звезды на GitHubОб этом скилле
Loop on CI
If the current project has .claude/skills/loop-on-ci/SKILL.md or .opencode/skills/loop-on-ci/SKILL.md, read it and its references/; project specifics override this generic version.
Trigger
Need to watch a branch or PR and iterate on CI failures until all required checks are green.
Workflow
1. Resolve the PR
Extract metadata for the active branch:
gh pr view --json number,url,headRefName,baseRefName
2. Inspect Current Checks
List all PR-attached checks:
gh pr checks --json name,bucket,state,workflow,link
If checks already failed, diagnose those failures first using fix-ci, then re-check after each fix.
If checks are pending, proceed to step 3 (watch mode).
3. Watch Required Checks
Use the gh pr checks command to watch and fail fast on the first failure:
gh pr checks --required --watch --fail-fast
This polls required checks and exits immediately when any fails or all pass.
4. On Failure: Fix and Repeat
- When
--watch --fail-fastexits with a failure, rungh pr checks --json …again to see the current state. - Dispatch fix-ci to diagnose and fix the failure (fix-ci derives routing from the workflow files).
- After the fix is merged and pushed, re-run
gh pr checks --required --watch --fail-fastto re-check. - Repeat until all required checks are green, or cap is reached (see Limits below).
5. On Green
Once all required checks pass, report:
- Final PR URL
- Iteration count
- Any flaky checks detected (see Flaky Checks below)
Iteration Cap
Hard limit: 5 iterations of watch-fix-recheck. If required checks are still not green after 5 iterations:
- Report the current state: failing check names, last error excerpt, and iteration count.
- Stop and surface to the human; do not loop further.
- Note any pattern (e.g., the same check fails repeatedly) and flag as likely infrastructure issue or environmental flake.
Flaky Checks
If a check fails and then passes without code changes (common for timeouts, race conditions, or external service hiccups):
- Record the check name and evidence (logs, timestamps).
- Retry once:
gh run rerun <run-id> --failed. - Report the flake incident with evidence; flag for investigation in a separate ticket if it persists.
- Do not retry more than once per check; use the iteration cap to avoid infinite loops.
Long Wait Times
When watching PR checks (--watch), runs may take several minutes to complete. In such cases:
- Claude Code (main session): The watch runs in the background; you can check status manually with
gh pr checksif needed. - OpenCode (conductor with bash: deny): Git-specialist delegates the watch command and polls for completion periodically.
Optional: Show-Your-Work Trail
Optionally, record one row per iteration with:
- Iteration number
- Failing check name (if any)
- Fix applied (if any)
- Result (green, still-failing, or cap reached)
This creates an audit trail for complex multi-step CI fixes.
Output
Report on completion or cap:
- Final CI status (all green or capped at iteration N)
- Failure summary (if any checks are still failing)
- Flaky check evidence (if detected)
- PR URL once all required checks pass
Установить loop-on-ci в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл loop-on-ci?
Monitor PR checks until green. Watch required checks, fix failures via [[fix-ci]], and iterate until all pass. Cap at 5 iterations.
Как установить скилл loop-on-ci?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл loop-on-ci запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub