Code organization
Organize your code by use case. Group scripts for a specific use case into a descriptive folder, so that all behavior for that use case is in one place. For example:Logging
Log generously. The last thing you want is to notice that one of your scripts is broken, and realize that you have no logs to go look through. All stdout and stderr from your scripts are collected intriggers.log, so print anything and everything that you think might be helpful when debugging a future problem.

