Bao Zhi allegedly spent three years to compile the necessary texts for this ritual. The emperor is probably best known for being one of the co-authors of a major scripture in Chinese Buddhism. A major Buddhist repentance service is named after the emperor. Titled the "Emperor Liang Jeweled Repentance"(梁皇寶懺), the repentance records and details the reasons behind his wife's transformation, examples of people affected by karma, stories about people receiving retribution, and what one can do to prevent it. The repentance also involves prostrations to a number of Buddhas. Historically, Emperor Liang initiated this ceremony approximately 1500 years ago. His wife, Chi Hui, died at age of thirty after leading a life marked by jealousy and anger. After her death, she turned into a giant snake and purgatory . She came to recognize that she needed prayers from the sangha to expiate her sins and release her from the lower realms. Through great generosity, Emperor Liang requested Ch'an Master Bao Zhi and other high monastics to write ten chapters of the repentance. As a result of performing this ceremony, his wife was indeed released from its suffering. It is a popular text amongst many Chinese Buddhists, the text itself is recited and performed annually in many temples, usually during the Qingming Festival or the Ghost Festival. A complete English translation of this text was done by the Buddhist Text Translation Society in 2016. The title is "Repentance Ritual of the Emperor of Liang: A complete translation of Repentance Dharma of Kindness and Compassion in the Bodhimanda." Emperor Wu was also fond of playing wéiqí, an ancient board game. There was a famous and knowledgeable monk who was nicknamed the "Kowtow Monk", whom the Emperor respected highly and summoned him often to chat with him. One day, the Kowtow Monk paid a visit to the palace when the Emperor was playing Go with an official. The Emperor surrounded a big group of stones on the board and was so excited that he yelled, "Kill!" All of a sudden, guards rushed into the palace, seized the Kowtow Monk and executed him outside the palace gate. Unfortunately, the Emperor was so absorbed in the game that he didn't even know what had transpired. After the game, he remembered the monk and summoned him. The Emperor's guards reported to him that the monk was executed per his order, and the Emperor regretted deeply. On the other hand, the Kowtow Monk didn't know why he was executed, and thought that it was the judgement for killing an earthworm when he was young.