Writing global tasks.
Writing local environment tasks and defining tasks run on local deployment.
Writing more global tasks.
Writing local environment tasks and setting when tasks should run.
Defining drush command and implementing defined drush command on global and local tasks.