I basically made a collection of docs that the agent can read from: how to animate counters, how to emit particles, how to do 2d physics etc. and preinstalled proven packages for that. One file per topic, very opinionated and stripped down to the essentials. The motion sensor doc lists libraries and hooks it must use, also some recipes like shake detection and so on.