I do not think that a single approach to the dependencies are suitable for general scripting (depending on what you're calling "general scripting" though). Staged compilation could be an overkill for some script types.
It makes sense though to ask the author (@Ilya Muradyan) to extract it to somewhat generally applicable library, so the script definition authors can reuse it for their script types. And compactness of the annotations-based approach could be beneficial in many scenarios too.
BTW, scripting API has some support for staged compilation, but it mostly unused and not really battle-tested.