Appearance
重构代码库
← All use cases
难度:高级
适用场景:Codebases with dead code, oversized modules, duplicated logic, or stale abstractions that make routine edits expensive. Teams that need to modernize code in place without turning the work into a framework or stack migration.
启动提示
Modernize and refactor this codebase. Requirements:
- Preserve behavior unless I explicitly ask for a functional change.
- Start by identifying dead code, duplicated paths, oversized modules, stale abstractions, and legacy patterns that are slowing changes down.
- For each proposed pass, name the current behavior, the structural improvement, and the validation check that should prove behavior stayed stable.
- Break the work into small reviewable refactor passes such as deleting dead code, s...