gh-review-autofix

Inspect GitHub PR review comments, adjudicate feedback, reply, and apply fixes with gh.

1|Updated Jul 16, 2026
One-click install
npx skills add https://github.com/sota411/codex-config --skill gh-review-autofix-sota411
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gh-review-autofix
Source: https://github.com/sota411/codex-config/tree/main/user-skills/gh-review-autofix
Command: npx skills add https://github.com/sota411/codex-config --skill gh-review-autofix-sota411

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Responding to GitHub pull request reviews requires manually reading every inline thread, conversation comment, and review body, deciding which feedback to accept, writing replies, and implementing fixes. This Skill automates that end-to-end review-response workflow using the gh CLI. ## Core Features & Use Cases - Review Context Fetching: Pulls review bodies, inline review threads, and PR conversation comments into one JSON payload via the GitHub GraphQL API. - Actionable Item Normalization: Converts raw review data into adjudicated action items, filtering out resolved, outdated, or self-authored comments. - Evidence-Based Adjudication: Applies documented decision and reply policies to accept, reject, or request clarification on each comment, then posts structured replies with dry-run support. - Use Case: Given a PR URL with a dozen reviewer comments, fetch the context, judge each item against repository evidence, reply to inline threads in Japanese, implement only the accepted fixes, validate, and push a single commit. ## Quick Start Use the gh-review-autofix skill to handle all review comments on https://github.com/owner/repo/pull/123, replying to reviewers and fixing the accepted items.

Frequently Asked Questions about gh-review-autofix

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

FAQPage Schema
How do I respond to GitHub PR review comments automatically?▼

Run the fetch script with a PR URL to collect review bodies, inline threads, and conversation comments into JSON, then normalize them into actionable items. Judge each item against repository evidence, post replies with the reply script, and implement only accepted fixes.

How to reply to inline review comments with the gh CLI?▼

Use the post_review_reply script with --mode review-comment and the target comment's database ID to post a threaded reply via the GitHub API. Run with --dry-run first to inspect the exact endpoint and payload before writing.

Does this workflow handle resolved or outdated review threads?▼

Resolved and outdated inline threads are treated as context, not new actionable work. The summarizer marks them non-actionable so they are excluded from the adjudication and reply steps.

When should I not use this PR review workflow?▼

Do not use it for local diffs, staged or unstaged changes, or named files without GitHub PR review comments; those cases belong to a local review skill. It also requires gh authentication and a valid github.com PR URL.

Why does fetching review context fail with a gh error?▼

Failures occur when gh is not authenticated, the PR URL does not match the https://github.com/<owner>/<repo>/pull/<number> format, or the GraphQL API returns errors. Run gh auth status first and verify the pull request exists.