بنقرة واحدة
github-code-review
Review PRs on GitHub: read diffs, leave inline comments, approve or request changes.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Review PRs on GitHub: read diffs, leave inline comments, approve or request changes.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Karpathy-inspired guidelines: Think before coding, Simplicity first, Surgical changes, Goal-driven execution
Use when you have a written implementation plan to execute in a separate session with review checkpoints
Write an actionable markdown plan before implementation. Bite-sized tasks, exact paths, complete code.
Write clear Conventional Commits. Imperative subject, explain why not what, one logical change per commit.
Optimize based on measurement, never guesswork. Profile first, fix the real bottleneck, verify the win.
Refactor code without changing behavior. Small steps, green tests after every change, no mixing with feature work.
| name | github-code-review |
| description | Review PRs on GitHub: read diffs, leave inline comments, approve or request changes. |
Review open PRs with gh or curl, leave inline comments, approve or request changes.
Always start with local review:
# Staged changes
git diff --staged --stat
git diff --staged
# Changes vs main
git diff main...HEAD --stat
git diff main...HEAD
gh pr view $PR_NUMBER --json title,body,state,author,labels
gh pr diff $PR_NUMBER
Without gh:
OWNER=$(git remote get-url origin | sed -E 's|.*github\.com[:/]||; s|\.git$||' | cut -d/ -f1)
REPO=$(git remote get-url origin | sed -E 's|.*github\.com[:/]||; s|\.git$||' | cut -d/ -f2)
curl -H "Authorization: token $GITHUB_TOKEN" \
"https://api.github.com/repos/$OWNER/$REPO/pulls/$PR_NUMBER"
gh pr review $PR_NUMBER --comment --body "Specific issue on line 42: ..."
Without gh:
curl -H "Authorization: token $GITHUB_TOKEN" \
"https://api.github.com/repos/$OWNER/$REPO/pulls/$PR_NUMBER/reviews" \
-d '{"body":"Review summary","event":"COMMENT","comments":[{"path":"file.go","position":5,"body":"Issue description"}]}'
# Approve
gh pr review $PR_NUMBER --approve
# Request changes
gh pr review $PR_NUMBER --request-changes --body "Issues found: ..."
## PR #N Review: [title]
**Summary:** 1-2 sentence summary of changes
**Issues Found:**
- [ ] Critical: description (file.go:42)
- [ ] Minor: description (file.go:78)
**Verdict:** APPROVE / REQUEST_CHANGES / COMMENT