This handles the annoying gap in GitHub CLI where `gh pr review` can't add line-specific comments. It walks you through using `gh api` to hit the REST endpoints directly, either posting single comments to `/comments` or batching multiple comments into one review via `/reviews`. The guide prioritizes using the MCP GitHub tools when available, then falls back to CLI methods. Includes practical examples with real repos, explains the confusing bits like diff line numbers versus file line numbers, and troubleshoots the "pending review" error that blocks you when GitHub thinks you already started a review. Honestly more of a reference doc than a fire-and-forget command, but if you review code from the terminal this fills a real hole in gh's capabilities.
npx skills add https://github.com/neolabhq/context-engineering-kit --skill attach-review-to-pr