prcheckloop

Monitor GitHub PR checks and push fixes until all pass.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Mothership-Foundry/foundry-dashboard --skill prcheckloop-mothership-foundry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prcheckloop
Source: https://github.com/Mothership-Foundry/foundry-dashboard/tree/main/.agents/skills/prcheckloop
Command: npx skills add https://github.com/Mothership-Foundry/foundry-dashboard --skill prcheckloop-mothership-foundry

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Iteratively brings a GitHub PR to a fully green check state by monitoring the latest head SHA, waiting for all checks to complete, diagnosing failures, applying actionable code or test fixes, pushing updates, and repeating until green. Escalates with precise blockers when failures are external, flaky, or not safely fixable.

Core Features & Use Cases

  • PR health monitoring: track the latest head SHA and check-runs/status until green or blockers arise.
  • Automated remediation: identify failing checks, propose and apply small, safe fixes to code or tests, and push updates.
  • Controlled escalation: stop when issues are external or unsafe to fix, and provide a precise blocker summary for review.
  • Retry loop: automatically retry after fixes and re-check until all checks pass or max iterations are reached.

Quick Start

Provide a concrete PR to green by iteratively fixing issues and pushing updates.

Frequently Asked Questions about prcheckloop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically fix failing GitHub PR checks?

To automatically fix failing GitHub PR checks, you can use a continuous monitoring loop that fetches check-runs via GitHub CLI and REST APIs, diagnoses failures, applies safe code or test fixes, and pushes updates until all checks pass or hit a blocker.

How does automated PR remediation handle flaky or external CI failures?

Automated PR remediation handles flaky or external CI failures by halting the retry loop and escalating with a precise blocker summary, ensuring unsafe or unfixable issues are routed for manual review instead of attempting blind fixes.

Can I use GitHub CLI to monitor and update a pull request head SHA?

Yes, you can use GitHub CLI with REST and GraphQL APIs to fetch PR data, monitor the latest head SHA, track check-run statuses, and push remediation commits to bring the pull request to a fully green state.

What is the best way to iterate on CI failures until a pull request passes?

The best way to iterate on CI failures is running an automated retry loop that waits for checks to complete, diagnoses failing runs, pushes actionable fixes, and re-checks until green, with a max-iteration safeguard to prevent infinite loops.

What happens when automated PR check remediation reaches the max iteration limit?

When automated PR check remediation reaches the max iteration limit, the process halts and escalates with a precise blocker summary, stopping the retry loop to prevent endless cycles and flagging the issue for manual intervention.

Does automated PR repair work on both code and test failures?

Yes, automated PR repair works on both code and test failures by diagnosing failing check-runs, proposing small actionable fixes to the code or tests, and pushing updates to the branch to achieve a fully green state.