hugo / rig-pr-buddy
AI code reviewer for solo founders, AI-native devs, vibe coders - pick an open PR, analyze the diff, draft per-file review comments, produce a 5-line founder brief. Read-only via gh CLI; drafts only, no auto-posting. Covers github, pr, code, review, dev workflow.
rig use hub:hugo/rig-pr-buddyReadme
rig-pr-buddy
A Claude Code rig that runs an AI code-review loop on any GitHub PR. Pick an open PR, analyze the diff, draft per-file review comments, produce a 5-line founder brief. Read-only via the gh CLI — drafts only, no auto-posting.
Built for solo founders, AI-native devs, and vibe coders shipping from Claude / Cursor / agentic tools who want a second pair of eyes on every PR before merge.
What it does
Four skills on top of a shared reviews/<repo>-<num>/ scratch directory:
| Skill | Input | Output |
|---|---|---|
/pick-pr <owner>/<repo> [pr-number] | a GitHub repo + optional PR number | reviews/<repo>-<num>/raw.md + diff.patch |
/analyze <repo>-<num> | the scratch dir from /pick-pr | reviews/<repo>-<num>/analysis.md |
/draft-comments <repo>-<num> | scratch dir + analysis | reviews/<repo>-<num>/comments.md |
/founder-brief <repo>-<num> | scratch dir + analysis | reviews/<repo>-<num>/brief.md |
Layout
rig-pr-buddy/
CLAUDE.md # rig orientation (read by claude on every session)
README.md # this file
rig.toml # rig manifest
reviews/ # YOUR per-PR scratch dirs (gitignored)
<repo>-<num>/
raw.md # PR metadata
diff.patch # raw unified diff
analysis.md # /analyze output
comments.md # /draft-comments output
brief.md # /founder-brief output
.claude/skills/
pick-pr/
analyze/
draft-comments/
founder-brief/
Prerequisite: gh CLI
This rig requires the GitHub CLI to be installed and authenticated.
- Install
gh—brew install ghon macOS, or see https://cli.github.com for other platforms. - Authenticate —
gh auth loginand follow the browser flow. - Confirm —
gh auth statusmust returnLogged in to github.com. Without this,/pick-prcannot run.
Read-only gh subcommands only (pr list, pr view, pr diff). No comments are posted by the rig.
First run
-
Install the rig
rig use hub:hugo/rig-pr-buddy cd ~/rigs/hugo/rig-pr-buddy # or wherever rig installed it -
Confirm
ghis authenticatedgh auth status -
Launch claude
claude -
Run the loop on a real PR
/pick-pr anthropics/claude-codePick a PR number from the listed open PRs (or pass one directly:
/pick-pr anthropics/claude-code 62821). The skill writesreviews/claude-code-62821/raw.mdanddiff.patch.Then:
/analyze claude-code-62821 /draft-comments claude-code-62821 /founder-brief claude-code-62821Final outputs land in
reviews/claude-code-62821/. Openbrief.mdfirst for the 5-line verdict, thencomments.mdto copy specific line comments into the PR.
Tools required
claude(Claude Code CLI)gh(GitHub CLI, authenticated)
Boundaries
- Drafts only. No comments, no approvals, no merges are posted by this rig.
- Read-only
ghsubcommands only. - No invented code references — every comment cites a real line range from
diff.patch. - Append-only on
reviews/<repo>-<num>/. Re-running a skill writes a-v2variant rather than overwriting.