Each package needs to specify 'triggers' that trigger the action, and some kind of 'actions' that are called when the trigger happened, like:

Trigger:

Action: