How do I make certain commands learnable instead of avilable from start?

Like the title says If I am to make my Squire Job similar to a novice in Ragnarok Online, and as the job levels up and gains JP to spend, I want the job to be like a true learner of how the game world works, (without fourth wall breaking of course), and thus, learning how to fight.

So they need to unlock other actions other than basic attacking (they are not truly inept) such as:
Guard/Defend
Item use
Running from battle
and other commands most rpgs take for granted.
Along with with an inclination towards basic special skills like magic, Specials, etc.

This relates a bit to my other thread on races and jobs, but its for this one job specifically.
Do you want to use plugins in order to achieve this or are you asking for a vanilla solution (which is more impractical, but works xD)?

Oh, and if you're asking for a JP-like feature then, digging around yanfly is a good idea.
I think plugin solution is better as I found no way in the engine to restrict item commands. apparently learning to attack and defend and such is already in the default maker system (as skills ID: 1-4) and can be learned as skills in the skills database. Unless this is not right and learning the skill (ex: guarding) doesn't enable the command for that character in battle.
I think plugin solution is better
I'm not good with RPGMV's scripting so, I will help you with what I can at the moment. I can't find something like this in yanfly's web so, I can't do much about it haha (sorry >.<').

I found no way in the engine to restrict item commands
You are absolutely correct! However, we can work this around. If you want to make the Item Command (in battle screen) to be pretty much useless (until your player learns it), you can make what I call "Dummy Items" where the items can only be used outside the battle screen (so the player cannot use any items in-battle making the Item Command useless). This, of course need more effort to do (assuming you have tons of items in your game already and you have to make duplicates of it with the same name).

When the player finally learns how to use items, you can make conditional branches in your game's common event to detect and strip the player's item and replace them with the one that is functional in battle. You can then put this conditional event in a NPC (like a skillmaster or something).

(Common Event: [Replace Player Items])

Label: a
If (The player has Potion[Dummy])
Then Potion[Dummy] - 1 ; Potion[UseableInBattle] + 1
Jump to Label: a
Else (The player doesn't have Potion[Dummy])
Then Label: b
If (The player has Elixir[Dummy])
Then Elixir[Dummy] - 1 ; Elixir[UseableInBattle] + 1
Jump to Label: b
Else (The player doesn't have Elixir[Dummy])
Then (Insert More Items Here!)

End If
End If
End If

apparently learning to attack and defend and such is already in the default maker system (as skills ID: 1-4) and can be learned as skills in the skills database. Unless this is not right and learning the skill (ex: guarding) doesn't enable the command for that character in battle.
The solution to this is to make a duplicate Squire job without Attack and Guard Skill Sealing. So, when the player finally learns (for example) how to attack, change player's class to the squire without the attack Skill Sealing.

So they need to unlock other actions other than basic attacking (they are not truly inept) such as: ...Running from battle...
I can't help you with this, I am sorry >.<
BUT! If you want, you could make enemies in your game in form of an event roaming around an area. that way you can choose whether your player can escape or not in the Battle Processing menu. just create a conditional branch to switch things up.

(In an enemy's event sheet)
(I suggest you put this in a form of a Common Event so that you could edit stuff with ease).

If (Player's Class = SquireThanCanEscape)
Then Battle Processing (Can Escape)
Else (Player's Class is not SquireThanCanEscape)
Then Battle Processing (Can't Escape)
End If

I think this is the limit to what I can help you with. Feel free to ask me anything you find confusing (or totally wrong xD). I hope that I am helpful (at least a bit) in the making of your game!

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-certain-commands-learnable-instead-of-avilable-from-start.80693/