Wikipedia
Shumishi was an official title in imperial China important in the Five Dynasties and Ten Kingdoms period, the Liao Dynasty, the Song Dynasty and the Jin dynasty (1115–1234).
Originally created in 765 in the Tang Dynasty for eunuchs to coordinate and supervise the emperor's paperwork, this post grew in importance since the 870s as eunuchs dominated the imperial Tang government. After the Tang Dynasty fell in the beginning of the 10th century, shumishi was no longer restricted to eunuchs and indeed was the title of some of highest officeholders in many Five Dynasties and Ten Kingdoms period (907–979) states. In the Song Dynasty (960–1279), a shumishi was a military affairs commissioner in charge of the entire national military.