
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-codeInstalls 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
- Resolve the PR for the current branch.
- Inspect current PR checks before waiting.
- If checks already failed, diagnose those failures first.
- If checks are pending, watch with
gh pr checks --watch --fail-fast. - 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- Thermos2.3K
- New Branch And Pr2.2K
- Run Smoke Tests2.2K
- Workflow From Chats2.2K
- Poteto Mode1.6K
- Continual Learning1.5K
- Cli For Agents1.4K
- Cursor Sdk1.3K
- Orchestrate1.2K
- Docs Canvas1.2K
- Create Plugin Scaffold1.2K
- Review Plugin Submission1.2K
- Ralph Loop1K
- Create Learning Path1K
- Run Learning Retrospective925
- Check Agent Compatibility4
- Unslop34.1K
- Thermo Nuclear Code Quality Review23.9K
- Deslop10.2K
- Typescript Best Practices10K
- Blast Radius7.1K
- How6.7K
- Why6.5K
- Arena5.7K