The chemical reactions and pathways involving phosphocreatine, a phosphagen of creatine present in high concentration in striated muscle which is synthesized and broken down by creatine phosphokinase to buffer ATP concentration. It acts as an immediate energy reserve for muscle.