Skip to content
Back to skills

Pr Review Send

ASecurity

Send PR review comments to GitHub by file and line number using the pr-comment script.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 6, 2026
toolsbashsqlgitapi

Works with

  • api

Security analysis

A100/100

Scanned October 6, 2026

npx -y skills add tomzx/agents --skill pr-review-send --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pr Review Send?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pr Review Send
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tomzx-pr-review-send/badge)](https://www.skillsdirectory.com/skills/tomzx-pr-review-send)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pr-review-send
description: Send PR review comments to GitHub by file and line number using the pr-comment script.
allowed-tools: Bash(gh:*, ghx:*, uv:*, ~/.agents/scripts/should-post-to-github:*), Read, Glob, Grep
---

# Send PR Review Comments

Posts individual PR review comments to GitHub by file and line number using the `pr-comment.py` script from the personal-automation repository. `should-post-to-github` decides whether the comments are actually sent to GitHub (based on `~/.sdlc/config.yaml`); when posting is disabled, the skill composes the comments and shows them for review instead.

## Prerequisites

- `uv` installed
- `pr-comment.py` script at `$HOME/repos/git/personal-automation/others/pr-comment.py`
- GitHub authentication configured for the script
- Must run from within `$HOME/repos/git/personal-automation`

### Skill attribution (GitHub)

Before each `pr-comment.py` invocation, read [`github-post-attribution/SKILL.md`](../github-post-attribution/SKILL.md) and append the **Posted with** footer for `SKILL_DIR` = `pr-review-send` to the `--comment` text.

### Communication guidelines (outbound text)

Before composing any text posted or drafted on the user's behalf, apply [`communication-guidelines/SKILL.md`](../communication-guidelines/SKILL.md).

## Steps

1. Navigate to the automation directory:
   ```
   cd $HOME/repos/git/personal-automation
   ```
2. Compose each review comment, applying [`communication-guidelines/SKILL.md`](../communication-guidelines/SKILL.md) for concision (including the **Skill attribution** footer).
3. Decide whether to post: get the PR author with `ghx pr view <pr-number> --repo <owner>/<repo> --json | jq -r .author.login`, then run `~/.agents/scripts/should-post-to-github --repo "<owner>/<repo>" --author "<PR_AUTHOR>"`. If it exits 1, present the comments to the user and stop without posting.
4. If it exits 0, post a review comment (`--comment` includes main text plus **Skill attribution** footer):
   ```
   uv run $HOME/repos/git/personal-automation/others/pr-comment.py <owner>/<repo> <pr-number> \
     --file <path/to/file.py> \
     --line <line-number> \
     --comment "<comment text>"
   ```
5. Repeat for each additional comment on different files or lines.

## Example Usage

**Scenario 1: Comment on a specific line**
```
/pr-review-send owner/myrepo 123 \
  --file src/main.py \
  --line 42 \
  --comment "This function should handle the case where input is None."
```
Posts the comment to PR #123 on `src/main.py` line 42, unless `should-post-to-github` excludes the repo or author (in which case the comment is composed and shown without posting).

**Scenario 2: Multiple comments on different files**
Run the command once per comment location, varying `--file` and `--line` for each. Each is posted unless `should-post-to-github` disables posting.

**Scenario 3: Comment on a migration file**
```
/pr-review-send owner/api 88 \
  --file migrations/0042_add_index.sql \
  --line 5 \
  --comment "Consider adding a concurrent index to avoid table locking."
```

## Useful Commands Reference

| Command | Description |
|---|---|
| `uv run <script> <owner>/<repo> <pr> --file <f> --line <n> --comment "<text>"` | Post a line-specific PR review comment |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…