Discovery of skill-switching criteria for learning agile quadruped locomotion | Synapse