Skip to main content

refactor-safely

Plan and execute safe refactoring using dependency analysis

소스 정보

저장소
tirth8205/code-review-graph
최근 소스 활동
2026년 9월 13일 23:59
감지된 SKILL.md 언어
영어
스타
32,042
포크
2,936

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
refactor-safely
description
Plan and execute safe refactoring using dependency analysis
## Refactor Safely Plan a refactor from the dependency graph and apply renames from a preview. ### Steps 1. Call `refactor_tool` with `mode="suggest"` for refactoring candidates, or `mode="dead_code"` for unreferenced code. 2. For a rename, call `refactor_tool` with `mode="rename"`, `old_name` and `new_name`. Check the returned edit list before applying. 3. Call `apply_refactor_tool` with the returned `refactor_id` to apply the rename. 4. Before a large refactor, call `get_impact_radius_tool` and `get_affected_flows_tool` to see the dependents and critical paths involved. 5. Call `find_large_functions_tool` to find functions worth splitting. 6. After the change, call `detect_changes_tool` to confirm the impact matches the plan. ## Token Efficiency Rules - Call `get_minimal_context_tool(task="<your task>")` before any other graph tool. - Pass `detail_level="minimal"` wherever a tool accepts it. Use "standard" only when minimal is not enough. - Prefer a targeted `query_graph_tool` call over a broad listing call. - Budget: about five tool calls and 800 tokens of graph output per task. - Read the implementation and its tests before changing code. The graph narrows scope; it does not replace the source.
GitHub에서 보기