mthalman/agents/post-github-review-comments

Claude Code and agent skill by mthalman/agents

Trust tier 3
  • community
Source check pending

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-comments

SKILL.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

  • gh CLI installed and authenticated
  • The PR must exist and the authenticated user must have access

Workflow

  1. Determine owner, repo, and PR number from conversation context:
  • Check git remotes in the current working directory: git remote get-url origin
  • Parse owner/repo from 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
  1. Structure the review comments as a JSON file containing an array. Write it to a temporary location. Each comment object has these fields:
FieldRequiredDescription
pathyesFile path relative to repo root
bodyyesComment text (markdown supported)
lineyesLine number the comment applies to (end line for multi-line)
start_linenoStart line for multi-line range comments. Omit for single-line.
sidenoDiff 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.

  1. 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" ``

  1. 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_line and line
  • 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:

#### ⚠️ Error Handling — Missing validation in parse_config
`src/config.py` lines 15-22: The `parse_config` function doesn't validate
the input before accessing nested keys, which will raise a KeyError.

Write JSON and call the script:

bash
echo '[{"path":"src/config.py","body":"⚠️ **Error Handling — Missing validation in parse_config**\n\nThe `parse_config` function doesn'\''t validate the input before accessing nested keys, which will raise a `KeyError`.","line":22,"start_line":15}]' > /tmp/comments.json
python <skill-path>/scripts/post_review.py \
--owner contoso --repo webapp --pr 47 \
--input /tmp/comments.json

Single-line comment — a finding on line 8:

#### 💡 Naming — Unclear variable name
`src/config.py` line 8: `x` is not descriptive. Consider renaming to `config_path`.

Write JSON and call the script:

bash
echo '[{"path":"src/config.py","body":"💡 **Naming — Unclear variable name**\n\n`x` is not descriptive. Consider renaming to `config_path`.","line":8}]' > /tmp/comments.json
python <skill-path>/scripts/post_review.py \
--owner contoso --repo webapp --pr 47 \
--input /tmp/comments.json

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mthalman/agents/post-github-review-comments/badge)](https://verified-skill.com/skills/mthalman/agents/post-github-review-comments)

Something wrong with this skill or its page? Tell us.