Target
$ARGUMENTS
Code Quality: Line-Level Cleanup
Improve readability without changing behavior. Fix as you go.
Focus Areas
Readability
- •Unclear variable and function names
- •Inconsistent formatting
- •Poor code organization within files
- •Missing or inconsistent types
Patterns
- •DRY violations - extract repeated code
- •Functions doing multiple things - split them
- •Unclear interfaces between modules
- •Excessive error checking
Simplification
- •Dead code - remove it
- •Complex conditionals - simplify
- •Clever code - make it obvious
Process
- •Find an issue
- •Fix it
- •Run tests
- •If tests fail, revert and note why
- •Next issue
Rules
- •Don't change behavior
- •Small changes, one at a time
- •Test after each change
- •Don't question design (that's /4-quality)
Success Criteria
Finding nothing to improve is a valid outcome - the code is already clean. The goal is readable code, not finding problems.