I believe the best way to do this would be to use
Yanfly's Buffs and States Core, keep a dummy state permanently on the Rogue, and employ a <Custom Respond Effect> tag. This will proc whenever the Rogue takes damage.
There is certainly a way to employ a Force Action command inside this tag but I'm not immediately familiar with the syntax and I'm not entirely sure it would work as another action is being processed (though it very well might!). The other way you could go about it would be to simply play an animation inside this tag as well as perform the effects of the Stealth skill directly. For example, if the Stealth skill was placing the user into a Stealth state, I think the line inside the notetag would be something like
self.addState(N); where N is the ID of the Stealth state. I'm a bit rusty on the syntax; Yanfly might use something like "a" or "user" instead of "self", or it might just be a simple addState(N) .