Follow existing docstrings convention
Add hook related util functions
Use context to Jinja hook scripts