In history, there is Abe Seimei, an onmyoji.
The conclusive record about Abe Seimei appeared in 960 AD, when Emperor Murakami appointed Seimei, who was still an Onmyōsuke at the time (a subordinate to the Onmyo Ryo, equivalent to the personal assistant to the head of the Onmyoji) for divination. Although Seimei came to prominence late, his divination talents have been highly recognized by the Japanese royal family and aristocratic society. After that, he was appointed Doctor of Astronomy.
In 979 AD, the 59-year-old Seimei was ordered by the Crown Prince (later Emperor Hanayama) to go to Mount Nachi to hold a ceremony to seal the Tengu. From then on, Seimei seemed to have gained the trust of Emperor Hanayama, and the records detail Seimei's performance of Onmyodo rituals.
After Emperor Hanayama abdicated, Seimei also gained a high degree of trust from Emperor Ichijo and Michio Fujiwara. This can be known from Michio Fujiwara's diary "Mido Seki Hakuki" and the diaries of other nobles.
Seimei, who is extremely famous as an onmyoji, has held important positions such as Dr. Sakyo Gon, head of the granary hospital, and Harima shou. His status was also due to the trust of Fujiwara Michichiro and his strong ability to do things. Climbing from the fourth rank to being awarded the "Hosei-in" became an insurmountable peak for Onmyoji in the Heian era.
In addition, Seimei’s two sons, Yoshichō and Yoshihira, were also appointed as doctors of astronomy and heads of yin and yang. In Seimei’s generation, the Abe family also became a yin and yang family that can be compared with the Kamo clan of master Tadayuki. . Because he is the son of a white fox, the world calls him "Mr. White Fox"
Extended information:
Abe Seimei was an expert on the "Astronomical Way" and "Tenmondo" who were at the forefront of technology and magic at that time. An expert with excellent and rich knowledge in related technologies of "Onmyodo", which is mainly about divination. And his life story has also been mysterious, giving birth to many legendary anecdotes.
He was a rival with Master Domo (Michimitsu Ashiya) during his lifetime. He was highly regarded by the emperor and powerful ministers during his lifetime, and was awarded the title of "Hoseiin" when he was 79 years old. After his death, through the efforts of several generations of descendants, he was promoted from a doctor of astronomy, a junior doctor, to a highly respected official. So much so that there was a famous saying in the Edo period: “I don’t know Minamoto Yoshitsune, but I know Seimei Kō.
"
Baidu Encyclopedia-Abe Seimei