Battle ends when specific skill is used

How would I go at making a battle end when the enemy uses a specific skill? For example if the starting enemy uses a skill that almost kills the player, how would I make the battle register that the skill was used? Sorry if this makes no sense and thanks for any help.
See this post

Original thread: https://forums.rpgmakerweb.com/threads/battle-ends-when-specific-skill-is-used.135788/