Very cool. I did something similar years back but it used a file naming convention so that I didn't need to put things into the yaml (the includes depended on the categories metadata in this case). Of course, that means that the includes couldn't be reused in the same manner as yours and perhaps not as flexible but that was perfect for my use case.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.