Skill auto used when actor has maxTP

I've been trying to figure out how to make an actor trigger(automatically, have it just happen, not just let a new skill become available) a skill once they reach max tp. The two I currently have in mind are a damaging skill to all enemies, and a restore mp(or hp) for another.

I would need a cd with these, as I wouldnt want the player to be able to use a smaller cost tp skill just to make the effect trigger quickly.

I use a lot of yanfly's scripts, if that helps. If anyone has done knows how to do this, please let me know! Thank you
I think you would have to go lunatic to achieve this, for which I can't help you, sorry...

Edit: misspelling correction.

Original thread: https://forums.rpgmakerweb.com/threads/skill-auto-used-when-actor-has-maxtp.100179/