juicesharp/rpiv-mono/code-review

Claude Code and agent skill by juicesharp/rpiv-mono

Trust tier 2
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Conduct comprehensive code reviews of pending changes, a branch, or a PR using parallel specialist agents that audit the diff, compare against peer code, and verify claims. Use when the user asks to 'review this', wants pending changes, a PR, a branch, or a diff reviewed, or asks for a code review. Produces review documents in .rpiv/artifacts/reviews/. Internal mechanics like row-only agent contracts and Gap-Finder set arithmetic are documented in the skill body.

Install

npx vskill@latest install juicesharp/rpiv-mono/code-review

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as juicesharp/rpiv-mono/code-review.

Code Review

Review changes across Quality, Security, Dependencies lenses with optional advisor adjudication. Valid scopes: commit | staged | working | --folder <path> | --file <paths> | hash | A..B | PR branch. Empty scope defaults to feature-branch-vs-default-branch first-parent review (default branch auto-detected; see Step 1).

Input

$ARGUMENTS — scope: commit | staged | working | --folder <path> | --file <paths> | a commit hash | A..B range | PR branch name. Empty defaults to feature-branch-vs-default-branch (first-parent).

Metadata

!
node "${SKILL_DIR}/../_shared/now.mjs"
echo
node "${SKILL_DIR}/../_shared/git-context.mjs"

Scope resolution (default branch, range, ChangedFiles) is LLM-invoked at Step 1.1 via the bundled _helpers/review-range.mjs — it depends on $ARGUMENTS and on conversational clarification, which render-time substitution cannot capture.

Flow

  1. Input → 2. Wave-1 dispatch → 3. Wave-2 dispatch → 4. Wave-3 dispatch → 5. Reconcile → 6. Verify → 7. Write artifact → 8. Present → 9. Follow-ups

File-orientation contract: agents reason about files as coherent units. Hunks are evidence within a file's analysis, never the unit of analysis. The -U30 patch (Step 1) inlines function-level context so agents rarely need extra Read calls.

Every Wave-2 agent prompt contains EXACTLY: (a) Known Context: followed by the Discovery Map verbatim, and (b) the resolved <patch_path> value (the helper's patch_path: field) as the patch path. Exception: strategy: tree direct-read mode passes ChangedFiles for direct file Reads instead of <patch_path>. Nothing else from Wave-1 outputs — NOT the raw integration-scanner dump, NOT precedent-locator output, NOT Dependencies/CVE output. See "Wave-2 context isolation" in Step 3 for the failure mode when this is violated. Wave-1 agents that do not consume the Discovery Map (precedents, dependencies, CVE) get ChangedFiles / manifest-diff only.

Steps

Step 1: Resolve Scope and Assemble the Diff
  1. Resolve scope via the bundled helper. Determine the scope spec from the value the user supplied (visible in ## Input above as the substituted argument). If empty, use the literal string auto; if ambiguous (prose, mixed list, unrecognised branch name), clarify via ask_user_question — options: (A) "review current branch vs default branch (first-parent)" → auto, (B) "review every tracked change vs HEAD (staged + unstaged)" → modified, (C) "review unstaged changes only" → working, (D) "restate scope" → free-text — then re-invoke. Then run:

``bash node "${SKILL_DIR}/_helpers/review-range.mjs" "<scope-spec>" ``

The helper emits labeled key/value lines (default_branch:, strategy:, oldest:, newest:, base:, tip:, range:, fp_flag:, patch_path:; plus null_tree: for strategy: tree) followed by a ---changed-files--- block. Read those as authoritative for the rest of Step 1. If strategy: unrecognised appears, the note: field explains why — clarify via ask_user_question and re-invoke with a valid spec.

<scope-spec> translation table — map the user's substituted argument to one of these forms:

Argument shapePass to helper
empty (no argument provided)auto
literal commit / staged / working / modifiedsame word verbatim
hex commit hash (4-40 chars, e.g. abc1234)the hash verbatim
<A>..<B> (e.g. HEAD~5..HEAD, main..feature)the range verbatim
comma- or whitespace-separated hashes (h1,h2,h3 or h1 h2 h3)the list verbatim
branch name (must be checked out at HEAD locally)the branch name verbatim
--folder <path> (directory relative to repo root)--folder <path> verbatim
--file <path1>,<path2> (one or more tracked files; comma-separate multiple paths; literal commas in paths are not supported)--file <paths> verbatim
folder:<path> / file:<paths> legacy aliasespass through verbatim
anything else (prose, mixed list, unresolvable ref)clarify via ask_user_question, then re-invoke
  1. Confirm strategy from the helper output. The mapping into the rest of the skill:
  • strategy: first-parent (auto / PR branch / commit list) — use <range> AND <fp_flag> (which is --first-parent) in the subsequent git commands. <base> is the parent-of-first-feature-commit (helper computes via merge-base), so the range already includes OLDEST's own changes — do NOT add ^ anywhere.
  • strategy: explicit-range (single hash / A..B) — use <range> without <fp_flag> (it's empty for this strategy). <base> is OLDEST^ (so the range includes OLDEST itself, matching the original "user-inclusive endpoint" intent).
  • strategy: working-tree (commit / staged / working) — no <range>; use the working-tree commands listed in the next bullet.
  • strategy: tree (--folder / --file, plus legacy folder: / file: aliases) — no <range>; review tracked files in the specified path(s) as complete entities. The helper emits null_tree: plus tree_path: (folder) or files_list: (file) instead. Use the tree commands listed below. Precedent-locator is skipped for this strategy (no creation history to compare); all other Wave-1 agents still follow their normal gates.

--first-parent is orthogonal to --no-merges: the former prunes second-parent subtrees from reachability, the latter drops merge commits themselves from the log. Both flags are independently controllable below.

  1. Assemble the UNION of changes (not the net endpoint-diff — so reverted intermediate work stays visible). Save the patch to a tempfile once with generous context; do NOT re-run git log --patch to slice windows later. Substitute literal <range>, <fp_flag>, and <patch_path> values from the helper output (<fp_flag> is --first-parent or empty — omit the flag entirely when empty; <patch_path> is the worktree-safe diff tempfile — a literal .git/… path fails inside a worktree):
  • ChangedFiles — read from the helper's ---changed-files--- block. If a (... N more files truncated ...) footer appears, the change set exceeded the helper's 2000-line/40 KB cap; scope the review tighter or run the patch-tempfile command below to recover the full surface from disk.
  • git log "<range>" <fp_flag> --stat --reverse → per-commit size summary
  • git log "<range>" <fp_flag> --patch --reverse --no-merges -U30 > <patch_path> → union patches with 30 lines of surrounding context per hunk (function-level context inline)
  • git log "<range>" --reverse --format="%H %s%n%n%b%n---" → commit-message context
  • Working-tree branch (strategy: working-tree, no <range>): for staged use git diff --cached --stat + git diff --cached -U30 > <patch_path>; for working use git diff --stat + git diff -U30 > <patch_path> (unstaged only); for modified use git diff HEAD --stat + git diff HEAD -U30 > <patch_path> (every tracked change vs HEAD — staged + unstaged, no untracked); for commit use git show HEAD --stat + git show HEAD -U30 > <patch_path>. Commit-message context is N/A for staged / working / modified; for commit use git show HEAD --format="%H %s%n%n%b%n---" --no-patch. ChangedFiles still comes from the helper.
  • Tree branch (strategy: tree, no <range>): <paths> is tree_path: (from helper) or the comma-separated files_list: entries split on commas only (quote each resulting pathspec; never split files_list: on whitespace; literal commas in file paths are not supported); <null_tree> is the helper's null_tree: value. Emit the size summary separately with git diff --cached --stat <null_tree> -- <paths>. Then choose the review input mode before generating any patch:
  • Direct-read mode (len(ChangedFiles) > 10): do not generate a tree patch. Record TreeInputMode = direct-read; leave <patch_path> unused for Wave-2 and instruct Wave-2 agents to Read files directly from ChangedFiles. This prevents large folder reviews from filling the main context with full-file additions.
  • Patch mode (len(ChangedFiles) ≤ 10): generate the patch with fallback chain (each step only if previous produced empty output):
  1. git diff --cached -U30 <null_tree> -- <paths> > <patch_path> — full-file additions: index vs the repository's empty tree, matching the helper's ls-files --cached enumeration exactly (a <null_tree> HEAD diff would silently drop staged-but-uncommitted files from the patch)
  2. Synthetic patch — for each non-binary file in ChangedFiles, emit a valid unified patch: diff --git a/<f> b/<f> / new file mode 100644 / --- /dev/null / +++ b/<f> / @@ -0,0 +1,<line_count> @@ / then prefix every source line with + and append to <patch_path>. For binary files, emit Binary files /dev/null and b/<f> differ.

If both steps produce empty output, print No patchable content in scope. Exiting. and STOP. Commit-message context is N/A. ChangedFiles comes from the helper.

  • Patch-size fallback: -U30 produces ~2–3× the size of -U0. If the resulting patch exceeds ~1MB, drop to -U10 for this run; never use -U0 — it defeats the skill's design.
  1. Bail-out: if ChangedFiles is empty, print No changes in scope {scope}. Exiting. and STOP. Do not write an artifact.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
658
Repository forks
121
7-day trend score
32

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/juicesharp/rpiv-mono/code-review/badge)](https://verified-skill.com/skills/juicesharp/rpiv-mono/code-review)

Something wrong with this skill or its page? Tell us.