Help - Skill that stacks up

I'm trying to design a skill called Rising Flow. Every time a character uses it, they gain 1 stack of Flow, then attack according to how many stacks of Flow they have. Flow stacks up to a max of 3 and will drop to 0 if the character doesn't use Rising Flow that turn.

Essentially, it's supposed to be a skill that starts off no better than a normal attack, builds up in strength if you keep using it, and loses its power if you stop using it. I have no idea where to start.
You should see Yanfly Stockpile series and get that code, it's the closest thing you can achieve without knowing how to code

Original thread: https://forums.rpgmakerweb.com/threads/help-skill-that-stacks-up.102703/