How to stop the cycle of feeling?

About every week or so I go between the cycles. It starts off I can do fucking anything and for a whole week or so, I can. That next week will be completely the opposite I find it hard to get off the couch. Hardly able to take the inner suffering. Then I’m back to feeling spectacular and I say to myself that shit was pathetic, I totally could just hop out of the slump next time, but I can’t.

How do you get that shit to stop, I just want to feel consistently good. I’m tired of myself.
Updates
+1 y
One week I’m getting praise for the masterpiece of software I created in just a week. The next my boss is pissed I’m not showing up to any morning meetings. They keep me because I’m good but imagine what I’d be able to do if every week was a good week.
How to stop the cycle of feeling?
Post Opinion