There is already a feature that can do that: Y-scripts.
PS:
We won't be adding new "traditional" ruleset attributes for features, which are scriptable, for 2 reasons:
1. doing something twice is a waste of time (both initial effort and maintenance effort)
2. and more importantly: we couldn't guarantee backwards-compatibility for the already-existing scripts
Or in other words, all oxce functionality that supports scripts will only be extended by extending script APIs... no new "traditional" ruleset will be added.