pr-loop

Automate iterative review and fix cycles for open pull requests.

Updated Jun 8, 2026
One-click install
npx skills add https://github.com/dismantl/agent-skills --skill pr-loop-dismantl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-loop
Source: https://github.com/dismantl/agent-skills/tree/main/skills/pr-loop
Command: npx skills add https://github.com/dismantl/agent-skills --skill pr-loop-dismantl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually iterating through PR review feedback and applying fixes is time-consuming, prone to context drift, and often requires multiple rounds of back-and-forth to get a PR merge-ready. This Skill eliminates that manual overhead by automating the entire review-fix loop.

Core Features & Use Cases

  • Automated Iterative PR Workflow: Alternates fresh-context code reviews with stateful fix application, repeating until the PR passes all merge requirements or hits a defined stop condition.
  • Multi-Forge & Harness Support: Works with GitHub and Forgejo/Gitea forges, and integrates natively with Codex, Claude Code, and Gemini CLI agent environments.
  • Use Case: If you need to "babysit" an open PR through multiple review rounds, ensure all CI checks pass, and resolve repeated or stale findings without manual tracking, this Skill handles the full end-to-end workflow.

Quick Start

Use the pr-loop skill to drive your open PR #456 to merge-ready status, automatically handling all review, fix, and CI verification steps.

Frequently Asked Questions about pr-loop

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

FAQPage Schema
How do I automate pull request review and fix loops to get code merge-ready?

Automate pull request review and fix loops by alternating fresh-context code reviews with stateful fix application. This process repeats until the PR passes all merge requirements or hits a defined stop condition, eliminating manual per-round intervention.

Does automated PR workflow support both GitHub and Forgejo forges?

Automated PR workflow supports both GitHub and Forgejo/Giteo forges. It integrates natively with Codex, Claude Code, and Gemini CLI agent harnesses to drive open PRs to merge-ready status across these environments.

How do I stop repeated or stale PR review findings from blocking merges?

Stop repeated or stale PR review findings from blocking merges by implementing stateful fix tracking and deadlock detection. These mechanisms ensure PRs meet all merge requirements without getting stuck in endless review cycles.

Can I use CI gating to prevent merging pull requests with failing checks?

CI gating prevents merging pull requests with failing checks by verifying CI status during the automated review-fix cycle. The workflow continues applying fixes until all CI checks pass and merge requirements are satisfied.

What is fresh-context review alternation for pull requests?

Fresh-context review alternation for pull requests is a mechanism that cycles code reviews with stateful fix application. It prevents context drift by applying fixes iteratively until the PR achieves merge-ready status.

Why does my PR get stuck during automated review rounds without manual tracking?

PRs get stuck during automated review rounds due to deadlocks or untracked state. Deadlock detection and stateful fix tracking resolve this by ensuring all findings are addressed and merge requirements are met without manual tracking.