/octomux:review-prfrom octomux
Reviews pull requests using parallel specialized agents (security, performance, test quality, etc.) and posts pending GitHub reviews with inline comments.
Ships in octomux. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Review a PR using parallel specialized agents, present findings to user, then post as a pending GitHub review with inline comments.
gh pr view <number> # title, description, base branch
gh pr diff <number> # full diff
gh pr diff <number> --name-only # changed files
gh pr view <number> --json headRefOid -q '.headRefOid' # commit SHA for review API
Also read CLAUDE.md and any service-specific CLAUDE.md files (e.g. internal/hedging/CLAUDE.md) to understand project conventions.
Launch all agents in a single message using the Agent tool. Each agent gets the full diff and changed file list. Agents should read CLAUDE.md for project conventions.
Agents:
| Agent | Focus |
|---|---|
| Code Reviewer | Up to 5 ranked improvements (impact vs effort). Watch for project-specific conventions. |
| Security & Financial Safety | Input validation, decimal precision, race conditions, secrets, data leakage. |
| Quality & Style | Complexity, dead code, duplication, naming, logging, constructor patterns. |
| Test Quality | Coverage gaps, test patterns, anti-patterns, assertion quality. |
| Performance & Concurrency | N+1 queries, goroutine leaks, race conditions, channel misuse, lock contention. |
| Dependency & Deployment | Breaking changes, config safety, migration safety, rollback safety. |
| Simplification | Over-abstraction, unnecessary complexity, change atomicity. |
Each agent returns a concise report (under 300 words) with file:line references.
Collect all agent results and:
Show the user the proposed comments before posting. Format each as:
**N. Title** (on `file:path`, line X)
> Comment text here
Wait for user confirmation or edits. The user may:
Use the GitHub API to post a single pending review with inline comments:
gh api repos/{owner}/{repo}/pulls/{number}/reviews \
--method POST \
--input - <<'JSONEOF'
{
"commit_id": "<head_sha>",
"event": "COMMENT",
"body": "<overall review comment>",
"comments": [
{
"path": "file/path.go",
"line": 42,
"side": "RIGHT",
"body": "Comment text here"
}
]
}
JSONEOF
Notes on posting:
line is the line number in the new file (RIGHT side of diff)subject_type: "file" is NOT supported by the GraphQL-backed endpoint — avoid itside: "LEFT" with the old file line numberevent: "COMMENT" posts as a neutral review (not approve/request changes)Verify PR description against project conventions (from CLAUDE.md):
## What section## Why section## Testing sectionInclude format checklist in overall review comment if issues found.
Write comments like the repo owner — direct, short, no fluff:
NewServer instead" not "This could cause a nil pointer dereference in production when..."# Good
Remove this, compiled binary should not be in the repo. Add it to `.gitignore`.
# Good
This looks like a debug leftover, `mock_lp.enabled` should stay `false` in the committed config. Use `local.yaml` for local overrides.
# Good
We always pass a non-nil priceCache from main, so this nil check is dead code. Validate non-nil in `NewServer` instead and remove this guard.
# Good
Nit: `message.NewPrinter(language.English)` from `golang.org/x/text/message` does this — `p.Sprintf("$%.2f", d.InexactFloat64())` handles comma formatting automatically. Already an indirect dep.
# Good
Move this to `templateFuncs` to follow the existing convention.
# Bad (too long, too soft)
This is a really nice function, but I think it might be worth considering whether we could simplify this by using the standard library's text/message package, which provides locale-aware number formatting out of the box. This would reduce the maintenance burden of this custom implementation.
# Bad (describes problem instead of fix)
There's a potential issue here where if priceCache is nil, this could cause unexpected behavior in production. The nil check in the handler suggests that this might not always be initialized.
Include a one-line verdict at the end of the overall review comment:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub shreypaharia/octomux --plugin octomux20 skills in this plugin
/add-agentUse when you need to attach a new Claude Code agent (new tmux window) to an existing running octomux task, sharing the task's worktree and cwd/add-pluginUse when installing, disabling, enabling, or troubleshooting a third-party octomux plugin — the manifest row shape, octomux plugins list/disable/enable, reading octomux doctor output, and recovering a broken boot with --safe-mode./configure-harnessUse when configuring which coding-agent harness octomux launches — per-task --model, harness selection, settings.harnesses.<id>, resolveFlags/validateSettings, and registering an additional harness via a plugin./create-pluginUse when authoring a new octomux plugin package — package layout, the apply(ctx) export, choosing a registrar, shipping kind presets, testing locally, and confirming with octomux doctor./create-prUse when creating a pull request, opening a PR, or pushing and creating a PR for an octomux task/create-taskUse when creating an octomux task to dispatch autonomous Claude Code agents for building features, fixing bugs, or any code changesOther plugins' skills for the same job