Skip to content

Attach line-specific review comments to GitHub pull requests via the MCP tool or gh api fallback.

CCM score
54 of 100
skills.sh installs
1.2K
GitHub stars
1.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers single inline comments via the /comments endpoint and batched multi-file reviews via the /reviews endpoint
  • Includes parameter tables for line, side, commit_id, and start_line, plus -f versus -F flag rules
  • Explains that gh pr review cannot place line-specific comments, so the REST API must be called directly
  • Documents the "one pending review per pull request" 422 error and its fallback to the single-comment endpoint

Install

$ npx -y skills add neolabhq/context-engineering-kit --skill attach-review-to-pr -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

How to Attach Line-Specific Review Comments to Pull Requests

This guide explains how to add line-specific review comments to pull requests using the GitHub CLI (gh) API or mcp__github_inline_comment__create_inline_comment if it not available, similar to how the GitHub UI allows commenting on specific lines of code.

Preferred Approach: Using MCP GitHub Tools

If available, use the mcp__github_inline_comment__create_inline_comment MCP tool for posting line-specific inline comments on pull requests. This approach provides better integration with GitHub's UI and is the recommended method.

Fallback: If the MCP tool is not available, use the GitHub CLI (gh) API methods described below:

Overview

Details

Repository
github.com/neolabhq/context-engineering-kit
Categories
Git & Releases, Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the attach-review-to-pr skill do?

It adds line-specific review comments to pull requests using the GitHub CLI API, similar to commenting on specific lines in the GitHub UI. It uses gh api calls for single comments or multi-comment reviews.

What do I need before using attach-review-to-pr?

You need the GitHub CLI installed and authenticated, plus access to the repository and pull request you want to review. The skill can also use an inline comment MCP tool if one is available.

How do I install the attach-review-to-pr skill?

Run npx -y skills add neolabhq/context-engineering-kit --skill attach-review-to-pr -y in a project. Then the agent can post line-specific comments on pull requests.

Where does attach-review-to-pr rank in its category?

It sits in the Git & Releases category on Claude Marketplaces, alongside skills such as triage, git-guardrails-claude-code, setup-pre-commit, caveman-commit and pr. It covers posting precise line comments that the plain gh pr review command cannot add.

More from neolabhq/context-engineering-kit

All 62

Similar to Attach Review To Pr

More Git & Releases