Agent skill · software engineering · cursor
loop-on-ci
Monitor PR checks and fix failures until green. Uses gh pr checks as the source of truth for PR-attached checks.
Why this skill is useful
Adds specific commands and workflows for monitoring and fixing CI failures that the AI wouldn't reliably generate on its own.
What it needs
Requires gh installed locally. About 1k tokens when loaded. Last updated 2026-08-06. 2,555 stars on the source repository.
What this skill does
Loop on CI Trigger Need to watch a branch or pull request and iterate on CI failures until all required checks are green. Use gh pr checks as the source of truth. It includes all PR-attached checks, while gh run list only covers GitHub Actions. Workflow 1. Resolve the PR for the current branch. 2. Inspect current PR checks before waiting. 3. If checks already failed, diagnose those failures first. 4. If checks are pending, watch with gh pr checks --watch --fail-fast. 5. After each push, re-check the full PR check set and repeat until green. Commands Guardrails Keep each fix scoped to a single failure cause when possible. Do not bypass hooks (--no-verify) to force progress. If the failure is clearly unrelated to the PR and appears fixed on main, merge latest main instead of bloating the PR with unrelated fixes. If failures are flaky, retry once and report flake evidence. Re-run gh pr checks --json name,bucket,state,workflow,link after every push; the check set can change. Output Current CI status Failure summary and fixes applied PR URL once checks are green
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills cursor/loop-on-ci