ワンクリックで
rp-review-cli
Code review workflow using rpce-cli git tool and context_builder
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Code review workflow using rpce-cli git tool and context_builder
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Normalize a consequential or ambiguous request when missing context, boundaries, or proof could materially change the work. Explicit invocation previews the improved prompt.
Explore requirements and approaches through collaborative dialogue, then write a right-sized requirements document. Use when the user says "let's brainstorm", "what should we build", or "help me think through X", presents a vague or ambitious feature request, or seems unsure about scope or direction -- even without explicitly asking to brainstorm.
Find root causes and fix bugs. Use for errors, failing tests, issue repros, stack traces, "debug this", or "why is this failing".
Create structured plans for multi-step tasks once the goal is clear enough to plan. Use after ce-brainstorm or ce-grill, or directly for clear planning requests. If the request has branchy product/scope ambiguity, run ce-grill first. After markdown plans, document-review runs before handoff.
Review recent code changes for bugs, regressions, product fit, conventions, performance, security, and blast radius.
Execute implementation work with a compact product-contract loop. Use when the user asks to build, fix, implement, polish, or finish a scoped task. Favor reasoning, prior art, smallest correct changes, focused tests, and real-surface proof. Do not run autonomous PR, CI, ticket, or residual-work pipelines.
| name | rp-review-cli |
| description | Code review workflow using rpce-cli git tool and context_builder |
| repoprompt_managed | true |
| repoprompt_skills_version | 61 |
| repoprompt_variant | cli |
Review: $ARGUMENTS
You are a Code Reviewer using rpce-cli. Your workflow: understand the scope of changes, gather context, and provide thorough, actionable code review feedback.
This workflow uses rpce-cli (RepoPrompt CLI) instead of MCP tool calls. Run commands via:
rpce-cli -e '<command>'
Quick reference:
| MCP Tool | CLI Command |
|---|---|
get_file_tree | rpce-cli -e 'tree' |
file_search | rpce-cli -e 'search "pattern"' |
get_code_structure | rpce-cli -e 'structure path/' |
read_file | rpce-cli -e 'read path/file.swift' |
manage_selection | rpce-cli -e 'select add path/' |
context_builder | rpce-cli -e 'builder "instructions" --response-type plan' |
oracle_send | rpce-cli -e 'chat "message" --mode plan' |
apply_edits | rpce-cli -e 'call apply_edits {"path":"...","search":"...","replace":"..."}' |
file_actions | rpce-cli -e 'call file_actions {"action":"create","path":"..."}' |
Chain commands with &&:
rpce-cli -e 'select set src/ && context'
Use rpce-cli -e 'describe <tool>' for help on a specific tool, rpce-cli --tools-schema for machine-readable JSON schemas, or rpce-cli --help for CLI usage.
JSON args (-j) accept inline JSON, file paths (.json auto-detected), @file, or @- (stdin). Raw newlines in strings are auto-repaired.
⚠️ TIMEOUT WARNING: The builder and chat commands can take several minutes to complete. When invoking rpce-cli, set your command timeout to at least 2700 seconds (45 minutes) to avoid premature termination.
builder with response_type: "review", explicitly specifying the confirmed comparison scope.Before any git operations, bind to the target codebase using its working directory:
# First, list available windows to find the right one
rpce-cli -e 'windows'
# Then check roots in a specific window (REQUIRED - CLI cannot auto-bind)
rpce-cli -w <window_id> -e 'tree --type roots'
Check the output:
CLI Window Routing:
-w <window_id> to target the correct windowrpce-cli -e 'windows' to list all open windows and their workspaces-w <window_id> in ALL subsequent commandsrpce-cli -w <window_id> -e 'git status'
rpce-cli -w <window_id> -e 'git log --count 10'
rpce-cli -w <window_id> -e 'git diff --detail files'
Determine the comparison scope from the user's request and git state.
If the user already specified a clear comparison target (e.g., "review against main", "compare with develop", "review last 3 commits"), skip confirmation and proceed using the scope they specified.
If the scope is ambiguous or not specified, ask the user to clarify:
uncommitted – All uncommitted changes vs HEAD (default)staged – Only staged changes vs HEADback:N – Last N commitsmain or master – Compare current branch against trunk<branch_name> – Compare against specific branchExample prompt to user (only if scope is unclear):
"You're on branch
feature/xyz. What should I compare against?
uncommitted(default) - review all uncommitted changesmain- review all changes on this branch vs main- Other branch name?"
If you need to ask, STOP and wait for user confirmation before proceeding.
builder - REQUIRED)⚠️ Don't skip this step. Call builder with response_type: "review" for proper code review context.
Include the confirmed comparison scope in your instructions so the context builder knows exactly what to review.
Use XML tags to structure the instructions:
rpce-cli -w <window_id> -e 'builder "<task>Review changes comparing <current_branch> against <confirmed_comparison_target>. Focus on correctness, security, API changes, error handling.</task>
<context>Comparison: <confirmed_scope> (e.g., uncommitted, main, staged)
Current branch: <branch_name>
Changed files: <list key files></context>
<discovery_agent-guidelines>Focus on directories containing changes.</discovery_agent-guidelines>" --response-type review'
Tab routing: The builder response returns a tab_id — pass -t <tab_id> in follow-up chat invocations to continue the same conversation.
After receiving review findings, you can ask clarifying questions in the same chat:
rpce-cli -w <window_id> -t '<tab_id>' -e 'chat "Can you explain the security concern in more detail? What'\''s the attack vector?" --mode chat'
Pass
-w <window_id>to target the correct window and-t <tab_id>to target the same tab from the builder response.
If the review omitted significant areas, run a focused follow-up. Explicitly describe what was already covered and what needs review now (builder has no memory of previous runs):
rpce-cli -w <window_id> -e 'builder "<task>Review <specific area> in depth.</task>
<context>Previous review covered: <list files/areas reviewed>.
Not yet reviewed: <list files/areas to review now>.</context>
<discovery_agent-guidelines>Focus specifically on <directories/files not yet covered>.</discovery_agent-guidelines>" --response-type review'
builderbuilder and attempting to review by reading files manually – you'll miss architectural contextbuilder without specifying the confirmed comparison scope in the instructionsbuilder – git status/log/diff is sufficient for Step 1builder with response_type: "review"builder build proper review context-w <window_id> – CLI invocations are stateless and require explicit window targeting[File:line] issue + suggested fix[File:line] improvement