Basically, you solve x-number of chess tactics (100-200 for the amateur, 1000 for the serious professional), and then you go back and solve the same puzzles again, this time aiming to do it faster than before1.

1. Smith, A. & Tikkanen, H. The Woodpecker Method. (Quality Chess, 2019).