You need to use skill types, have each class & subclasd have a specfic skill type.
Then set each skill to a skill type. So if "steal" is for the Thief Class. Then make a Thief Skill Type and set the skill type for "steal" to the Theif Skill Type.
If you want skills to be with multiple class then use
Yanfly's Multi-Skill Types. Note However that with this once the player learns the skill, it's avaible to all the classes.
If you want skills that are for multiple class to be spreate, ie "cure" is known to Red Mages & White Mages but the player has to learn it for each class. Then you need to make 2 cures, and set one to the Red Mage Skill Type & one to the White Mage Skill Type. For each class that you want to have the same skill, you need to make a version for each class, if you want the skill to be learned spreately for each class.
And in all the skills put this notetag:
<Access Only Equippable>
So that they only can use skills the skills they have with their skill type, and thus skills are class and subclass locked.