Skip to content
cursor avatar

Loop On Ci

Monitor PR checks and fix CI failures on a branch until every check reports green.

CCM score
64 of 100
skills.sh installs
2.3K
GitHub stars
20.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full loop: resolve the PR, inspect attached checks, diagnose failures, watch pending runs, and re-check after each push
  • Uses gh pr checks as the source of truth, with --watch --fail-fast for pending checks and gh run view --log-failed for GitHub Actions logs
  • Enforces scoped fixes, no --no-verify bypasses, and a single retry with flake evidence before reporting a flaky failure
  • Designed for pull requests where CI failures need iterative fixing, and reports status, fixes applied, and the PR URL when green

Install

$ npx -y skills add cursor/plugins --skill loop-on-ci -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

# Resolve the active PR
gh pr view --json number,url,headRefName

# Inspect all attached checks
gh pr checks --json name,bucket,state,workflow,link

# Watch pending checks and fail fast
gh pr checks --watch --fail-fast

# GitHub Actions logs, when the failing check links to a GHA run
gh run view <run-id> --log-failed

Guardrails

Details

Repository
github.com/cursor/plugins
Categories
DevOps & Cloud, Git & Releases
First seen
Jun 23, 2026

Questions

What does the loop-on-ci skill do?

The loop-on-ci skill monitors pull request checks and fixes failures until all checks are green. It uses gh pr checks as the source of truth, since that covers all PR-attached checks and not only GitHub Actions runs.

How do I install the loop-on-ci skill?

Run npx -y skills add cursor/plugins --skill loop-on-ci -y in your project. After installing, the agent can watch a branch or pull request and iterate on CI failures until the required checks pass.

What does loop-on-ci need to run?

The skill relies on the GitHub CLI (gh) and access to the pull request for the current branch. It inspects checks with gh pr checks and can pull GitHub Actions logs with gh run view when a failing check links to a run.

Where does loop-on-ci fit among DevOps and Cloud skills?

The skill is in the DevOps & Cloud category, where azure-diagnostics, azure-prepare, azure-deploy, azure-validate and azure-storage are other top skills. Its focus is watching PR checks on GitHub and fixing failures, which sets it apart from those Azure-focused skills.

More from cursor/plugins

All 93

Similar to Loop On Ci

More DevOps & Cloud