|
# Workflow: /refactor
<meta>
<trigger>/refactor</trigger>
<description>Analyzes scope, builds a prioritized plan, and suggests changes block-by-block.</description>
</meta>
## Step 1 — Dimensional Analysis
Evaluation of code through 6 dimensions: Logic Simplification, Duplicate Code, Naming, Separation of Responsibilities, Coupling Reduction, and SOLID Patterns.
## Step 2 — Prioritized Plan
Improvements are grouped into High, Medium, and Low priority blocks. The plan is presented for approval before any changes are suggested.
## Step 3 — Assisted Execution
Block-by-block refactoring suggestions, with explanations on the "why" behind the change and impact analysis on other parts of the system.