Shoki (鍾馗), the Demon Queller (role )
Based on the Chinese figure Zhong Kui. Below is the information provided by the Encyclopedia Britannica.
"Kuei Xing, Wade-Giles romanization K’uei Hsing, in Chinese religion, a brilliant but ugly dwarf who, as the god of examinations, became the deity of scholars who took imperial examinations.
Kuei Xing, whose name before deification was Zhong Kuei, is said to have passed his own examination with remarkable success but was denied the usual honours when the emperor beheld his ugly features. Brokenhearted, Kuei attempted suicide. He would have died, according to one account, had not an ao fish (or an ao turtle) borne him to safety. Another account says that Kuei actually died.
As depicted in art, Kuei bends forward like a runner, his left leg raised behind, the other sometimes balanced on the head of a fish (or giant sea turtle). Sometimes he sits astride the animal. In his right hand Kuei holds a writing brush to check off the most outstanding scholar candidates whose names are listed on a paper belonging to Yudi, the great Jade Emperor. In his left hand Kuei holds an official seal (some say a bushel basket to measure the talents of examinees).
Before the imperial examinations were discontinued in 1905, virtually every Chinese scholar gave Kuei a place of honour in his home, with images and name tablets. Some delightful representations of the god merely stylized the Chinese character of his name (kuei) in such a way that a man in motion was clearly visible. The arms are extended, the left leg is raised behind, and the right foot is sometimes balanced on the Chinese character for ao (sea turtle).
Kuei Xing resides among the stars as the deity in charge of the Ursa Major constellation. He is also one of two assistants assigned to help Wendi, the god of literature."