This character is a onmyouji.
Onmyouji was one of the classifications of civil servants belonging to the Bureau of Onmyou in ancient Japan's ritsuryo system. People with this title were professional practitioners of onmyoudou.
Onmyouji were specialists in magic and divination. Their court responsibilities ranged from tasks such as keeping track of the calendar, to mystical duties such as divination and protection of the capital from evil spirits. They could divine auspicious or harmful influences in the earth, and were instrumental in the moving of capitals. It is said that an onmyouji could also summon and control shikigami.