with one click
rp-refactor
Scoped refactoring workflow using rp-mini context-builder.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Scoped refactoring workflow using rp-mini context-builder.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | rp-refactor |
| description | Scoped refactoring workflow using rp-mini context-builder. |
Use this for safe behavior-preserving improvements to code organization, duplication, or complexity.
Check workspace binding first. On mismatch, pass root=<absolute path> on every rp-mini tool call.
If a shell is available and no MCP client is loaded, use node packages/server/dist/cli.js tool <workspace> <tool> --json-args '...' or its wrappers.
get_file_tree, file_search, or get_code_structure.skills/context-builder (installed as rp-mini-context-builder) and run it as a Codex native subagent with:
reviewrewrite unless the user requested augment or preservecontext-builder with response_type: plan for the chosen refactor.<questions>, follow the question loop defined in rp-build/rp-investigate before continuing.Do not use refactor as a vehicle for unrelated cleanup.
Build workflow using rp-mini context-builder before implementation.
Export rp-mini curated context for external models or proconsult.
Read-only investigation workflow using rp-mini context-builder.
Deep planning workflow using rp-mini context-builder.
Scoped refactoring workflow using rp-mini context-builder.
Code review workflow using rp-mini git context and context-builder.