mthalman/agents/post-github-review-comments
Claude Code and agent skill by mthalman/agents
- community
Checking that the SKILL.md file is still in the repository.
Post code review findings as pending review comments on a GitHub pull request using the GitHub CLI. Use when the user asks to "post review comments", "add PR comments", "submit review comments", "post findings to PR", or when code review output needs to be turned into GitHub PR review comments. Also triggers on requests to comment on specific files/lines in a pull request.
Install
npx vskill@latest install mthalman/agents/post-github-review-commentsSKILL.md
Post Review Comments
Post structured code review findings as pending review comments on a GitHub pull request. Comments are created as a pending review so the user can finalize and submit them on GitHub.
Prerequisites
ghCLI installed and authenticated- The PR must exist and the authenticated user must have access
Workflow
- Determine owner, repo, and PR number from conversation context:
- Check git remotes in the current working directory:
git remote get-url origin - Parse
owner/repofrom the remote URL - Check for a PR associated with the current branch:
gh pr view --json number --jq .number - If any of these cannot be inferred, ask the user
- Structure the review comments as a JSON file containing an array. Write it to a temporary location. Each comment object has these fields:
| Field | Required | Description | |
|---|---|---|---|
path | yes | File path relative to repo root | |
body | yes | Comment text (markdown supported) | |
line | yes | Line number the comment applies to (end line for multi-line) | |
start_line | no | Start line for multi-line range comments. Omit for single-line. | |
side | no | Diff side: "RIGHT" (default, new code) or "LEFT" (old code) |
Important: line and start_line refer to line numbers in the file at the PR's HEAD commit, not diff positions. Lines must be within the diff hunks of the PR — comments on unchanged lines will be rejected by the API.
- Run the script:
``bash python <skill-path>/scripts/post_review.py \ --owner <owner> \ --repo <repo> \ --pr <pr_number> \ --input <path-to-comments.json> \ --body "Optional overall review summary" ``
- Report the result to the user. The review is PENDING — remind them to visit the PR on GitHub to submit it (approve, request changes, or comment).
Extracting Comments from Code Review Output
When converting code review findings (like output from the code-reviewer skill) into review comments:
- Map each finding to the file and line(s) it references
- For findings that reference a range of lines, use
start_lineandline - For findings that reference a single line, use only
line - Skip findings that don't reference specific file locations (e.g., holistic assessments)
- Use markdown formatting in the body for readability
Examples
Multi-line comment — a finding spanning lines 15-22:
Write JSON and call the script:
Single-line comment — a finding on line 8:
Write JSON and call the script:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/post-github-review-comments/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mthalman/agents/post-github-review-comments)