一键导入
refactor-safely
Plan and execute safe refactoring using dependency analysis
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Plan and execute safe refactoring using dependency analysis
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
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
Build or update the code review knowledge graph. Run this first to initialize, or let hooks keep it updated automatically.
Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.
Review a PR or branch diff using the knowledge graph for full structural context. Outputs a structured review with blast-radius analysis.
基于 SOC 职业分类
| 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_tool to verify the refactoring impact.get_impact_radius_tool before major refactors.get_affected_flows_tool 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.