The opening chapters of Mesillat Yesharim lay the structural foundation: man's true purpose is only his standing in the World to Come, with this world merely a corridor of preparation (Mesillat Yesharim 1:15-16), which is why watchfulness demands that one contemplate his own deeds rather than drift through habit like a blind man (Mesillat Yesharim 2:1), and why self-examination requires two distinct investigations — knowing what the true good and evil are, and then checking one's actual actions against that standard (Mesillat Yesharim 3:1-3).
Chazal and Tanach supply the classic calls to self-knowledge that frame this theme: Hillel's challenge of 'if I am not for myself, who will be for me, and when I am for myself, what am I' (Pirkei Avot 1:14), the call to search and examine our ways (Eichah 3:40), David's request to be searched and tried and shown his own heart (Tehillim 139:23-24), and the image of the counsel within a man's heart as deep water that a person of understanding must draw out (Mishlei 20:5).
The creation of man in the Divine image (Bereishit 1:26-27) and the prayer to be stationed in a lighted corner rather than darkness, recognizing that the yeast in the dough — the evil inclination within every person — is what blocks a person from his own will (Berakhot 17a:2), together with the teaching that a fetus is taught the whole Torah before birth only to forget it upon entering the world (Niddah 30b:21), root self-knowledge in man's Divine stature and in the inner struggle to recover what is innately his.
Rav Dessler's Michtav MeEliyahu develops this directly: a person is called a 'small world' because the soul's many powers and revelations of Divine glory are expressed through his choice, action, and perception, and true grasp of this comes not through intellectual knowledge alone but through 'knowing the heart' — knowledge that is internalized through mussar study rather than cleverness Michtav MeEliyahu (Rav Dessler). He further teaches that a person's character rests principally on one of a few core forces, and the first task of a person's service is to recognize and uncover his primary trait, developing it to completion according to the ways of Torah while also cultivating his other traits Michtav MeEliyahu (Rav Dessler). He also discusses how bias and self-interest cloud a person's ability to see the truth, and how only deep, heartfelt study of mussar and aggadah — not mere intellectual engagement — can actually change one's deeds Michtav MeEliyahu (Rav Dessler), and elsewhere teaches that a person can actively make himself through internalizing what he learns, turning knowledge into true being and acquiring a share of the World to Come Michtav MeEliyahu (Rav Dessler).
The Rambam frames self-knowledge in terms of character: a person must recognize whether his nature inclines toward an extreme trait and correct himself toward the balanced middle path (Mishneh Torah, Human Dispositions 1:3-4), and self-knowledge is bound up with free will, since man alone among creatures knows good and evil and determines his own path by his own mind and will (Mishneh Torah, Repentance 5:1-2).
Later mussar and chassidic sources deepen the inward dimension: the Tanya describes the two souls within every Jew, one rooted in kelipah and one in holiness, as the basis for self-understanding (Tanya, Part I; Likkutei Amarim 1:15-17), and elsewhere teaches that sadness over one's spiritual level often stems from not truly recognizing one's place, since a benoni needs only to struggle against rising thoughts rather than despair over not being a tzaddik (Tanya, Part I; Likkutei Amarim 27:3). The Nefesh HaChayim teaches that a person must know that every detail of his deeds, speech, and thought has cosmic weight and never goes to waste (Nefesh HaChayim, Gate I 4:1-3).
The Kelm mussar tradition and Shiurei Daas stress habituating oneself to recognize the inner workings of the soul: training oneself to identify the source of each stirring within so as not to be controlled by the yetzer (Shiurei Daas 1 p. 127), understanding that mussar wisdom clarifies the powers of the soul and intellect and how the intellect can err due to the soul's dullness (Chochma uMusar 1 p. 168, Chochma uMusar (Alter of Kelm)), and the teaching that a person's truest teacher is himself, since recognizing one's own purpose is what drives him to actually reach it (Chochma uMusar (Alter of Kelm)), echoing Ben Zoma's definition of the wise man as one who learns from every person (Avot DeRabbi Natan 23:1).
Rav Yisrael Salanter's Even Sheleimah locates self-knowledge in the tension between one's natural traits and one's spirit, teaching that although character follows the nature of body and soul, a person's deeds follow his spirit, and just as a rider can direct even a bad horse, so one whose nature is flawed can still direct himself through constant self-accounting of his ways (Even Sheleimah 1:5).
Sha'arei Teshuvah warns against a common but mistaken form of self-assessment, in which people imagine that only active sins damage the soul while passive neglect of mitzvot and good deeds causes no loss, a mistake he says must be corrected since the Sages said Hashem overlooked idolatry, immorality, and bloodshed but not the sin of wasted Torah time (Sha'arei Teshuvah 3:13-14). Duties of the Heart similarly calls for an honest soul-accounting of one's smallness relative to Creation precisely at moments when the soul grows haughty and overreaches (Duties of the Heart, Eighth Treatise on Examining the Soul 3:148).
The Zohar frames self-knowledge as one of three wisdoms a person must attain — knowing one's Master, knowing oneself (who one is, whence one came, and whither one goes), and knowing the secrets of the soul — all pursued through the secrets of Torah (Zohar), while the Shem MiShmuel distinguishes mere intellectual knowing from truly internalizing that knowledge in the heart, following the pasuk 'you shall know today and take it to your heart' (Shem MiShmuel, Tzav 10:6). The Tomer Devorah similarly roots self-perfection in the obligation to resemble one's Creator not merely in form but in deed (Tomer Devorah 1:1-31).
Beit Yaakov describes attaining awareness of oneself as a child of God through rigorous self-clarification, since every person is created with a particular deficiency that must be identified and completed (Beit Yaakov, Tetzaveh 9).
Rav Kook's writings repeatedly tie self-knowledge to one's place within the broader spiritual and natural order: a person must attune himself to the laws of his own spiritual nature just as he attunes himself to the physical world, with cleaving to the Divine as the beginning and end of this process (Otzrot HaRaayah, Volume 6, Part ב 107:47); he must honor his own will and the inclinations of his soul as the noblest expression of his being, while still disciplining himself through constant mussar so that those inclinations become worthy of honor (Otzrot HaRaayah, Volume 6, Part א 37:29); he progresses from recognizing external needs and influences to the deeper, internal stage of knowing his essential self, character, and soul (Maamarei HaReiyah 59:11); and recognizing the purpose of one's service, standing in a 'lighted corner' rather than darkness, is itself a good quality for a person to cultivate (Rav Kook (Ein Aya, Berakhot 2:42)), while elsewhere he notes that even one whose intellect cannot penetrate the deepest truths can still find sufficient clarity through the plain and open truths available to all (Rav Kook (Ein Aya, Shabbat 2:298)).
Rav Kook also addresses the heightened self-awareness demanded of someone who senses that he requires abundant Divine illumination and mussar study, urging such a person not to cast off this burden and settle for an ordinary, practical life (Kevatzim MiKtav Yad Kodsho, Volume 2 4:13), and describes the happiness of people who come to recognize the sublime inner light that accompanies them always (Kevatzim MiKtav Yad Kodsho, Volume 2 3:41).