Adi Shakti is the mooL Prakruti is the mAyA of VishNu, known as VishNu-mAyA. (yA devi sarva bhUteshu vishNu-mAyeti shabditA | namastasyai namastasyai namastasyai namo namah: || - Devi Mahatmya, MarkaNDeya purAN)
In the Gita Krishna says
BG 7.14 Daivi hyeshA guNamayi mama mAyA duratyayA |
mAm eva ye prapadyante mAyAm etAm taranti te ||
My Divine power which consists of the 3 modes of material nature [and makes this appearance called world], is very difficult to transcend, but those who surrender to Me or take My shelter can cross it.
From the purANas,
This shakti appeared as Sati , daughter of Daksha, and then as PArvati daughter of Himvan (of the parvat HimAlaya - Himagauri). After Sati gave up Her life, VishNu dispersed parts of the body in various parts of BhArat-varsha, that came to be known as Shakti PeeTha. Each Shakti PeeTha has a particular significance. Shiva went into samAdhi after Sati's demise, and when She came back as PArvati and performed a lot of penance, VishNu asked Shiva to marry PArvati as She was Sati come back. Shiva also tested PArvati's resolve and She passed with flying colors.
As brother VishNu gave TripuraSundari's hand to Shiva in marriage (kanyAdaan). (a form of the same Adi Shakti). BramhA became the purohit (priest who conducts the wedding).
From the POV of tattva,
VishNu and His mAyA are 2 sides of a coin, NArAyaN - NArAyaNi.
Shiva's consort is this VishNu-mAyA Shakti because of the inert elements of mooL prakRuti that match Shiva who governs tamoguNa. Since the first version of shakti is inert Sat. It then matures into saraswati (chit samvit knowledge) and Lakshmi/Shri (goodness , good qualities, prosperity).
From the ShAkta angle, the Divine paired as 2 sides of a coin for creation : VishNu-KAli (black), Shiv-Saraswati (white), BramhA-Lakshmi (red ; both came from a Lotus - connection).
From Bhagwat Puran:
This VishNu-mAyA (i) transfered BalarAm from Devaki's womb to Rohini's (ii) later appeared as daughter of Yashoda around the time of His KRshNa avatAr, , exactly as per VishNu's instructions when the Devas requested VishNu to appear and save the earth. She was playing this role in order to delude KaMsa and let KRshNa live hidden in GokuL. At the time VishNu instructs Yoga mAyA to do this , and gives Her a boon that She will be known and worshiped in the coming Yuga (Kali Yuga) as Sharada, Ambika and BhadrakAli and will fulfill people's wishes.
In this way also, She as YogamAyA is KRshNa's sister as mentioned above. After escaping KaMsa's clutches She settled on the VindhyA mountains and tribals worshiped Her there.
In GokuL you will find YogamAyA opposite the YamunA ThakurAni ghaat. They have an evening Arati for YogamAyA right after the 6 o'clock Arati for YamunA-KrishNa at ThakurAni ghaat.