original_query: What were the various roles and accomplishments of Mani Singh?
query: What were the various roles and accomplishments of Bhai Mani Singh?
answer: Bhai Mani Singh served as a childhood companion and later a minister to Guru Gobind Singh. He was a scholar, scribe, and warrior, instrumental in the creation of the Khalsa Panth. He served as Granthi of Harmandir Sahib, transcribed the Guru Granth Sahib, and compiled Sikh scriptures.  He is also remembered for his martyrdom.