The skeleton of a variety of groups