Request: Skill Type addition by script OR hide Skill Types in battle

I would like a way to add a Skill Type to a class/actor through a script, in order to permanently add that skill type later in the game.

OR

If it is possible, I would like a plug-in that hides Skill Types in battle if you do not currently have a skill of that type learned. Once you learn a skill of that type (magic, physical, etc.) Then that Skill Type would show up in battle.

Original thread: https://forums.rpgmakerweb.com/threads/request-skill-type-addition-by-script-or-hide-skill-types-in-battle.46744/