Breeding and raiding: A theory of strategic production of skills