Is it possible to add a cooldown for guarding

In my game, I've given Guarding some extra utility. However, to balance it, I wanted to give it a cooldown. However, it doesn't seem to be working with Yanfly's SkillCore and Skill Cooldowns. Is there a way to do this?
You could have guard apply an invisible state to keep track of the cooldown, then use Victor's command replace to replace guard with a non-functional guard whenever that state is active ("guard" would be greyed out and unselectable)

Code:
<command replace: 'Guard', 'Guard'>
  result = a.isStateAffected(n); //replace n with the number of the cooldown state
</command replace>

Is that second step even necessary? I'm pretty sure Guard will already be greyed out (or at least can't be selected) if you have a Skill Seal applied to Guard.
Yeah you're right, I forgot seal skill was a thing lol.
Yeah you're right, I forgot seal skill was a thing lol.
Is that second step even necessary? I'm pretty sure Guard will already be greyed out (or at least can't be selected) if you have a Skill Seal applied to Guard.
Thank you both for the help!

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-add-a-cooldown-for-guarding.144321/