You can do this with the third optional parameter. Try this code, and replace the skillId with your skill id number. If you want to correlate the skill with equipment, add the skill to the equipment effects should be an effective way.
this.addCommand('skill name', 'skill name', this._actor.canUse($dataSkills[skillId]));
};Or you can do a if check with
this._actor.canUse($dataSkills[skillId]) first, if it's not usable don't add this command.I updated my plugin to make it automatic. However, you can still press cancel to delay the canto (because the interaction logic is very long and I don't want to touch it).
I updated my plugin so now class, equips, and states tags work. I used some new note tags to make the logic clearer. You can replace the old note tags with the new ones.
I will think about how to show skill info on the map battle.