gezel Gezel Handboek

Codebase Refactoring Review

Review an entire codebase for the least cogent, highest-leverage refactoring opportunities without changing source. Uses the repository map and per-file AI health index to rank weak areas, then verifies each lead in the real code and leaves a file-and-line-cited morning report with sequenced refactor plans, risk, effort, and tests that must protect behavior. Use for a weekly code-health sweep, refactoring review, technical-debt triage, finding code smells, or deciding which files should be refactored first.

How it runs

#StepWho runs itWhat happens
1Rank weak areasRevieweruse the repo map and per-file health index to build a coverage-aware candidate list
2Verify refactoring candidatesReviewerinspect candidate symbols, responsibilities, callers, and tests in real source
3Write the refactoring reportReviewerprioritized code-health report with safe, sequenced refactor plans
4EvaluateReviewerGrade the deliverable against every acceptance criterion. All pass → finish; any fail → loop back and fix the gap.
5FinishDeveloperAll acceptance criteria met. Stamp a short summary and report DONE.

Say something like "codebase refactoring review" or "what should we refactor" or "find the least cogent code" or "weekly code health review" or "technical debt sweep" or "nightly refactoring review" in chat to start it.

Needs toolsets: builtin.code-intel, builtin.git.

Watch this article as a slideshow