A Passive That Checks If The Performed Action Was A Skill, and If So, Recovers TP

Sorry if this is a double post, but I have this mechanic where the user recovers TP after using a skill in the post-eval of skills, the only problem is it can get cluttered. Could I get some help?

I essentially want a passive effect that checks if the performed action was a skill and if yes, recovers 1 TP.

(I have most yanfly plugins)
Code:
<Custom Action End Effect>
if (user.currentAction().isSkill())
  user.gainTp(1);
</Custom Action End Effect>
Code:
<Custom Action End Effect>
if (user.currentAction().isSkill())
  user.gainTp(1);
</Custom Action End Effect>
Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/a-passive-that-checks-if-the-performed-action-was-a-skill-and-if-so-recovers-tp.167970/