In 227, Zhuge Liang mobilised military forces from throughout Shu in preparation for a large-scale campaign against Shu's rival state Wei in the following year. As the troops gathered at the staging area in Hanzhong Commandery, Zhuge Liang summoned Fei Yi from Chengdu and appointed him as an Army Adviser (). In his "Chu Shi Biao" (literally "memorial on the case to go to war"), Zhuge Liang named Fei Yi, Guo Youzhi and Dong Yun as examples of trustworthy, loyal and competent officials who could provide good advice and assist the emperor Liu Shan in governing Shu more effectively.