ワンクリックで
rp-build-cli
Build with rpce-cli context builder plan → implement
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Build with rpce-cli context builder plan → implement
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-build-cli |
| description | Build with rpce-cli context builder plan → implement |
| repoprompt_managed | true |
| repoprompt_skills_version | 61 |
| repoprompt_variant | cli |
Task: $ARGUMENTS
Build deep context via builder to get a plan, then implement directly. Use follow-up reasoning only when navigating the selected code proves difficult or the plan leaves a concrete gap.
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 a clear prompt to get deep context + an architectural planchat – Use it when navigating the selected code is difficult or the plan leaves a concrete unresolved gapWork through the phases in order:
builder and received its planThe quick scan is orientation only — builder does the deep exploration and produces the plan. Skipping it tends to produce shallow implementations that miss architectural patterns and edge cases.
Before any exploration, 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 commands-w, commands may target the wrong workspaceKeep this phase brief — builder handles the deep exploration.
Start by getting a lay of the land with the file tree:
rpce-cli -w <window_id> -e 'tree'
Then use targeted searches to understand how the task maps to the codebase:
rpce-cli -w <window_id> -e 'search "<key term from task>"'
rpce-cli -w <window_id> -e 'structure RootName/likely/relevant/area/'
Use what you learn to reformulate the user's prompt with added clarity—reference specific modules, patterns, or terminology from the codebase.
Your goal is orientation, not deep understanding — builder does the heavy lifting.
Call builder with your informed prompt. Use response_type: "plan" to get an actionable architectural plan.
rpce-cli -w <window_id> -e 'builder "<reformulated prompt with codebase context>" --response-type plan'
What you get back:
tab_id for targeting the same tab in subsequent CLI invocationsTab routing: Each rpce-cli invocation is a fresh connection. To continue working in the same tab across separate invocations, pass -t <tab_id> (the tab ID returned by builder).
Trust builder – it explores deeply, aggregates the relevant context, and selects intelligently. Default to trusting the plan it returns. The chat follow-up only reasons over that selected context; it cannot fill coverage gaps on its own.
chat only if neededchat deep-reasons over the files selected by builder. It sees those selected files completely (full content, not summaries), but it only sees what's in the selection — nothing else.
This phase is optional. If the builder's plan is already clear and navigation through the selected code is straightforward, proceed straight to Phase 4.
Bring a follow-up to chat only when:
If the answer depends on files outside the current selection, chat cannot answer it from thin air. Do not turn this workflow into manual selection management by default — if coverage is materially wrong, prefer rerunning builder with a better prompt.
rpce-cli -t '<tab_id>' -e 'chat "The plan points me to X and Y, but I'''m still having trouble tracing how they connect across these selected files. What am I missing, and what edge cases should I watch for?" --mode plan'
Note: Pass
-t <tab_id>to target the same tab across separate CLI invocations.
chat excels at:
Don't expect:
builder's jobBefore implementing, verify you have:
tab_id if follow-up is needed)If a specific point is still unclear, use chat to clarify before proceeding.
Implement the plan directly with the editing tools; use chat only for reasoning over the selected context.
Primary tools:
# Modify existing files (search/replace) - JSON format required
rpce-cli -w <window_id> -e 'call apply_edits {"path":"Root/File.swift","search":"old","replace":"new"}'
# Multiline edits
rpce-cli -w <window_id> -e 'call apply_edits {"path":"Root/File.swift","search":"old\ntext","replace":"new\ntext"}'
# Create new files
rpce-cli -w <window_id> -e 'file create Root/NewFile.swift "content..."'
# Read specific sections during implementation
rpce-cli -w <window_id> -e 'read Root/File.swift --start-line 50 --limit 30'
Ask chat only when navigation or cross-file reasoning is the bottleneck:
rpce-cli -w <window_id> -t '<tab_id>' -e 'chat "I'''m implementing X. The plan does not fully explain Y, and reading the selected files still leaves a gap. What pattern or connection am I missing here?" --mode chat'
Token limit: Stay under ~160k tokens. Check with select get if unsure. Context builder manages this, but be aware if you add files.
Selection coverage:
builder should already have selected the files needed for the planchat can reason only over that selected context; it cannot discover missing files on its ownbuilder with a better prompt over hand-curating selectionmanage_selection only as a last resort for a very small, targeted additionchat sees only the selection: If the answer depends on files outside the selection, chat cannot provide it until coverage changes — and in this workflow, coverage changes should usually come from builder, not from manual curation.
chat to implement changes for you – implement directly with editing toolschat about files it cannot see in the current selectionmanage_selection work to patch coverage gaps that should be handled by builderbuilder and going straight to implementation – you'll miss contextmanage_selection with op:"clear" – this undoes builder's work; only use small targeted additions if absolutely necessarybuilder – a quick skim is fine; let the builder do the heavy liftingbuilder builds contextbuilder – you don't-w <window_id> – CLI invocations are stateless and require explicit window targetingYour job: Get a solid plan from builder, trust it by default, use chat only when navigating the selected code proves difficult or the plan leaves a concrete unresolved gap, then implement directly and completely.