Does Craft CMS have skeletons/starter/boilerplate templates?
Here's an example of how you can do it with Craft 3 and composer create-project: nystudio107/craft

This is discussed in the Setting up a New Craft CMS 3 Project article.