There really isn't a consistent way to do this. The best thing is to be flexible to your opponent. Being able to balance position, tactics, and timing complicated. The best thing to do is read games, understand why certain moves were made, so decision making skills are influenced. Also study various problems.
http://www.chess.com/article/view/how-to-improve-your-attacking-skills