pr-review-fix-loop

Automate iterative pull request review and fix loops with parallel sub-agents.

3|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/anthony-spruyt/xfg --skill pr-review-fix-loop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-review-fix-loop
Source: https://github.com/anthony-spruyt/xfg/tree/main/.claude/skills/pr-review-fix-loop
Command: npx skills add https://github.com/anthony-spruyt/xfg --skill pr-review-fix-loop

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the tedious and iterative process of reviewing and fixing issues in a Pull Request (PR) or branch, ensuring code quality and compliance before merging.

Core Features & Use Cases

  • Automated Review: Employs multiple sub-agents to perform comprehensive code reviews, check CI status, analyze CodeQL alerts, and examine all comments.
  • Iterative Fixing: Automatically dispatches a fixer sub-agent to address identified issues, commits the changes, and pushes them for re-evaluation.
  • Looping Mechanism: Continues the review-fix cycle until the PR is clean or a maximum number of iterations is reached.
  • Use Case: When a developer submits a PR that fails CI checks or has style violations, this Skill can automatically identify, fix, and re-submit the PR until it passes all checks and meets quality standards.

Quick Start

Use the pr-review-fix-loop skill to review and fix the current PR.

Frequently Asked Questions about pr-review-fix-loop

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

FAQPage Schema
How do I automate fixing pull requests that fail CI checks or have code style violations?

Automated PR review and fix loops use sub-agents to check CI status, CodeQL alerts, comments, and code quality, then dispatch a fixer agent to resolve identified issues and push commits for re-evaluation.

What is an iterative review and fix loop for GitHub pull requests?

An iterative review and fix loop continuously evaluates a pull request using parallel code review agents, collects all identified issues, and sequentially dispatches fixes until the branch is clean or a maximum iteration limit is reached.

Do I need GitHub CLI to run automated code review and fixing on my branches?

Yes, GitHub CLI is required to run this automated review and fix loop, as it depends on GitHub CLI for pull request operations, CI status checks, CodeQL alerts, and comment analysis.

How does parallel sub-agent dispatch work for PR code reviews?

Parallel sub-agent dispatch sends multiple agents simultaneously to perform comprehensive code reviews, check CI status, analyze CodeQL alerts, and examine comments, collecting all issues before sequential fixing begins.

What happens if a PR still fails checks after multiple automated fix attempts?

The review-fix loop continues until the PR is clean or a maximum number of iterations is reached, preventing infinite loops while ensuring issues from CI failures, CodeQL alerts, and comments are thoroughly addressed.