MV Get actual damage dealt by skill

Using Skill Mastery Levels, I want the "uses" gained to scale with the damage dealth by the skill. How do I retrieve the damage actually dealt? Googling has been largely uphelpful, with the only relevant result being for MZ instead and requring an MZ specific plugin.
Yanfly Skill Core and Yanfly Buff & States have notetags where you can get the damage dealt with the 'value' variable.

Original thread: https://forums.rpgmakerweb.com/threads/get-actual-damage-dealt-by-skill.175990/