The chemical reactions and pathways resulting in the formation of phosphagen, any of a group of guanidine phosphates that occur in muscle and can be used to regenerate ATP from ADP during muscular contraction.