Would it be possible to simply import all necessary packages for a templated rule through a central import file? This could be a catch-all solution and make it easier for new/inexperienced rule writers and would make it easier for you guys when you change things.
Example:
import rule-prerequisite-libraries
/*
The code here.
*/
/Patrik