A generic skill that reviews code in a GitHub Pull Request and automatically posts inline comments on specific lines using the GitHub CLI (`gh`). It defaults to leaving standard code review comments without requesting changes or approving.
gh pr status to find the PR associated with the current branch.gh repo view --json owner,name -q '{owner: .owner.login, repo: .name}' to determine the {owner} and {repo} names.gh pr diff <number> --patch.event MUST default to COMMENT.
{
"body": "General review summary message here.",
"event": "COMMENT",
"comments": [
{
"path": "path/to/modified/file.ext",
"line": 123,
"body": "**Suggestion:** Detailed feedback..."
}
]
}
pr_review_payload.json) in the current directory.gh api --method POST -H "Accept: application/vnd.github+json" /repos/{owner}/{repo}/pulls/{pull_number}/reviews --input pr_review_payload.jsonpr_review_payload.json).