원클릭으로
refactor
Refactor code while preserving behavior and reducing structural risk.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Refactor code while preserving behavior and reducing structural risk.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Guided git commit workflow — review changes, draft message, stage, commit
Manage context pressure during large codebase work without losing critical state.
Create a pull request with structured summary and test plan
Interactive debugging — reproduce, isolate, trace, fix
Explore a codebase or directory to understand its structure and purpose
Implement a requested code change end-to-end with scoped edits and verification.
| name | refactor |
| description | Refactor code while preserving behavior and reducing structural risk. |
| when_to_use | Use when the user asks for restructuring, cleanup, simplification, or architecture improvement. |
| required_tools | ["bash","symbol_index","symbol_search","imports"] |
| tags | ["coding","refactor"] |
| activation | {"input_patterns":["(?i)(refactor|restructure|cleanup|重构|整理|架构)"]} |
${ARGS}
Define the behavior that must not change. Locate callers before moving or renaming symbols.
Prefer reducing coupling, narrowing responsibilities, and deleting dead paths over adding abstraction.
Make small coherent edits. Keep public interfaces stable unless the user explicitly asks for a break.
Run targeted diagnostics/tests and inspect the resulting diff for accidental behavior change.