Congratulations on 7 months! That’s wonderful! I’m going to say that retraining your brain new behaviors and thinking through the potential outcome of a situation would be a way to resist impulses.
For me, when I get urges to drink, I think about the things I’ve damaged in my life and my loved ones lives by drinking. That usually stops the urge.
I wish you the best.
Sans