pr-inline-review

Submit inline review comments and code suggestions to GitHub Pull Requests via gh CLI.

2.0k|272|Updated Mar 12, 2025
One-click install
npx skills add https://github.com/stacklok/toolhive --skill pr-inline-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-inline-review
Source: https://github.com/stacklok/toolhive/tree/main/.claude/skills/pr-inline-review
Command: npx skills add https://github.com/stacklok/toolhive --skill pr-inline-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Submitting inline review comments to GitHub Pull Requests without leaving the PR interface, with support for inline code suggestions, speeds up collaboration and ensures feedback is actionable.

Core Features & Use Cases

  • Inline comments with precise file paths and line numbers for targeted feedback
  • Inline code suggestions to propose fixes directly in the review
  • Automated generation and submission of the review payload via the GitHub CLI, returning the review URL for tracking

Quick Start

Provide the repository owner/name, PR number, and a list of findings, then run the workflow to generate the review and post it to GitHub.

Frequently Asked Questions about pr-inline-review

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

FAQPage Schema
How do I submit inline code suggestions on a GitHub pull request?

To submit inline code suggestions on a GitHub pull request, you build a review JSON payload containing file paths, line numbers, and proposed code changes, then post it via the gh api to return a review URL.

Can I post PR review comments with gh CLI without using the GitHub web interface?

Yes, you can post PR review comments with gh CLI by authenticating, accessing the repository, and submitting a generated review JSON payload directly through the gh api command to annotate specific lines.

What do I need to automate GitHub PR reviews with inline comments?

To automate GitHub PR reviews with inline comments, you need the gh CLI installed, GitHub authentication configured, repository access, an existing PR number, and a list of findings with file paths and line numbers.

How does posting inline PR comments via gh api work?

Posting inline PR comments via gh api works by compiling targeted feedback and optional code suggestions into a structured review JSON, then sending that payload through the GitHub CLI to annotate the pull request.

What is the best way to propose small fixes directly in a GitHub PR review?

The best way to propose small fixes directly in a GitHub PR review is to generate inline code suggestions mapped to precise file paths and line numbers, then submit the review payload to get a tracking URL.

Are there limitations when submitting inline code suggestions to GitHub pull requests?

A limitation when submitting inline code suggestions to GitHub pull requests is that the pull request must already exist, and you must have prior repository access and gh CLI authentication configured to post the review.