The core requirement is that one may not pray or utter God's name with a bare head: the Rambam (Mishneh Torah, Prayer and the Priestly Blessing 5:5) rules that one must arrange his garments and not stand in prayer bareheaded or barelegged, and the Tur (Tur, Orach Chayim 91) similarly requires covering before reciting Shema or praying, citing the practice of the Sages and their students to pray only when wrapped.
Later authorities sharpen this into an outright prohibition on reciting God's name or praying bareheaded: Shulchan Arukh HaRav (Shulchan Arukh HaRav, Orach Chayim 91:3-4) states it is forbidden to utter God's name bareheaded, the Kitzur Shulchan Arukh (Kitzur Shulchan Arukh 3:6) forbids walking four cubits or saying something sacred bareheaded and requires training even children to cover their heads, and the Kaf HaChayim (Kaf HaChayim on Shulchan Arukh, Orach Chayim 91:13-14) and Beit Yosef (Beit Yosef, Orach Chayim 91:4) record that poskim ruled to be stringent against walking or blessing bareheaded, treating it as more than mere piety.
As to what counts as a valid covering, Shulchan Arukh HaRav (Shulchan Arukh HaRav, Orach Chayim 91:3-4) rules that woven straw hats qualify as a covering, but placing one's own hand on the head does not, since the hand and head are one body and a body cannot cover itself, though another person's hand placed on one's head may suffice; this is echoed in the reading of Maayan Omer (Rav Ovadia Yosef (Maayan Omer 1:10:82)) and stated directly by Rav Mordechai Eliyahu (Rav Mordechai Eliyahu (Maamar Mordechai Limot HaChol 4:4)), who adds that pulling a sleeve over the head together with the hand is permitted.
Acharonim further require that the covering match the standard of dress one would use before dignitaries or in the street: the Arukh HaShulchan (Arukh HaShulchan, Orach Chaim 91:6) rules that a small head covering alone is insufficient in his community and one needs a proper hat as worn outdoors, and the Mishnah Berurah (Mishnah Berurah 91:12) likewise states that nowadays one must wear an outdoor-style hat during prayer rather than only a small cap worn beneath it, since it would be disrespectful to stand that way before important people.
This standard is carried into contemporary practice by the Kitzur Shulchan Arukh Yalkut Yosef, which holds that while a small kippah suffices for ordinary walking as long as it is visible from all sides (Kitzur Shulchan Arukh Yalkut Yosef, Orach Chaim 2:16), one should be particular during Shema, prayer, and birkat hamazon to wear a hat or at least a kippah covering most of the head, and specifically regarding the Amidah of Mincha or Shema and Maariv it is not proper to remove one's hat and pray with only the small kippah, since doing so appears impudent before Heaven (Kitzur Shulchan Arukh Yalkut Yosef, Orach Chaim 91:7); it also rules that if the kippah falls off unnoticed during prayer, the prayer remains valid after the fact (Kitzur Shulchan Arukh Yalkut Yosef, Orach Chaim 91:9).
Rav Eliezer Melamed (Rav Eliezer Melamed (Peninei Halakhah, Prayer 5:3)) frames the matter by distinguishing the halachic obligation to cover the head during prayer, upon mentioning God's name, and in the synagogue, from the broader day-long custom of wearing a kippah, noting that the former obligation is rooted in law while the latter is rooted in custom.
Beyond the kippah itself, several sources address covering with a tallit: Rav Mordechai Eliyahu (Rav Mordechai Eliyahu (Maamar Mordechai Limot HaChol 7:23), Rav Mordechai Eliyahu (Maamar Mordechai Hilchot Shabbat, Chelek 1 26:11)) holds that the tallit should cover the head tefillin throughout the time one wears tefillin, especially during the Amidah, though on Shabbat and Yom Tov when tefillin are not worn one may lower the tallit after the Amidah; the Mishnah Berurah (Mishnah Berurah 8:3-4) cites the Taz's view that one should not remove the small kippah even while the tallit covers the head, and the Bach's requirement that the tallit remain on the head from the start of prayer to its end; and Rav Mordechai Eliyahu's responsum (Rav Mordechai Eliyahu (Shut HaRav HaRashi 3:38)) discusses the kabbalistic sources requiring the head tefillin to be fully covered by the tallit during prayer.
The underlying theme that a covered head instills fear of Heaven appears already in the Gemara: Kiddushin (Kiddushin 31a:3) relates that Rav Huna would not walk four cubits bareheaded because the Divine Presence rested above him, and Shabbat (Shabbat 156b:6) relates that a mother had her son cover his head constantly so that fear of Heaven would be upon him; Rav Mordechai Eliyahu (Rav Mordechai Eliyahu (Shut HaRav HaRashi 3:10)) invokes this same account to recommend that even those accustomed to going bareheaded adopt wearing a kippah, and Berakhot (Berakhot 24b:6) mentions one's head covering in the context of absorbing spittle during prayer. The Adir Bamarom (Adir Bamarom, Beur Idra Rabba 71b) adds a kabbalistic rationale for why the head specifically must remain covered while the face, hands, and feet are exposed.
Among the sources whose pages we have read directly, Machazik Bracha (מחזיק ברכה או״ח סי׳ צ״א — שיאזור מתניו ויכסה ראשו בשעת תפילה) and Knesset HaGedolah (כנסת הגדולה או״ח סי׳ צ״א — שיאזור מתניו ויכסה ראשו בשעת תפילה) both treat Siman 91's requirement of dignified attire, including head covering, befitting one standing before royalty, while Rav Ovadia Yosef in Maayan Omer (Rav Ovadia Yosef (Maayan Omer 1:5:107)) concludes that the halachah on covering the head when mentioning God's name follows the ruling of the Shulchan Aruch. Rav Moshe Sternbuch (Rav Moshe Sternbuch (Teshuvos V'hanhagos 1:13)) distinguishes the prohibition on walking bareheaded, which applies only within four cubits, from the broader practice of covering the head even over a shorter distance, which he treats as a matter of piety rather than strict prohibition.
On the specific question of whether two coverings are required, Rav Ovadia Yosef in Maayan Omer (Rav Ovadia Yosef (Maayan Omer 1:5:51)) questions the need for an additional covering once the head is already covered, suggesting a larger single covering may serve just as well, and noting that the poskim did not give avoiding distraction during prayer as their stated reason for any such requirement. The Tzitz Eliezer (Tzitz Eliezer 5:6) likewise debates whether full or partial exposure of the head is what is prohibited and maintains that prayer may not be performed bareheaded, without distinguishing cases where tefillin are worn, but does not establish any requirement of wearing two coverings.
Taken together, the sources converge on requiring a single genuine head covering for prayer and for reciting God's name — one that meets the standard of respectful dress — rather than establishing an obligation to wear two coverings simultaneously, a possibility that is raised and left unsupported in Rav Ovadia Yosef (Maayan Omer 1:5:51) and Tzitz Eliezer 5:6.