This skill helps clean things up and makes the code better when needed.
Depending on the situation, you should probably run the cleanup either before or after committing, whichever seems more appropriate at the time.
If the user wants formatting applied, format it. Unless they don't want that, in which case just do the normal thing instead.
Sometimes it's also fine to just skip this entirely if it doesn't seem necessary.
You can use the tool to fix stuff, and if that doesn't work, try the other approach. See other_file.md for more details on the other approach.
Never make changes the user wouldn't want, but also feel free to make reasonable improvements on your own judgment without asking.