Agent skill · neolabhq
attach-review-to-pr
Add line-specific review comments to pull requests using GitHub CLI API
What it needs
About 7k tokens when loaded.
What this skill does
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 mcpgithubinlinecommentcreateinlinecomment 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 mcpgithubinlinecommentcreateinlinecomment 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: For single comments: Use the /comments endpoint (see Adding a Single Line-Specific Comment) For multiple comments: Use the /reviews endpoint (see Adding Multiple Line-Specific Comments Together) Overview While gh pr review provides basic review functionality (approve, request changes, general comments), it does not support line-specific comments directly. To add comments on specific lines of code, you must use the lower-level gh api command to call GitHub's REST API directly. Prerequisites 1. GitHub CLI installed and authenticated: 2. Access to the repository and pull request you want to review Understanding GitHub's Review Comment System GitHub has two types of PR comments: 1. Issue Comments - General comments on the PR conversation 2. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills neolabhq/attach-review-to-pr--d59783