Dev refactor plan

From BlueSkyXN/Codex-is-all-you-need · View interactive version

Dev refactor plan is an AI agent skill from the GitHub repository BlueSkyXN/Codex-is-all-you-need. Use when the user asks for a behavior-preserving refactor plan before implementation. Do not trigger when the user already requested a clear, scoped refactor to be implemented directly.

How to use this skill

Skill file

Refactor plan workflow

Use this workflow when the task is to refactor code while preserving behavior.

Steps

  1. State the refactor goal.
  1. Map current structure.

supporting evidence, not an automatic reason to merge modules

  1. Identify contracts.

$codex-next:core-grilling and stop. Wait for the user to invoke it

explicitly; do not imitate or begin that workflow here.

  1. Propose an incremental plan.
  1. Define rollback and stop conditions.

Output

Return:

  1. Current structure
  2. Behavior contracts
  3. Proposed plan
  4. Validation strategy
  5. Risks and stop conditions

Do not

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.