with one click
refactor-optimization-plan
// Use when Codex needs to propose a safe refactor or optimization roadmap without changing code, including phases, affected files/modules, risk, tests, and rollback checkpoints.
// Use when Codex needs to propose a safe refactor or optimization roadmap without changing code, including phases, affected files/modules, risk, tests, and rollback checkpoints.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | refactor-optimization-plan |
| description | Use when Codex needs to propose a safe refactor or optimization roadmap without changing code, including phases, affected files/modules, risk, tests, and rollback checkpoints. |
Create a safe, phased refactor and optimization roadmap from audit findings. The plan must preserve behavior, name affected files/modules, and define validation gates before any implementation.
Use this skill when the user asks for refactor plan, optimization roadmap, phased cleanup, safe rewrite strategy, technical debt plan, or how to improve performance without risky changes.
Use after one or more audit reports exist when possible.
docs/audits if present:
docs/audits/refactor-optimization-plan.md.Write a Vietnamese Markdown report with:
Muc tieu refactorNguyen tac an toanInvariants can giuPhase 0 - do luong va safety netPhase 1 - cai tien it rui roPhase 2 - refactor can test kyPhase 3 - thay doi kien trucFile/module/API/model bi anh huongValidation matrixThu tu uu tien P0/P1/P2/P3Each work item must include evidence source, expected benefit, affected surface, tests, and rollback/stop condition.