From benji
Deep PR review with inline GitHub comments. Launches parallel review agents, validates findings, drafts casual inline comments, and posts after user approval.
npx claudepluginhub ai-builder-team/ai-builder-plugin-marketplace --plugin benjiThis skill uses the workspace's default tool permissions.
Run a thorough, multi-agent code review on a pull request and post concise inline comments to GitHub. The review should feel like it came from a senior engineer who actually read the code -- not a linter or AI tool.
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
Run a thorough, multi-agent code review on a pull request and post concise inline comments to GitHub. The review should feel like it came from a senior engineer who actually read the code -- not a linter or AI tool.
When to use: "review this PR", "review PR #123", "give me a code review", or just /review-pr
Parse $ARGUMENTS for a PR number. If blank, detect from the current branch:
gh pr view --json number,title,state,headRefOid
Then get the scope:
git diff --name-only main...HEAD
git diff --stat main...HEAD -- '*.py' '*.ts' '*.tsx' '*.js'
Tell the user the PR number, title, and file count before proceeding.
Launch ALL of the following simultaneously using the Task tool with run_in_background: true:
| Agent | subagent_type | Focus |
|---|---|---|
| Code quality | pr-review-toolkit:code-reviewer | CLAUDE.md compliance, bugs, security |
| Error handling | pr-review-toolkit:silent-failure-hunter | Silent failures, swallowed exceptions |
| Test coverage | pr-review-toolkit:pr-test-analyzer | Coverage gaps, test quality |
| Comments | pr-review-toolkit:comment-analyzer | Accuracy, staleness, misleading docs |
| Types | pr-review-toolkit:type-design-analyzer | Type invariants, design quality |
Skip the type-design-analyzer if no new types/schemas are introduced.
Each agent prompt should include:
git diff main...HEADWait for all agents to complete. Read each output.
This is the most important step. For every finding:
Read the actual source code at the reported locationFalse positives destroy credibility. Be ruthless about cutting.
Write concise, casual comments. Follow these rules:
Tone:
Content:
Volume:
Short and human. Structure:
COMMENT unless there are truly blocking issues (REQUEST_CHANGES)CRITICAL: Do NOT post to GitHub yet.
Show the user:
Ask if they want to adjust anything.
Only after explicit approval, post as a single GitHub review:
COMMIT=$(gh pr view <PR> --json headRefOid -q '.headRefOid')
OWNER=$(gh pr view <PR> --json headRepositoryOwner -q '.headRepositoryOwner.login')
REPO=$(gh pr view <PR> --json headRepository -q '.headRepository.name')
Build JSON payload:
{
"commit_id": "<COMMIT>",
"event": "COMMENT",
"body": "<review body>",
"comments": [
{
"path": "relative/path/to/file.py",
"line": 42,
"side": "RIGHT",
"body": "Comment text"
}
]
}
Post via:
gh api repos/$OWNER/$REPO/pulls/<PR>/reviews \
--method POST --input /tmp/pr_review.json \
--jq '{ id: .id, state: .state, html_url: .html_url }'
Return the review URL.
User: /review-pr 1724
Claude: PR #1724 "feat(eval): implement complete evaluation framework"
42 code files changed, +4512/-139 lines
Launching 5 review agents in parallel...
[agents complete]
Validated 8 findings. Here are the proposed comments:
Comment 1 - snapshot_utils.py:128
> This empty except swallows JSON parse errors and then...
Comment 2 - schemas.py:27
> This DatasetError(Exception) collides with...
[etc.]
PR Review Body:
> Solid work here -- the eval framework design is clean...
Ready to post, or want to adjust anything?
User: Comment 3 is too long, trim it
Claude: [adjusts] Updated. Ready to post?
User: Ship it
Claude: Review posted: https://github.com/.../pull/1724#pullrequestreview-...