loop-on-ci
What it does
Lets the assistant keep an eye on your branch's checks and fix failures until they pass. It is for developers who want a hands-off loop to a green build.
When to use it
- ✓When your pull request checks are pending or failing and you want them fixed.
- ✓When you want the assistant to watch checks and act after each push.
- ✓When a check looks flaky and you want one retry with a clear report.
Skill link
https://github.com/cursor/plugins/blob/main/cursor-team-kit/skills/loop-on-ci/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Watch the checks on my pull request, fix anything that fails, and stop when everything is green.”
5 new skills a week. 1 minute to read.
How it works
The assistant reads all checks on the pull request, diagnoses any failures first, watches pending checks, and rechecks the full set after each push until everything passes.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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
- 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,linkafter every push; the check set can change.
Output
- Current CI status
- Failure summary and fixes applied
- PR URL once checks are green
FAQ
What is the source of truth for checks?
The pull request checks command, since it includes every check attached to the pull request.
What if a failure is unrelated to my change?
If it appears fixed on main, the skill suggests merging the latest main instead of adding unrelated fixes.
Will it skip git hooks to get ahead?
No. The skill says not to bypass hooks to force progress.
Details
Original description by the author
Monitor PR checks and fix failures until green. Uses gh pr checks as the source of truth for PR-attached checks.
repo: cursor/plugins
Popularity
- GitHub stars
- 15k
- Ranking position
- #10937
- License
- —
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
advisor
15kLets your agent consult a stronger second model at key checkpoints, such as before a big decision or when stuck on an error, if you turn it on.
check-agent-compatibility
15kRuns a full check of whether AI coding agents can start, verify and document a repository, and returns one compatibility score with the main issues.
cli-for-agents
15kTeaches your agent to design or review command-line tools so AI agents can run them without prompts, with clear help text and examples.
continual-learning
15kKeeps your AGENTS.md notes up to date by handing the work of reviewing past chats to a dedicated memory updater.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.