cursor avatar

Loop On Ci

This automates the tedious cycle of watching CI fail, reading logs, pushing fixes, and repeating until everything goes green. It uses `gh pr checks` as the source of truth since that captures all PR-attached checks, not just GitHub Actions. The workflow is sensible: it inspects checks before waiting, fails fast when something breaks, and re-checks the full set after every push since the check list can change. The guardrails are smart too, like merging main when failures look unrelated to your PR instead of piling on fixes for someone else's mess. If you've ever babysat a PR through five rounds of lint and test failures, this handles that loop for you.

skills.sh installs
2.3K
GitHub stars
15.9K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/cursor/plugins
Categories
DevOps & CI/CD, Git & Pull Requests, Debugging
First seen
Jun 23, 2026

More from cursor/plugins

All 47
1aahl avataredgeoneaahl/skillsDeploy HTML content to EdgeOne Pages, return the public URL.2.3Kskills.sh installs
2triggerdotdev avatartrigger-configtriggerdotdev/skillsConfigure Trigger.dev projects with trigger.config.ts. Use when setting up build extensions for Prisma, Playwright, FFmpeg, Python, or customizing deployment se2.3Kskills.sh installs
3jezweb avatartanstack-startjezweb/claude-skillsBuild a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadc2.2Kskills.sh installs
4dynatrace avatardt-obs-azuredynatrace/dynatrace-for-aiAzure cloud resources including VMs, VMSS, SQL Database, Storage, AKS, App Service, Functions, VNet networking, load balancers, Event Hubs, Container Apps, and 2.2Kskills.sh installs
5vercel-labs avatarfrontend-designvercel-labs/agent-evalCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, 2.2Kskills.sh installs
6alirezarezvani avatarbusiness-growth-skillsalirezarezvani/claude-skillsRouter/index for the 4 business & growth skills bundled in this plugin: customer-success-manager (health scoring, churn risk, expansion), sales-engineer (RFP an2.2Kskills.sh installs