It's not a magic bullet though, so here are some other things that help.
Accountability. A person checking in on doing what you need to do.
Timers, alarms, reminders. I have have an Amazon Echo in every room of my house and set reminders whenever something pops into my head.
Pomodoros: just do a couple of minutes and then stop. It's usually not as bad as you imagine.
Above all, forgive yourself. You are a not a machine. You will have better days and worse days. Keep going in the right direction.