The Eight Consciousnesses is a classification developed in the tradition of the Yogacara school of Buddhism. They enumerate the five senses, supplemented by the mind, defilements of the mind, and finally the fundamental store-house consciousness, which is the basis of the other seven.
All surviving schools of Buddhist thought accept – "in common" – the existence of the first six primary consciousnesses (Sanskrit: vijñāna, Tibetan: རྣམ་ཤེས་, Wylie: rnam-shes). The internally coherent Yogācāra school associated with Maitreya, Asaṅga, and Vasubandhu, however, uniquely – or "uncommonly" – also posits the existence of two additional primary consciousnesses, kliṣṭamanas and ālayavijñāna, in order to explain the workings of karma. The first six of these primary consciousnesses comprise the five sensory faculties together with mental consciousness, which is counted as the sixth. According to Gareth Sparham,
The ālaya-vijñāna doctrine arose on the Indian subcontinent about one thousand years before Tsong kha pa. It gained its place in a distinctly Yogācāra system over a period of some three hundred years stretching from 100 to 400 C.E., culminating in the Mahāyānasaṃgraha, a short text by Asaṅga (circa 350), setting out a systematic presentation of the ālaya-vijñāna doctrine developed over the previous centuries. It is the doctrine found in this text in particular that Tsong kha pa, in his Ocean of Eloquence, treats as having been revealed in toto by the Buddha and transmitted to suffering humanity through the Yogācāra founding saints (Tib. shing rta srol byed): Maitreya[-nātha], Asaṅga, and Vasubandhu.