We develop a computational framework to analyze key relationships between surface structure, composition, and thermodynamic stability of alloy catalysts and using this, we describe the origin and formation of "Pt skins" on Pt3Ni that are responsible for its exceptional activity.