github-code-review
active0xca41c90994567d248f2267383f0ac36e0a905296b66e4a300570d90a55970aa4
Review pull requests and local changes before pushing: read diffs, leave inline comments via the gh CLI or the GitHub REST API, and flag correctness and quality issues.
Skill body
GitHub Code Review
Review local changes before pushing, or review open PRs. Most steps use plain git;
the gh/REST split only matters for PR-level interactions.
Local review
git fetch origin && git diff origin/main...HEAD
Read the diff for correctness bugs first, then reuse/simplification/efficiency cleanups.
PR review
- List/inspect:
gh pr view <n> --json files,additions,deletions - Inline comments:
gh apiagainst the PR review-comments endpoint withpath+line.
What to flag
Correctness > security > performance > style. Prefer concrete, line-referenced findings.