Just like a person would. If you want it done right you have to do it yourself. Or you have to tell the LLM exactly how to do it.
Often I find it easier to just do it myself rather than list out a bunch of changes. I'll give the LLM a vague task, it does it and then I go through it. If it's completely off I give it new instructions, if it's almost right I just fix the details myself.