Planning on what to think ahead of time?

Is there any course content that talks about creating a plan for feelings you know you typically have in certain situations? For instance, when my partner with mental illness has a manic episode, I tend to do all the wrong things. I want to start to create some thoughts/plans for what to do/think when that happens.