원클릭으로
refactor
Activate when improving code quality, reducing complexity, or aligning code with standards without changing behavior.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Activate when improving code quality, reducing complexity, or aligning code with standards without changing behavior.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | refactor |
| version | 1.0.0 |
| description | Activate when improving code quality, reducing complexity, or aligning code with standards without changing behavior. |
| triggers | ["refactor","cleanup","simplify","extract","rename","complexity"] |
A protocol for safely improving code quality without changing external behavior. Combines recursive tracing with incremental, test-verified transformations.
Before any modification, perform a recursive check:
Systematically apply these transformations:
mixed, any, or loose types with strict types or Value Objects.<thought> block. Explain how it aligns with the recursive-exploration skill.For each refactor step:
Input: A 35-line method with nested conditionals.
Step 1 output:
validateInput()."recursive-exploration (tracing methodology), typescript-standard or php-standard (target standards)code-review (refactor suggestions from reviews)Activate when an Engineering Manager needs to shape a rough initiative into a clear, scoped, outcome-oriented brief before execution.
Activate when reviewing branches, commits, or pull requests using the emoji-driven review protocol.
Activate when managing conversation history in long sessions, choosing compression strategies, or preserving critical information during context truncation.
Activate when designing agent systems, debugging unexpected agent behavior, or optimizing context usage and attention budgets.
Activate when hitting context limits, experiencing quality degradation in long sessions, or needing to extend effective context capacity.
Activate when generating in-code comments or system documentation using the Diátaxis framework.