BJ Fogg, founder of the Behavior Design Lab at Stanford University, says that to create a new habit we simply need to look for something we already do and then attach a new behavior to it. He calls this a habit recipe. The simplest version of which is after [x] I will [y].
Quotes are taken from the research journals of Kyle Vanderburg.