一键导入
rp-refactor
Analyze dependencies, callers, and coupling before refactoring, then produce a safe incremental refactoring plan.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze dependencies, callers, and coupling before refactoring, then produce a safe incremental refactoring plan.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Gather relevant source files for a task, resolve their dependencies, and package everything into a structured context prompt.
Produce an architectural design and implementation plan based on task requirements, identifying scope, dependencies, impact, and a step-by-step rollout strategy.
Explore the codebase and export a structured context file (e.g., context.xml) for pasting into an external LLM like ChatGPT or Claude Web.
Trace execution paths from an error or bug report to find the root cause, gathering surrounding context (callers, imports, tests) along the way.
Review recent code changes by gathering git diffs, identifying affected callers and tests, and analyzing for security, performance, and breaking changes.
Identify untested functions by comparing source symbols with test symbols, then prepare context for writing missing tests.
| name | rp_refactor |
| description | Analyze dependencies, callers, and coupling before refactoring, then produce a safe incremental refactoring plan. |
Understand the full dependency and coupling landscape of target code, then produce a phased refactoring plan where each phase is atomic, testable, and reversible.
Two phases:
blast_radius — analyze impact and find all callers/dependentsget_imports_graph — trace dependency chainget_related_tests — identify existing test coveragebatch_codemap — understand module APIsbuild_prompt — package context per refactoring phase