Hamiltonian Engineering of collective XYZ spin models in an optical cavity | Synapse