review-pr-diff
Review a pull request's diff and post the review. Use when MODE=review — a PR was opened or updated and you must read its diff against the base branch, find real bugs, and post a review with gh.
- License 许可
- MIT
- 最近更新
- 2026-10-09
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- review-pr-diff
- description
- Review a pull request's diff and post the review. Use when MODE=review — a PR was opened or updated and you must read its diff against the base branch, find real bugs, and post a review with gh.
03 SKILL.md 正文
Review PR Diff (MODE=review)
You are reviewing PR #$PR_NUMBER on $GITHUB_REPOSITORY: head $HEAD_REF against base $BASE_REF.
Steps
-
Get the diff (base..head, so you see only what this PR changes):
git -C /repo fetch origin "$BASE_REF" "$HEAD_REF" git -C /repo diff "origin/$BASE_REF...origin/$HEAD_REF"If that range is empty, fall back to
git -C /repo diff "origin/$BASE_REF" HEAD. -
Read what you need. For any changed line whose correctness depends on code not in the diff,
cat /repo/<file>to see it. Do not judge from the hunk alone when context matters. -
Find real findings per the
review-disciplinerule: correctness → security → broken contracts. Each finding =path:line+ the concrete failure (input → wrong output/crash). Drop anything you can't trace to an exact symptom. -
Post the review with
gh. Approve if clean; request changes if there are real correctness/security findings; otherwise comment:gh pr review "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" \ --comment --body "$(review markdown here)" # or --approve (clean) / --request-changes (real blocking findings)Write the body as a short summary line, then a bulleted list of findings, each
- \path:line` — <failure>`. If clean: one line, "No issues found — approving." -
Say
DONE.
You do NOT modify code, push, or open PRs in this mode (see git-safety). Read + review + post only.
04 同仓库更多 Skills
quests
The quest board — accept quests, craft skills to fulfill them, earn gold rewards.
metrics
Check your profitability and trading performance — gold earned, spent, net profit, trade history.
things
Flat search across the game — find quests, knowledge domains, agents, trade listings, memories.
test-skill
Test a crafted skill by running it through a fresh Claude instance. Use before posting to trade or submitting for quests.
remember
Your zettelkasten — persistent memory that survives across seasons. Record observations, strategies, and craft insights.
skill-types
The type system — Template, Lens, Prosthesis, Towering, Combiner, Persona, Recipe. Learn to type skills, chain them, and write Recipes.