How to limit the amount of skills an actor can have?

I'd like to limit the amount of skills an actor can have, I want them to have a maximum of 8 skills. If and when they level up and have an opportunity to learn a new skill, I'd like for a prompt to arise allowing the player to determine whether or not they wish to take the new skill and replace an old one for it or to pass it by.

I've purchased a few plugins now but they weren't able to capture the same mechanic despite their accessibility. If there is a plugin out there that captures exactly as I requested above, please inform me. Otherwise, I'd like to know if there's a formula or mechanic that I can make using events, variables, etc.
I couldn't find a MZ plugin that did it, but hopefully these plugins from MV can be used with FOSSIL.

Fossil: Allows you to use some plugins that are made for MV for MZ instead.

PokemonMovePluginExtension: A plugin that add to a another plugin so that you can have a limited move set (The original has only 4 skill slots, but the extension allows for more freedom, you'll need both though).
I couldn't find a MZ plugin that did it, but hopefully these plugins from MV can be used with FOSSIL.

Fossil: Allows you to use some plugins that are made for MV for MZ instead.

PokemonMovePluginExtension: A plugin that add to a another plugin so that you can have a limited move set (The original has only 4 skill slots, but the extension allows for more freedom, you'll need both though).

First of all, thank you so much! I was able to successfully implement the plugins and got them working. I do have one more question though, I found an issue with the plugin that I'd like to fix myself. However, I do not know a thing about java script, if you or anyone else can continue to help me I'd really appreciate it!

So, the issue is that upon leveling up and acquiring a new skill, the menu for deleting a skill appears before the player can even identify which skill they just recently obtained. Not to mention, the text that informs the player what skill they learned only appears after the choice has been made to delete a skill.
So I dug into the code of the plugin but as stated above, I don't know how to read java script or any code for that matter. Once again, I'd appreciate it if someone could lend me a hand! Thank you 🙂

Correction! I just re-tested the plugin and the level up text does inform you what skill you learn before being given the choice of which skill to replace, however the text to replace a skill triggers first. It's still a little bit disorienting and would like to fix that particular quirk.
I couldn't find a MZ plugin that did it, but hopefully these plugins from MV can be used with FOSSIL.

Fossil: Allows you to use some plugins that are made for MV for MZ instead.

PokemonMovePluginExtension: A plugin that add to a another plugin so that you can have a limited move set (The original has only 4 skill slots, but the extension allows for more freedom, you'll need both though).

Thank you!!
First of all, thank you so much!
Thank you!!
No problem. Glad that list of random plugins was helpful.
Correction! I just re-tested the plugin and the level up text does inform you what skill you learn before being given the choice of which skill to replace, however the text to replace a skill triggers first. It's still a little bit disorienting and would like to fix that particular quirk.
I see the issue, looks like the toomanymoves message is being called before the skill learned message that RPG Maker has at a base, but I don't know how to move it so that it waits for the skill learn message.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-limit-the-amount-of-skills-an-actor-can-have.167200/