Turning misses into glancing blows

So I wanna do something where if a character misses on an attack, instead of an outright miss, the attack becomes a glancing blow instead, which deals a fraction of the attack's base damage (let's say 10% for now).

What's the most elegant/comprehensive way to pull this off?
Is this just for normal physical attacks or any damaging ability?
Yanfly's Skill Core lets you add a <Post-Damage Eval> section to skills and items, wherein you should be able to check for a miss and do a bit of damage.

See this thread.

Original thread: https://forums.rpgmakerweb.com/threads/turning-misses-into-glancing-blows.137027/