A primordial developmental toolkit shared by all vertebrates, and described by a theory of the mathematician Alan Turing, sets the growth pattern for all types of skin structures.
Source: Ancient Turing Pattern Builds Feathers, Hair — and Now, Shark Skin | Quanta Magazine