What is the official position of Wang Xizhi's "General of the Right Army"? Is it a civil servant or a military attache?

The right army is a military attache.

During the Zhou system, the emperor had three armies, called the central army, the left army, and the right army. Also refers to the right wing troops.

Official name. That is, the general of the right army. Built in the Western Jin Dynasty. Qin and Han originally had front, rear, left and right generals, all of whom led troops. In the Western Han Dynasty, there was a lieutenant general. Wei has General Zuo. The Jin Dynasty added three generals: the front army, the rear army, and the right army. Located along the northern and southern dynasties. Since the Wei and Jin Dynasties, most of the generals of the Central Army and the Front Army have not been leading officers, and they are not often appointed. They usually have only empty titles. Wang Xizhi of the Eastern Jin Dynasty served as the general of the Right Army, and was known as Wang Youjun. Later, he was called "Youjun".

Wang Xizhi (a famous calligrapher in the Eastern Jin Dynasty)

Wang Xizhi (303-361, 321-379), courtesy name Yishao, Han nationality, was a famous calligrapher in the Eastern Jin Dynasty. He is known as the "Sage of Calligraphy". Langya was born in Linyi (now Linyi, Shandong), and later moved to Shanyin, Huiji (now Shaoxing, Zhejiang), and lived in seclusion in Jinting, Shan County in his later years. He successively served as secretary Ying, general Ningyuan, governor of Jiangzhou, and later as internal history of Kuaiji, leading the right general. His calligraphy is good at Li, Cao, Kai, Xing and other styles. He studies the styles carefully, imitates them with his heart and hands, draws on the strengths of others, prepares various styles, and cultivates them in one furnace. He breaks away from the writing style of Han and Wei Dynasties and becomes his own style with far-reaching influence. The style is peaceful and natural, the writing style is euphemistic and subtle, and it is beautiful and graceful. His representative work "Lanting Preface" is known as "the best running script in the world". In the history of calligraphy, he and his son Wang Xianzhi are collectively known as the "Two Kings".