During Former Shu
Wang Jian initially made Wei Zuo Sanqi Changshi (左散騎常侍), a high-level advisory official at the examination bureau, but further put him in charge of the Office of Chancellors (中書門下, Zhongshu Menxia), making him effectively a chancellor. It was said that the new Former Shu state's governmental structure, penal code, and ceremonies were all drafted by Wei. In 908, Wang further formalized Wei's position by making him Menxia Shilang (門下侍郎, deputy head of the examination bureau) with the chancellor designation of Tong Zhongshu Menxia Pingzhangshi (同中書門下平章事).
Wei died in 910. He was given the posthumous name of Wenjing (文靖, "civil and comforting"). He left a collection of 20 volumes of his works, in addition to one volume of the declarations he drafted for Wang Jian and one volume of writing about his travels in the Shu region. His poetry was collected into a five-volume work edited by his younger brother Wei Ai (韋藹).
Read more about this topic: Wei Zhuang