The Codex Refactoring Playbook: 20 Prompts for Legacy Code Modernization, Design Pattern Implementation, and Technical Debt Reduction
This playbook provides twenty high-leverage prompts you can feed to OpenAI Codex (or a code-focused successor) to systematically refactor legacy codebases. The goal is to make modernization repeatable, measurable, and safe. Each prompt card includes: when to use it, what inputs to supply, a fully specified prompt template, example code,…
