Iteratively reduce code entropy by fixing smells and improving quality. Use when: cleanup, code smells, entropy, refactor loop, baldrick entropy...
Iteratively scan and fix code smells to improve codebase quality.
Philosophy: Impactful cleanup over nitpicking. Focus on changes that matter.
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā 1. Scan for code smells ā
ā 2. If no meaningful smells ā COMPLETE ā
ā 3. Pick ONE smell to fix ā
ā 4. Fix with minimal changes ā
ā 5. Run tests to verify ā
ā 6. Commit the fix ā
ā 7. Append to progress.txt ā
ā 8. Loop back to step 1 ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
High Impact:
Medium Impact:
Low Impact (skip unless asked):
Append to progress.txt after each fix:
## Entropy Fix - [Date/Time]
- Smell: Duplicate email validation in 3 files
- Fix: Extracted to `src/utils/validation.ts`
- Files: auth.ts, profile.ts, settings.ts
- Impact: Reduced code by 45 lines
---
When no more meaningful improvements exist:
<promise>COMPLETE</promise>"Meaningful" means:
User: "Run entropy loop to clean up the codebase"
The skill will: