Allow X amount of skills at random at battle begins

Hey guys,
Probably this is not the place, but since i`m a bit confused I hope you guys can help.

I`m doing a custom battle system that is supposed to function like this:
Start battle :
-check players leanded skills
- do a math.random to pick 3 skills id (I think i can do it fine sorting from actor class json)
- show only the 3 skills - each skill can only be used once and it vanishes from the menu
At turn begins:
- pick at random a new skill from the learned skills (can be the same), to fill the one that was used.

I`m actually stuck far before this all, I have no idea how to change the battle menu in order to allow only the skills I sorted ( already have the pick skills function) to show up.

What class initiate the battle menu with it`s itens?

Original thread: https://forums.rpgmakerweb.com/threads/allow-x-amount-of-skills-at-random-at-battle-begins.89622/