How to add class ability to perform a different type of skill?

Later on in my game, the main character discovers that one of his items has the ability to perform a powerful new type of skill. He can then train and learn different attacks with that new type of skill.

My only problem is, since his class has the ability to learn that type of skill, the type of skill shows up in the battle menu before it can possibly be learned. How do I make it so that he can't see that skilltype until he's able to learn it?

And I don't want to change class because changing class resets level.
I see three solutions to this:

1: Change the class anyways, saving the current level in a variable first, and setting the new class to that variable.

2: Use a features add script. I think Shaz wrote one. With that script, you can add the ability to learn the new type of skills at the appropriate plot point.

3: Request a script to make it so that when no skills are learned of a skill type, the skill type does not show up in battle or the menu. That's probably the hardest method though, so I'd suggest 1 or 2.
"1: Change the class anyways, saving the current level in a variable first, and setting the new class to that variable."

Ooh, variable, hadn't thought of that. Using it.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-add-class-ability-to-perform-a-different-type-of-skill.44625/