pr-fix

Triage pull request review comments as fix, defer, or accept and apply changes.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/edlovesjava/horse-sense --skill pr-fix-edlovesjava
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-fix
Source: https://github.com/edlovesjava/horse-sense/tree/main/horse/skills/pr-fix
Command: npx skills add https://github.com/edlovesjava/horse-sense --skill pr-fix-edlovesjava

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Read PR review comments, triage each as fix, defer, or accept, perform the appropriate changes, and reply to the thread with what was done.

Core Features & Use Cases

  • Triage unresolved comments by type (fix, defer, accept) to determine required actions.
  • Apply localized code changes, commit, and push to the PR branch while ensuring tests and linting pass.
  • Post per-comment replies and a final summary on the PR documenting resolutions and rationale.

Quick Start

Provide the PR number and authorize execution to triage comments, apply fixes, and reply with a summary.

Frequently Asked Questions about pr-fix

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

FAQPage Schema
How do I automate pull request review comment triage?

Automating PR review triage involves classifying unresolved comments as fix, defer, or accept, applying code changes, and posting replies. This requires gh CLI installed and authenticated to process open pull requests with a clean working tree.

What is the best way to resolve unresolved PR review comments automatically?

The best way to resolve unresolved PR review comments is to triage each as fix, defer, or accept, apply localized code changes, and push to the PR branch. You then post per-comment replies and a final summary documenting the resolutions.

Do I need a clean working tree to apply automated code review fixes?

Yes, you need a clean working tree to apply automated code review fixes. A clean working tree is required to safely apply localized code changes, commit, and push to the PR branch while ensuring tests and linting pass.

Can I use gh CLI to automatically reply to code review threads?

Yes, you can use gh CLI to automatically reply to code review threads. The tool uses gh CLI to post per-comment replies and a final summary on the PR documenting resolutions and rationale after applying changes.

How does automated PR triage classify review comments?

Automated PR triage classifies review comments by categorizing each as fix, defer, or accept. It determines required actions based on this classification, then applies changes for fixes and posts replies explaining the decision for deferred or accepted comments.

What are the limitations of automating pull request review fixes?

Limitations of automating pull request review fixes include requiring a clean working tree, gh CLI installed and authenticated, and an open PR with review comments. It cannot operate without these prerequisites or on closed pull requests.