We need competent and loyal commanders at the helm of the new somali military. I suggest the most senior officers and those known by their comrades for leadership potential. In the meantime we'll be sending recruits to overseas training. Perhaps there should be a mandatory conscription service for adult men, where they'll be stationed in mew regions of Somalia and will work there.
Best way to create a pipeline is to attract recruits with real tangible rewards like technical skills, scholarships, and giving major companies incentives to hire reservists in supervisor and managerial jobs like Amazon does.