Habit Hooks: Guiding AI to Write Cleaner Code