with one click
refactor-safely
Plan and execute safe refactoring using dependency analysis
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
Plan and execute safe refactoring using dependency analysis
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
Work through planned tasks in manageable batches — pick a GitHub issue (plan-labelled, regular, or code-scanning/Dependabot alert), split into parallel subagents, test, review, log, commit, push, open a PR. Never block on CI: start the next batch immediately and reconcile the previous batch's PR (merge if green, fix if red) at the end of the new one. Use when the user asks to work on issues, ship a batch, or process the backlog.
Systematically debug issues using graph-powered code navigation
Navigate and understand codebase structure using the knowledge graph
Perform a structured code review using change detection and impact
| name | refactor-safely |
| description | Plan and execute safe refactoring using dependency analysis |
Use the knowledge graph to plan and execute refactoring with confidence.
refactor_tool with mode="suggest" for community-driven refactoring suggestions.refactor_tool with mode="dead_code" to find unreferenced code.refactor_tool with mode="rename" to preview all affected locations.apply_refactor_tool with the refactor_id to apply renames.detect_changes to verify the refactoring impact.get_impact_radius before major refactors.get_affected_flows to ensure no critical paths are broken.find_large_functions to identify decomposition targets.get_minimal_context(task="<your task>") before any other graph tool.detail_level="minimal" on all calls. Only escalate to "standard" when minimal is insufficient.