fix-pr

Fixes GitHub pull request review comments and CI check failures locally, commits and pushes updates.

2|1|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/richardwu/agent-skills --skill fix-pr-richardwu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-pr
Source: https://github.com/richardwu/agent-skills/tree/main/skills/fix-pr
Command: npx skills add https://github.com/richardwu/agent-skills --skill fix-pr-richardwu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the repetitive and time-consuming process of addressing bot review comments and failing CI checks on an open pull request, reducing developer overhead and accelerating time-to-green.

Core Features & Use Cases

  • PR identification and monitoring: Detects the current branch's open GitHub PR and polls CI and bot review status until they settle.
  • Automated fix loop: Reproduces failing CI steps (lint, typecheck, tests, build, validate-i18n), applies fixes, and iterates across rounds with a max-round safety limit.
  • Bot review parsing and targeted fixes: Extracts actionable items from bot review comments, respects user exclusions, and applies focused code changes following repository conventions and commit style.
  • Use Case: Ideal for contributors or maintainers who need an automated agent to resolve lint/type/test/build failures and actionable bot feedback on GitHub pull requests.

Quick Start

Run the fix-pr skill on a branch with an open GitHub pull request to detect failing CI and bot reviews, apply fixes, commit, and push until checks pass or you provide further guidance.

Frequently Asked Questions about fix-pr

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

FAQPage Schema
How do I automatically fix failing CI checks on a GitHub pull request?

To fix failing CI checks on a GitHub pull request, this Skill detects the current branch's open PR, reproduces lint, typecheck, test, and build failures locally, applies targeted fixes, commits the changes, and pushes updates.

Can I automatically resolve bot review comments on my GitHub PR?

Yes, you can resolve bot review comments on your GitHub PR by using this Skill to extract actionable items from bot comments, apply focused code changes following repository conventions, and push the updates automatically.

Does the automated PR fix loop work with my existing GitHub CI setup?

The automated PR fix loop works with your existing GitHub CI setup by using the GitHub CLI to locate open PRs, polling CI and bot review status until they settle, and iterating through corrections with a max-round safety limit.

What is the best way to automate lint and typecheck corrections across multiple CI rounds?

The best way to automate lint and typecheck corrections across multiple CI rounds is to use this Skill, which iterates through fix loops, reproduces failing CI steps locally, and pushes targeted updates until checks pass.

How do I handle exclusions when applying automated fixes to pull request reviews?

To handle exclusions when applying automated fixes to pull request reviews, this Skill respects user-specified exclusions during bot review parsing and applies focused code changes only to the actionable items allowed.

When should I avoid using an automated agent for PR review fixes?

You should avoid using an automated agent for PR review fixes when your repository is not hosted on GitHub, or when your branch does not have an open PR requiring bot review fixes, lint, type, test, or build corrections.