Something similar to this was discussed quite recently: Idea: Introduce/standardize project development scripts .
That discussion is very relevant to this proposal–it’s hard to define the limits of this in a way that is both useful and general. It sounds like this is maybe a subset of that more general proposal, but that doesn’t necessarily make it simpler.