On the basis of the alaya consciousness, manas, the seventh consciousness is formed. In Sanskrit, manas means attachment or self-grasping. Once there is self-grasping, a real being begins to take shape along with the development of the five sense organs. In Refuting Signs Treatise, Bodhidharma referred to all eight consciousnesses as defiled mind and luminous clarity of tathāgatagarbha as pure mind. Pure mind exists at all times even before life begins.
~ Depicted from "THE HANDBOOK FOR LIFE"S JOURNEY : On Death And Rebirth-Understanding Death