Skip to content
Skillpedia
Deploy & cloud (DevOps)15k · #10937

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.md

Copy 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

Use this skill to help me: https://github.com/cursor/plugins/blob/main/cursor-team-kit/skills/loop-on-ci/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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

  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

  • 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
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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills