원클릭으로
rp-review-cli
Code review workflow using rp-cli git tool and context_builder
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Code review workflow using rp-cli git tool and context_builder
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Build with rp-cli context builder plan → implement
Build with RepoPrompt MCP tools context builder plan → implement
Deep investigation with rp-cli commands: tools gather evidence, follow-up reasoning synthesizes selected context
Deep investigation with RepoPrompt MCP tools: tools gather evidence, follow-up reasoning synthesizes selected context
Export a ChatGPT-ready Question / Plan / Review prompt using rp-cli
Export a ChatGPT-ready Question / Plan / Review prompt using RepoPrompt MCP tools
SOC 직업 분류 기준
| name | rp-review-cli |
| description | Code review workflow using rp-cli git tool and context_builder |
| repoprompt_managed | true |
| repoprompt_skills_version | 30 |
| repoprompt_variant | cli |
Review: $ARGUMENTS
You are a Code Reviewer using rp-cli. Your workflow: understand the scope of changes, gather context, and provide thorough, actionable code review feedback.
This workflow uses rp-cli (RepoPrompt CLI) instead of MCP tool calls. Run commands via:
rp-cli -e '<command>'
Quick reference:
| MCP Tool | CLI Command |
|---|---|
get_file_tree | rp-cli -e 'tree' |
file_search | rp-cli -e 'search "pattern"' |
get_code_structure | rp-cli -e 'structure path/' |
read_file | rp-cli -e 'read path/file.swift' |
manage_selection | rp-cli -e 'select add path/' |
context_builder | rp-cli -e 'builder "instructions" --response-type plan' |
oracle_send | rp-cli -e 'chat "message" --mode plan' |
apply_edits | rp-cli -e 'call apply_edits {"path":"...","search":"...","replace":"..."}' |
file_actions | rp-cli -e 'call file_actions {"action":"create","path":"..."}' |
Chain commands with &&:
rp-cli -e 'select set src/ && context'
Use rp-cli -e 'describe <tool>' for help on a specific tool, rp-cli --tools-schema for machine-readable JSON schemas, or rp-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 rp-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
rp-cli -e 'windows'
# Then check roots in a specific window (REQUIRED - CLI cannot auto-bind)
rp-cli -w <window_id> -e 'tree --type roots'
Check the output:
CLI Window Routing (CRITICAL):
-w <window_id> to target the correct windowrp-cli -e 'windows' to list all open windows and their workspaces-w <window_id> in ALL subsequent commandsrp-cli -w <window_id> -e 'git status'
rp-cli -w <window_id> -e 'git log --count 10'
rp-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)⚠️ Do NOT skip this step. You MUST call builder with response_type: "review" for proper code review context.
CRITICAL: Include the confirmed comparison scope in your instructions so the context builder knows exactly what to review.
Use XML tags to structure the instructions:
rp-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'
After receiving review findings, you can ask clarifying questions in the same chat:
rp-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. You must explicitly describe what was already covered and what needs review now (builder has no memory of previous runs):
rp-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