In his book Art of Attack in Chess Vukovic talks about attacks having "focal points." Basically you coordinate your threats on squares or lines the opponent can't defend very well.
When you find a beautiful attack in a book, analyze it in depth. Play it over on a board (not on a computer or phone). Analyze it on your own. Explore many variations and make your own notes about the moves. Then check your work with the help of an engine.
If you do this for many different attacking games you'll start to see common patterns and ideas.
I know this is a question of subjective answers with many variables. So let's just say the question is rhetorical.
Have any of you ever noticed that you are making moves that helps your opponent improve his pieces? For example, the opponent's rook is at a8 behind his own pawn, so we play Bf3 and the opponent plays Rb8 improving his piece by free. In other cases the attack forces the opponent to play the best defense, etc.
I do not know how to do attacks whose defense worsens the opponent's position lol. In books it's so beautiful to see these attacks, in real life things are different for me.
Someone can to say: just dont' play Bf3. That is logic, but, what else? Do you understand? Interesting!