I am sure many of the readers here are aware of Tiny Habits (and the variations thereof).
To create a ritual/habit, you make first make the easiest component easy to do. Instead of writing for an hour, you just log in at 8am. Then you type a sentence and so on, and eventually you have a full blown habit.