According to Sage Jaimini, it´s formed when
1. both Rahu and Moon are conjunct in the fifth or the ninth house.
2. One of them is placed in the fifth or ninth house and the other aspects the fifth or ninth house.
3. Both of them aspect the fifth or ninth house without being placed there.
I´ve read that it´s supposed to generate tremendous power from good merit from previous lives.
We can find the mention of shakti yoga in jaimini sutras 4th chapter .The shakti yoga of Rahu moon takes place 4times in a month and for this yoga to fructify this needs to be in trines to either lagna or ak i.e atmakaraka.
The yoga also needs to be present in navamsa d9 along with rasi.The shakti yoga mostly under benefic influence can be the reasons of destructive events in the life and under malefic aspects the native gains the power to take away pains and miseries of the world.Thats the beauty of this yoga.