git:attach-review-to-pr

Attach line-specific review comments to GitHub pull requests via gh api.

Updated Mar 4, 2026
One-click install
npx skills add https://github.com/dalawwa/labor-methods --skill git-attach-review-to-pr
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: git:attach-review-to-pr
Source: https://github.com/dalawwa/labor-methods/tree/main/.cek/plugins/git/skills/attach-review-to-pr
Command: npx skills add https://github.com/dalawwa/labor-methods --skill git-attach-review-to-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables you to add line-specific review comments to pull requests by leveraging the GitHub CLI API, bridging the gap where the UI does not natively expose per-line discussions.

Core Features & Use Cases

  • Inline line comments: Post comments on specific lines of code in a PR using gh api or the MCP inline comment tool when available.
  • Single or multi-comment workflows: Create a single comment or a consolidated review with multiple inline comments across files.
  • Practical use cases: Review changes in a PR by targeting precise lines to discuss intent, errors, or style issues.

Quick Start

Authenticate with GitHub CLI, select the PR, and attach line-specific comments using the gh api commands.

Frequently Asked Questions about git:attach-review-to-pr

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

FAQPage Schema
How do I attach inline review comments to a pull request using the GitHub CLI?▼

To attach inline review comments to a pull request, use the GitHub CLI to call the /pulls/{pr}/comments or /pulls/{pr}/reviews endpoints. This allows you to post line-specific feedback directly on changed files.

Can I post multiple inline comments across different files in a single PR review?▼

Yes, you can post multiple inline comments across different files by creating a consolidated review. Use the GitHub CLI API to batch line-specific feedback into a single review submission rather than individual comments.

What's the difference between the /pulls/{pr}/comments and /pulls/{pr}/reviews GitHub API endpoints?▼

The /pulls/{pr}/comments endpoint adds a single line-specific comment, while the /pulls/{pr}/reviews endpoint creates a consolidated review containing multiple inline comments across files. Both are supported via the GitHub CLI.

Do I need the GitHub CLI authenticated to add line-specific PR comments?▼

Yes, you need the GitHub CLI (gh) installed and authenticated to add line-specific PR comments. The skill uses gh api commands to interact with GitHub endpoints, or optionally uses the MCP in-line comment tool for deeper UI integration.

Why use GitHub CLI for PR review comments instead of the web UI?▼

Using the GitHub CLI for PR review comments bridges the gap where the UI does not natively expose per-line discussions programmatically. It enables precise per-line feedback across changed files through direct API calls.

Does this MCP inline comment tool support deeper UI integration for pull request reviews?▼

Yes, the MCP inline comment tool optionally supports deeper UI integration for pull request reviews. When available, it enhances the process of attaching line-specific review comments beyond standard GitHub CLI API calls.