How to piggyback on tk-flame integration?

I need to run my own python code with shotgun’s metadata when Flame loads a project or batch. I think I need to add my own and info.yml, but where exactly, and what base classes should I inherit from? I just need to record the sg project/shot info when flame loads a batch setup. I’ve looked at; I want to do something like that or have that code call me.
I’m good with python and Flame, but new at Shotgun. Trying to figure out the whole sg + flame toolkit architecture is complicated.
Anyone using this who can point me in the right direction?