I guess you can use these functions (assuming skill = $dataSkills[skill id]):
That's not correct. The $dataSkills array is the database entries for the skills. That doesn't have any methods, only properties storing the values entered for the skills - as Braix showed in their own post.
Those functions are all methods of the Game_Action type.
I have a question too:
Is there a way to check if user.currentAction() is targeting a specific actor, considering that that action targets an opponent?
Have you not been recommended the MV library by now? It's very easy to look up questions like this:
Clicking into the Game_Actor class and going to the currentAction() method, it returns a Game_Action object:
Clicking into Game_Action, one of its properties is _targetIndex
So you'd just check whether the _targetIndex in the game party has a specific actor ID.
But, of course, that's completely without context - if you're accessing this via some plugin that gives you
user it's hard to imagine it doesn't also simply provide
target