MV Yanfly skill mastery system

I am trying to create a system where the user learns new skills by using older skills to a higher level using yanfly skill mastery levels plugin.
Code:
<Before Eval>

if (!user.isLearnedSkill(609)){
 if (user.skillMasteryLevel(item.id) >= 2) {
   user.learnSkill(609);
   var text = user.name() + ' has learned '
   text = text + 'Fira!';
   $gameMessage.add(text);
 }
}
</Before Eval>

in the above code, the skill checks if it is at a sufficient skill mastery level then learn the upgraded skill, the problem is, the new skill isn't learned until it is used one more time after the old skill is leveled up.

I want to learn the new skill as soon as the user levels up the old skill. How do I go about doing that, am I using the correct eval, or is it something completely different?
Well you're using a <Before Eval> notetag, so the code is being executed before the original skill is performed and leveled up - so once the skill gets to level 2, the code isn't looked at until you use it once more.

Does it work the way you want if you just change it to execute after the skill has been used via <After Eval> ?

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-skill-mastery-system.144256/