agent/pkg/lib/task/code/refactor.md

11 lines
314 B
Markdown
Raw Normal View History

# Refactor Task
Restructure code for clarity without changing behaviour.
## Process
1. Identify the refactor target (function, package, pattern)
2. Write tests that lock current behaviour FIRST
3. Apply refactor in small steps, testing after each
4. Verify: same tests pass, same API surface, cleaner internals