# Gh Pr Review Comment

> Add a review comment to a specific line in a GitHub pull request. Use when the user wants to comment on specific code in a PR diff. Use when this capability is needed.

- Skill: `tomevault-io/gh-pr-review-comment` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/gh-pr-review-comment`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/gh-pr-review-comment/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/gh-pr-review-comment

---


# gh-pr-review-comment

Add a review comment to a specific line in a GitHub pull request diff. The comment is placed at a specific position in the diff and automatically prefixed with an AI identifier.

## Command

```bash
python3 .claude/skills/gh-pr-review-comment/scripts/add_review_comment.py --owner OWNER --repo REPO --pr-number PR_NUMBER --body "COMMENT" --path FILE_PATH --position POSITION
```

## Arguments

| Argument | Required | Description |
|----------|----------|-------------|
| `--owner` | Yes | Repository owner (username or organization) |
| `--repo` | Yes | Repository name |
| `--pr-number` | Yes | Pull request number |
| `--body` | Yes | Comment content (will be prefixed with "[AI] Generated using MCP") |
| `--path` | Yes | Relative path to the file being commented on |
| `--position` | Yes | Position in the diff where the comment should be placed (use gh-pr-changes skill to find valid positions) |

## Examples

Add a review comment on a specific line:
```bash
python3 .claude/skills/gh-pr-review-comment/scripts/add_review_comment.py --owner octocat --repo hello-world --pr-number 42 --body "Consider using a constant here instead of a magic number." --path src/utils.ts --position 5
```

Add a review comment suggesting a fix:
```bash
python3 .claude/skills/gh-pr-review-comment/scripts/add_review_comment.py --owner octocat --repo hello-world --pr-number 42 --body "This function should handle the null case." --path src/api/handler.ts --position 12
```

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/y-hirakaw) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-14 -->

