Jewel system

I'm in need of help getting this system to work on RPG Maker MV. This mechanic is called the Jewel system, and it would work like this:
Characters have a jewel slot. If a jewel is equipped on a party member, they will get a certain magic skill type depending on the jewel itself. Characters can then learn skills of that magic type at the cost of gem points, which can be won from enemies, or given to you by magic minerals spread
Throughout Terra.

Players can then choose which spells to "keep," ,allowing the specific member to still be able to use the spell regardless if they have the corresponding Jewel equipped, with the maximum amount of spells increasing every 10 levels
Check this out : http://www.yanfly.moe/wiki/Skill_Learn_System_(YEP)

Original thread: https://forums.rpgmakerweb.com/threads/jewel-system.118202/