VX/VXA Skill "durability"

I want some skills to have a limited number of uses before being removed from the actor's skill list. Basically, a durability system for skills.
I don't know whether it's possible to modify Yanfly's Skill Restriction script to do that, as it does have a skill limit option, which only temporarily disables a skill and is reset after every battle.
Maybe a weapon/armour durability script could be modified to support skills, or maybe there's a way that only requires some script calls and variables without making a big script, or some alternative that would do pretty much the same thing but in a different way.
I want some skills to have a limited number of uses before being removed from the actor's skill list. Basically, a durability system for skills.
Can I repair the durability of the skill? Does this restriction applies to enemies skills? (though I guess Yanfly's restriction script should be applied here) Can I stack more than 1 skill of the same type? (this is harder to do). If I don't stack them, does adding the skill via event repair my skill's durability?

that only requires some script calls and variables without making a big script, or some alternative that would do pretty much the same thing but in a different way.
This is doable with variables only, but it works better if the script is unique to an actor, this way, every time the skill is used, you could call a common event that decreases a specific variable, and then, if the variable reaches 0, the skill is removed from the party.

Original thread: https://forums.rpgmakerweb.com/threads/skill-durability.180930/