بنقرة واحدة
rp-review
Code review workflow using RepoPrompt MCP tools git tool and context_builder
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Code review workflow using RepoPrompt MCP tools git tool and context_builder
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Test GitHub Actions workflow YAML changes end-to-end with static validation, local shell simulation, and PR CI checks. Use when verifying CI/workflow changes such as secret handling in run blocks.
Test the ctrld-sync Python CLI end-to-end. Use when validating CLI dry-run behavior, folder URL validation, SSRF safety checks, or sync planning changes.
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
| name | rp-review |
| description | Code review workflow using RepoPrompt MCP tools git tool and context_builder |
| repoprompt_managed | true |
| repoprompt_skills_version | 30 |
| repoprompt_variant | mcp |
Review: $ARGUMENTS
You are a Code Reviewer using RepoPrompt MCP tools. Your workflow: understand the scope of changes, gather context, and provide thorough, actionable code review feedback.
context_builder with response_type: "review", explicitly specifying the confirmed comparison scope.Before any git operations, confirm the target codebase is loaded:
{"tool":"list_windows","args":{}}
Check the output:
select_windowBind to the correct window:
{"tool":"select_window","args":{"window_id":<window_id_with_your_root>}}
If the root isn't loaded, find and open the workspace:
{"tool":"manage_workspaces","args":{"action":"list"}}
{"tool":"manage_workspaces","args":{"action":"switch","workspace":"<workspace_name>","open_in_new_window":true}}
{"tool":"git","args":{"op":"status"}}
{"tool":"git","args":{"op":"log","count":10}}
{"tool":"git","args":{"op":"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.
context_builder - REQUIRED)⚠️ Do NOT skip this step. You MUST call context_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:
{"tool":"context_builder","args":{
"instructions":"<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 from git diff></context>
<discovery_agent-guidelines>Focus on the directories containing changes.</discovery_agent-guidelines>",
"response_type":"review"
}}
After receiving review findings, you can ask clarifying questions in the same chat:
{"tool":"chat_send","args":{
"chat_id":"<from context_builder>",
"message":"Can you explain the security concern in more detail? What's the attack vector?",
"mode":"chat",
"new_chat":false
}}
If the review omitted significant areas, run a focused follow-up. You must explicitly describe what was already covered and what needs review now (context_builder has no memory of previous runs):
{"tool":"context_builder","args":{
"instructions":"<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"
}}
context_buildercontext_builder and attempting to review by reading files manually – you'll miss architectural contextcontext_builder without specifying the confirmed comparison scope in the instructionscontext_builder – git status/log/diff is sufficient for Step 1context_builder with response_type: "review"context_builder build proper review context[File:line] issue + suggested fix[File:line] improvement